2008-07-24 13:55:11 +00:00
|
|
|
include ../../build/config.mk
|
|
|
|
include ../../build/gccconfig.mk
|
|
|
|
|
2009-12-29 18:12:21 +00:00
|
|
|
UCI_VERSION = 0.8.0
|
|
|
|
#UCI_SITE = http://mirror2.openwrt.org/sources
|
|
|
|
#UCI_DIR = uci-$(UCI_VERSION)
|
|
|
|
#UCI_FILE = $(UCI_DIR).tar.gz
|
|
|
|
#UCI_URL = $(UCI_SITE)/$(UCI_FILE)
|
|
|
|
UCI_GITREV = aa3ab8012bfbf793d2884c08ea924545a04e9544
|
|
|
|
UCI_SITE = http://nbd.name
|
|
|
|
UCI_DIR = uci.git
|
|
|
|
UCI_FILE = uci-$(UCI_VERSION)$(UCI_APPEND).tar.gz
|
|
|
|
UCI_URL = $(UCI_SITE)/gitweb.cgi?p=uci.git;a=snapshot;h=$(UCI_GITREV)
|
2008-08-26 19:10:14 +00:00
|
|
|
UCI_PATCHDIR = patches
|
2008-07-24 13:55:11 +00:00
|
|
|
|
|
|
|
all: compile
|
|
|
|
|
|
|
|
include ../../build/module.mk
|
|
|
|
|
|
|
|
$(UCI_FILE):
|
2008-08-18 17:21:54 +00:00
|
|
|
wget -O $@ "$(UCI_URL)" || rm -f $@
|
2008-07-24 13:55:11 +00:00
|
|
|
|
2009-11-14 13:41:31 +00:00
|
|
|
$(UCI_DIR)/.prepared: $(UCI_FILE)
|
2008-07-24 13:55:11 +00:00
|
|
|
rm -rf $(UCI_DIR)
|
|
|
|
tar xvfz $(UCI_FILE)
|
2009-11-14 13:41:31 +00:00
|
|
|
(cd $(UCI_PATCHDIR); ls *.patch | sort > series) || true
|
2009-10-26 13:33:44 +00:00
|
|
|
[ -f "$(UCI_PATCHDIR)/series" ] && while read patch; do \
|
|
|
|
patch -d $(UCI_DIR) -p1 < $(UCI_PATCHDIR)/$$patch; \
|
|
|
|
done < $(UCI_PATCHDIR)/series || true
|
2008-08-26 19:10:14 +00:00
|
|
|
touch $@
|
|
|
|
|
2008-08-27 21:32:05 +00:00
|
|
|
compile: $(UCI_DIR)/.prepared
|
2008-07-24 13:55:11 +00:00
|
|
|
$(MAKE) -C $(UCI_DIR) CC=$(CC) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" OS="$(OS)"
|
|
|
|
mkdir -p dist/usr/lib dist/usr/bin
|
|
|
|
$(MAKE) -C $(UCI_DIR) install DESTDIR=../dist prefix=/usr
|
|
|
|
$(MAKE) -C $(UCI_DIR)/lua CC=$(CC) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" OS="$(OS)"
|
|
|
|
$(MAKE) -C $(UCI_DIR)/lua install DESTDIR=../../dist luadir=$(LUA_LIBRARYDIR)
|
|
|
|
|
|
|
|
compile-all: compile
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(UCI_DIR) $(UCI_FILE)
|