X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=Makefile;h=db690e75a68fef38e645239273bdf2c57229cbf3;hp=989f89056c577dd416225e5296193cfdbed42c99;hb=818f7b8433ae369c20fc56cccbb55b22043b9024;hpb=f2520c27cd7942dc01d3386b4083b128648343c0 diff --git a/Makefile b/Makefile index 989f890..db690e7 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,8 @@ else endif SHLIB_FILE=libuci.$(SHLIB_EXT).$(VERSION) +LIBUCI_DEPS=file.c history.c list.c util.c err.h uci.h + all: uci-static uci libuci.$(SHLIB_EXT) cli.o: cli.c uci.h @@ -37,10 +39,10 @@ uci: cli.o libuci.$(SHLIB_EXT) uci-static: cli.o libuci.a $(CC) $(CFLAGS) -o $@ $^ -libuci-static.o: libuci.c file.c uci.h list.c err.h util.c +libuci-static.o: libuci.c $(LIBUCI_DEPS) $(CC) $(CFLAGS) -c -o $@ $< -libuci-shared.o: libuci.c file.c uci.h list.c err.h util.c +libuci-shared.o: libuci.c $(LIBUCI_DEPS) $(CC) $(CFLAGS) $(FPIC) -c -o $@ $< libuci.a: libuci-static.o