X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=Makefile;h=bcd5676285989f0834520f5a1ea504e655cc38ca;hp=c32626de9e9deda5f213ba59a61de5620d2a4137;hb=1085fcb801f6e716b41d4c80942c7c802b5270b3;hpb=6115a71b4c998bc0cc359766f99653dadc8ca431 diff --git a/Makefile b/Makefile index c32626d..bcd5676 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ COPTS=-O2 -CFLAGS=$(COPTS) -fPIC -Wall -pedantic -std=gnu99 -Wno-unused -Werror +WOPTS=-pedantic -Wno-unused -Werror +CFLAGS=$(COPTS) -fPIC -Wall -std=gnu99 ifneq ($(DEBUG),) + COPTS = -O0 CFLAGS += -g3 -DDEBUG_ALL endif @@ -14,7 +16,7 @@ cli.o: cli.c uci.h uci: cli.o libuci.a $(CC) $(CFLAGS) -o $@ $^ -libuci.o: libuci.c file.c uci.h list.c err.h +libuci.o: libuci.c file.c uci.h list.c err.h util.c libuci.a: libuci.o rm -f $@ $(AR) rc $@ $^