summaryrefslogtreecommitdiff
path: root/ecp/util/Makefile
diff options
context:
space:
mode:
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