uxn-utils/ref/makefile

17 lines
345 B
Makefile
Raw Normal View History

2024-01-10 16:25:55 -05:00
.PHONY: all run test format clean
2024-01-10 15:33:12 -05:00
all: bin/uxn
run: all
2024-01-10 16:34:21 -05:00
@ wc -c bin/uxn
2024-01-12 00:17:56 -05:00
@ cat console.tal | bin/uxn drifloon.bin > bin/console.rom
@ bin/uxn test.bin "String sent through stdin"
2024-01-10 15:33:12 -05:00
format:
@ clang-format -i uxn.c
clean:
@ rm -r -f bin
bin/uxn: uxn.c
@ mkdir -p bin/
2024-01-10 16:34:21 -05:00
@ cc -std=c89 -Os -DNDEBUG -g0 -s -Wno-unknown-pragmas uxn.c -o bin/uxn