Commit | Line | Data |
---|---|---|
f611d0c3 MD |
1 | all: test |
2 | ||
85b765b8 | 3 | HEADERS = ../include/side/trace.h ../include/side/macros.h rcu.h |
6841ae81 | 4 | |
6318ccfd | 5 | CFLAGS = -g -O2 -Wall |
85b765b8 | 6 | CPPFLAGS = -I../include/ -D_GNU_SOURCE |
f611d0c3 | 7 | |
6318ccfd MD |
8 | side.o: side.c $(HEADERS) |
9 | gcc $(CFLAGS) $(CPPFLAGS) -c -o $@ $< | |
10 | ||
11 | tracer.o: tracer.c $(HEADERS) | |
12 | gcc $(CFLAGS) $(CPPFLAGS) -c -o $@ $< | |
13 | ||
14 | test.o: test.c $(HEADERS) | |
15 | gcc $(CFLAGS) $(CPPFLAGS) -c -o $@ $< | |
f611d0c3 | 16 | |
6841ae81 | 17 | test: tracer.o test.o side.o |
6318ccfd | 18 | gcc $(CFLAGS) -o $@ $^ |
f611d0c3 MD |
19 | |
20 | .PHONY: clean | |
21 | ||
22 | clean: | |
1533629f | 23 | rm -f test *.o |