uxn-utils/ref/makefile

17 lines
345 B
Makefile

.PHONY: all run test format clean
all: bin/uxn
run: all
@ wc -c bin/uxn
@ cat console.tal | bin/uxn drifloon.bin > bin/console.rom
@ bin/uxn test.bin "String sent through stdin"
format:
@ clang-format -i uxn.c
clean:
@ rm -r -f bin
bin/uxn: uxn.c
@ mkdir -p bin/
@ cc -std=c89 -Os -DNDEBUG -g0 -s -Wno-unknown-pragmas uxn.c -o bin/uxn