summaryrefslogtreecommitdiff
path: root/ecp/util/Makefile
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-08-05 03:38:22 +0200
committerUros Majstorovic <majstor@majstor.org>2020-08-05 03:38:22 +0200
commit5cd610a07468137066ea4daa5176c3e7045113b0 (patch)
treea6a5b572572f8f37ec2cb87332fa46e9bcc53aa7 /ecp/util/Makefile
parent2473a7d5c51806ab8651cd3c4e07a15b62084eb5 (diff)
ecp moved to root; fixed utils and tests
Diffstat (limited to 'ecp/util/Makefile')
-rw-r--r--ecp/util/Makefile22
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