Further cleanup and code reorganization.
[picobit/chj.git] / makefile
blobe4995287793d54107927c035181696c3e10e2470
1 # TODO make libpcap an option
3 all: picobit-vm
5 picobit-vm: picobit-vm.o gc.o bignums.o debug.o primitives.o
6 cc -o picobit-vm picobit-vm.o gc.o bignums.o debug.o primitives.o -lpcap
8 .c.o:
9 $(CC) -O -c $*.c
11 # TODO instead, maybe have these targets change a variable (CFLAGS ?) and call the all target ?
12 debug:
13 cc -O -c -g -DDEBUG picobit-vm.c
14 cc -O -c -g -DDEBUG gc.c
15 cc -O -c -g -DDEBUG bignums.c
16 cc -O -c -g -DDEBUG debug.c
17 cc -O -c -g -DDEBUG primitives.c
18 make picobit-vm
20 debug-gc:
21 cc -O -c -g -DDEBUG -DDEBUG_GC picobit-vm.c
22 cc -O -c -g -DDEBUG -DDEBUG_GC gc.c
23 cc -O -c -g -DDEBUG -DDEBUG_GC bignums.c
24 cc -O -c -g -DDEBUG -DDEBUG_GC debug.c
25 cc -O -c -g -DDEBUG -DDEBUG_GC primitives.c
26 make picobit-vm
28 clean:
29 rm -f *.o *~ picobit-vm