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