From ab0325ae7906230f1ea82f08b27c72b075e9a13d Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Tue, 23 May 2017 17:28:12 +0200 Subject: build fixed; added lib util --- code/util/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 code/util/Makefile (limited to 'code/util/Makefile') 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 -- cgit v1.2.3