ccan/io: benchmarks.
[ccan] / ccan / io / benchmarks / Makefile
1 ALL:=run-loop run-different-speed run-length-prefix
2 CCANDIR:=../../..
3 CFLAGS:=-Wall -I$(CCANDIR) -O3 -flto
4 LDFLAGS:=-O3 -flto
5 LDLIBS:=-lrt
6
7 OBJS:=time.o poll.o io.o err.o
8
9 default: $(ALL)
10
11 run-loop: run-loop.o $(OBJS)
12 run-different-speed: run-different-speed.o $(OBJS)
13 run-length-prefix: run-length-prefix.o $(OBJS)
14
15 time.o: $(CCANDIR)/ccan/time/time.c
16         $(CC) $(CFLAGS) -c -o $@ $<
17 poll.o: $(CCANDIR)/ccan/io/poll.c
18         $(CC) $(CFLAGS) -c -o $@ $<
19 io.o: $(CCANDIR)/ccan/io/io.c
20         $(CC) $(CFLAGS) -c -o $@ $<
21 err.o: $(CCANDIR)/ccan/err/err.c
22         $(CC) $(CFLAGS) -c -o $@ $<
23
24 clean:
25         $(RM) -f *.o $(ALL)