~alderwick/pico-uxn

48774b835fecadae6a18b0453ce1d90dbe73c090 — Andrew Alderwick 8 months ago 239cf64
Build uxn-boot.h in base directory instead of build/.
2 files changed, 4 insertions(+), 3 deletions(-)

M .gitignore
M Makefile
M .gitignore => .gitignore +1 -0
@@ 1,2 1,3 @@
/build/
/uxn-boot.h
/plugins/*

M Makefile => Makefile +3 -3
@@ 1,6 1,6 @@
.PHONY: all flash format clean distclean update

all: lib/pico-sdk/lib/tinyusb/.git build/uxn-boot.h lib/pico-sdk/.git
all: lib/pico-sdk/lib/tinyusb/.git uxn-boot.h lib/pico-sdk/.git
	cd build && cmake .. && $(MAKE)

build/uxnasm: lib/uxn/src/uxnasm.c lib/uxn/src/uxn.h


@@ 10,7 10,7 @@ build/uxnasm: lib/uxn/src/uxnasm.c lib/uxn/src/uxn.h
build/boot.rom: build/uxnasm lib/uxn/projects/examples/gui/animation.tal
	$^ $@

build/uxn-boot.h: build/boot.rom
uxn-boot.h: build/boot.rom
	printf 'uint8_t uxn_boot_rom[] = {\n' > $@
	od -A n -t x1 $< | sed -e 's/\S\S/0x&, /g' >> $@
	printf '};\n' >> $@


@@ 29,7 29,7 @@ format:
	for F in $(wildcard *.c *.h plugins/*/*.c plugins/*/*.h); do clang-format -i "$${F}" || exit 1; done

clean:
	rm -rf build
	rm -rf build uxn-boot.h

distclean: clean
	git submodule deinit --all