summaryrefslogtreecommitdiff
path: root/code/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'code/test/Makefile')
-rw-r--r--code/test/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/code/test/Makefile b/code/test/Makefile
new file mode 100644
index 0000000..7992127
--- /dev/null
+++ b/code/test/Makefile
@@ -0,0 +1,18 @@
+CFLAGS=-I.. -O3 -Wno-int-to-void-pointer-cast
+LDFLAGS=-lm -pthread
+dep=../libecpcore.a ../crypto/libecpcr.a ../htable/libecpht.a ../posix/libecptr.a ../posix/libecptm.a
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+all: server stress
+
+server: server.o $(dep)
+ $(CC) $< $(dep) $(LDFLAGS) -o $@
+
+stress: stress.o $(dep)
+ $(CC) $< $(dep) $(LDFLAGS) -o $@
+
+clean:
+ rm -f *.o
+ rm -f server stress