4 EXAMPLES=examples/easytest.bin examples/fact.bin examples/fib.bin
6 all: sim/blargcpu2 $(EXAMPLES)
8 STAMP_jwcc: jwcc.lua lib/backend/default.lua lib/parser/default.lua lib/tokenizer/default.lua
9 @echo "jwcc inputs changed; rebuilding all C programs"
12 sim/blargcpu2: sim/blargcpu2.c
13 gcc -O3 -o sim/blargcpu2 sim/blargcpu2.c -lreadline `sdl-config --cflags --libs`
18 %.elf: %.o examples/libblarg.o examples/blargcpu.ld
19 blarg-elf-ld -T examples/blargcpu.ld -o $@ $< examples/libblarg.o
22 blarg-elf-objcopy -Obinary $< $@