Added ior and xor tests to the repository.
[picobit/chj.git] / makefile
blob96e52647fda0e3bf5679f68a439eea1228ee97f9
1 # TODO make libpcap an option
3 all: picobit-vm
5 picobit-vm: picobit-vm.o gc.o bignums.o debug.o primitives.o dispatch.o
6 cc -o picobit-vm picobit-vm.o gc.o bignums.o debug.o primitives.o dispatch.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 cc -O -c -g -DDEBUG dispatch.c
19 make picobit-vm
21 debug-gc:
22 cc -O -c -g -DDEBUG -DDEBUG_GC picobit-vm.c
23 cc -O -c -g -DDEBUG -DDEBUG_GC gc.c
24 cc -O -c -g -DDEBUG -DDEBUG_GC bignums.c
25 cc -O -c -g -DDEBUG -DDEBUG_GC debug.c
26 cc -O -c -g -DDEBUG -DDEBUG_GC primitives.c
27 cc -O -c -g -DDEBUG -DDEBUG_GC dispatch.c
28 make picobit-vm
30 clean:
31 rm -f *.o *~ picobit-vm