summaryrefslogtreecommitdiff
path: root/code/util/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'code/util/Makefile')
-rw-r--r--code/util/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/code/util/Makefile b/code/util/Makefile
new file mode 100644
index 0000000..c87a1dd
--- /dev/null
+++ b/code/util/Makefile
@@ -0,0 +1,21 @@
+CFLAGS = -I../core -pthread -O3 $(PIC)
+LDFLAGS=-lm -pthread
+
+obj=util.o
+dep=../core/libecpcore.a ../core/crypto/libecpcr.a ../core/htable/libecpht.a ../core/posix/libecptr.a ../core/posix/libecptm.a ./libecputil.a
+
+
+%.o: %.c %.h
+ $(CC) $(CFLAGS) -c $<
+
+all: libecputil.a mknode
+
+libecputil.a: $(obj)
+ $(AR) rcs libecputil.a $(obj)
+
+mknode: mknode.o libecputil.a
+ $(CC) -o $@ $(LDFLAGS) $< $(dep)
+
+clean:
+ rm -f *.o *.a
+ rm -f mknode