+Makefile

This commit is contained in:
Rohan Prinja 2015-06-02 04:42:30 +05:30
parent e4dd87a98f
commit 59f8c4b1bf
1 changed files with 15 additions and 0 deletions

15
Makefile Normal file
View File

@ -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