18 lines
303 B
Makefile
18 lines
303 B
Makefile
.PHONY: all run test format clean
|
|
|
|
all: bin/uxn
|
|
|
|
run: all
|
|
@ wc -c bin/uxn
|
|
@ bin/uxn test.bin "Text from arg"
|
|
test:
|
|
@ bin/uxn opc-test.bin
|
|
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
|