about summary refs log tree commit diff stats
path: root/lib/chaseccomp/Makefile
blob: 9b17b38c382cb92c781d69e5e37a16cc3f4039e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CFLAGS += -Wall

all: chaseccomp.o

chasc_defs_%.c: %.chasc common.chasc gen_defs chaseccomp.h
	./gen_defs <$< >$@

chasc_defs_%: chasc_defs_%.c
	$(CC) $< -o $@

%.chasc.expanded: chasc_defs_%
	./$< >$@

chasc_%.h: %.chasc.expanded gen_syscalls
	./gen_syscalls $< >$@

chaseccomp.o: chaseccomp.c chaseccomp.h chasc_network.h chasc_buffer.h
	$(CC) $(CFLAGS) chaseccomp.c -c -o $@

clean:
	rm -f *.d *.o
	rm -f *.chasc.expanded chasc_*.h chasc_*.c