+ifeq ($(DEBUG),1)
+ COPTS = -O0
+ CFLAGS += -g3
+endif
+OS=$(shell uname)
+ifeq ($(OS),Darwin)
+ LINK=$(LD)
+ SHLIB_EXT=dylib
+ SHLIB_FLAGS=-dylib
+else
+ LINK=$(CC)
+ SHLIB_EXT=so
+ SHLIB_FLAGS=-shared -Wl,-soname,$(SHLIB_FILE)
+endif
+SHLIB_FILE=libuci.$(SHLIB_EXT).$(VERSION)
+
+define add_feature
+ @echo "$(if $(findstring 1,$($(1))),#define UCI_$(1) 1,#undef UCI_$(1))" >> $@.tmp
+endef
+
+LIBUCI_DEPS=file.c history.c list.c util.c uci.h uci_config.h uci_internal.h
+
+all: uci-static uci libuci.$(SHLIB_EXT)
+
+cli.o: cli.c uci.h uci_config.h