mirror of git://git.savannah.gnu.org/guix/dhcp.git
16 lines
246 B
Makefile
16 lines
246 B
Makefile
|
.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
|