1 include ..
/..
/build
/config.mk
2 include ..
/..
/build
/gccconfig.mk
5 UCI_SITE
= http
://mirror2.openwrt.org
/sources
6 UCI_DIR
= uci-
$(UCI_VERSION
)
7 UCI_FILE
= $(UCI_DIR
).
tar.gz
8 UCI_URL
= $(UCI_SITE
)/$(UCI_FILE
)
9 #UCI_GITREV = c79cc497e7b0caa0f9f6a2c978fa9a5f0f097463
10 #UCI_SITE = http://nbd.name
12 #UCI_FILE = uci-$(UCI_VERSION)$(UCI_APPEND).tar.gz
13 #UCI_URL = $(UCI_SITE)/gitweb.cgi?p=uci.git;a=snapshot;h=$(UCI_GITREV)
14 UCI_PATCHDIR
= patches
18 include ..
/..
/build
/module.mk
21 wget
-O
$@
"$(UCI_URL)" ||
rm -f
$@
23 $(UCI_PATCHDIR
)/series
:
24 (cd
$(UCI_PATCHDIR
); ls
*.patch |
sort > series
)
26 $(UCI_DIR
)/.prepared
: $(UCI_PATCHDIR
)/series
$(UCI_FILE
)
29 while read patch
; do \
30 patch
-d
$(UCI_DIR
) -p1
< $(UCI_PATCHDIR
)/$$patch; \
31 done
< $(UCI_PATCHDIR
)/series
34 compile
: $(UCI_DIR
)/.prepared
35 $(MAKE
) -C
$(UCI_DIR
) CC
=$(CC
) CFLAGS
="$(CFLAGS)" LDFLAGS
="$(LDFLAGS)" OS
="$(OS)"
36 mkdir
-p
dist/usr
/lib
dist/usr
/bin
37 $(MAKE
) -C
$(UCI_DIR
) install DESTDIR
=..
/dist prefix=/usr
38 $(MAKE
) -C
$(UCI_DIR
)/lua CC
=$(CC
) CFLAGS
="$(CFLAGS)" LDFLAGS
="$(LDFLAGS)" OS
="$(OS)"
39 $(MAKE
) -C
$(UCI_DIR
)/lua
install DESTDIR
=..
/..
/dist luadir
=$(LUA_LIBRARYDIR
)
44 rm -rf
$(UCI_DIR
) $(UCI_FILE
)