[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dhcp] 03/03: +Makefile
From: |
Rohan Prinja |
Subject: |
[dhcp] 03/03: +Makefile |
Date: |
Mon, 01 Jun 2015 23:12:49 +0000 |
wenderen pushed a commit to branch master
in repository dhcp.
commit 59f8c4b1bf1d42a3a614ad2238b3769707aeb200
Author: Rohan Prinja <address@hidden>
Date: Tue Jun 2 04:42:30 2015 +0530
+Makefile
---
Makefile | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..512eaad
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+.PHONY: all clean
+
+PROJROOT := .
+
+LIBDIR := $(PROJROOT)/lib
+
+all: libinterfaces
+
+libinterfaces: $(LIBDIR)/libinterfaces.so
+
+$(LIBDIR)/libinterfaces.so: $(LIBDIR)/interfaces.c
+ gcc -shared -o $@ -fPIC $<
+
+clean:
+ rm -f $(LIBDIR)/libinterfaces.so