From 5cd610a07468137066ea4daa5176c3e7045113b0 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 5 Aug 2020 03:38:22 +0200 Subject: ecp moved to root; fixed utils and tests --- ecp/util/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ecp/util/Makefile (limited to 'ecp/util/Makefile') diff --git a/ecp/util/Makefile b/ecp/util/Makefile new file mode 100644 index 0000000..b3cbc7c --- /dev/null +++ b/ecp/util/Makefile @@ -0,0 +1,22 @@ +include ../src/Makefile.posix +CFLAGS=$(CFLAGS_PL) -I../src +LDFLAGS=$(LDFLAGS_PL) + +obj=util.o +dep=../src/build-posix/*.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 $@ $< $(dep) $(LDFLAGS) + +clean: + rm -f *.o *.a + rm -f mknode -- cgit v1.2.3