-COPTS=-g -O2
+COPTS=-O2
CFLAGS=$(COPTS) -fPIC -Wall -pedantic -std=gnu99 -Wno-unused -Werror
+ifneq ($(DEBUG),)
+ CFLAGS += -g3 -DDEBUG_ALL
+endif
AR=ar
CC=gcc
uci: cli.o libuci.a
$(CC) $(CFLAGS) -o $@ $^
-libuci.o: libuci.c parse.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 $@ $^