From 59f8c4b1bf1d42a3a614ad2238b3769707aeb200 Mon Sep 17 00:00:00 2001 From: Rohan Prinja Date: Tue, 2 Jun 2015 04:42:30 +0530 Subject: [PATCH] +Makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile 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