diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-08-05 03:38:22 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-08-05 03:38:22 +0200 |
commit | 5cd610a07468137066ea4daa5176c3e7045113b0 (patch) | |
tree | a6a5b572572f8f37ec2cb87332fa46e9bcc53aa7 /ecp/util/Makefile | |
parent | 2473a7d5c51806ab8651cd3c4e07a15b62084eb5 (diff) |
ecp moved to root; fixed utils and tests
Diffstat (limited to 'ecp/util/Makefile')
-rw-r--r-- | ecp/util/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
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 |