uxn-utils/ref/makefile

26 lines
645 B
Makefile

.PHONY: all run test format clean
all: bin/uxnmin bin/opctest
run: all
@ bin/uxnmin
@ bin/uxnmin missing.rom
@ bin/uxnmin bin/opctest.rom
@ cat console.tal | bin/uxnmin drifloon.bin > bin/console.rom
@ bin/uxnmin bin/console.rom "String sent through stdin"
format:
@ clang-format -i uxnmin.c
clean:
@ rm -fr bin
install: all
@ cp bin/uxnmin ~/bin
archive: all
cp uxnmin.c ~/Git/oscean/etc/uxnmin.c.txt
bin/opctest: ../cli/opctest/opctest.tal
@ uxnasm ../cli/opctest/opctest.tal bin/opctest.rom
bin/uxnmin: uxnmin.c
@ mkdir -p bin/
@ cc -std=c89 -Os -DNDEBUG -g0 -s -Wno-unknown-pragmas uxnmin.c -o bin/uxnmin
@ wc -c bin/uxnmin