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

all: chaseccomp.o

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

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

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

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

chaseccomp.o: chaseccomp.h chasc_network.h chasc_buffer.h

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