summaryrefslogtreecommitdiff
path: root/ccan/tal/benchmark/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ccan/tal/benchmark/Makefile')
-rw-r--r--ccan/tal/benchmark/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/ccan/tal/benchmark/Makefile b/ccan/tal/benchmark/Makefile
new file mode 100644
index 0000000..f1e8502
--- /dev/null
+++ b/ccan/tal/benchmark/Makefile
@@ -0,0 +1,26 @@
+CFLAGS=-O3 -Wall -flto -I../../..
+#CFLAGS=-O3 -Wall -I../../..
+#CFLAGS=-g -Wall -I../../..
+LDFLAGS=-O3 -flto
+LDLIBS=-lrt
+
+all: speed samba-allocs
+
+speed: speed.o tal.o talloc.o time.o list.o take.o str.o
+samba-allocs: samba-allocs.o tal.o talloc.o time.o list.o take.o
+
+tal.o: ../tal.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+str.o: ../str/str.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+talloc.o: ../../talloc/talloc.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+time.o: ../../time/time.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+list.o: ../../list/list.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+take.o: ../../take/take.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+clean:
+ rm -f speed samba-allocs *.o