2008-05-08 15:37:41 +00:00
|
|
|
include build/config.mk
|
|
|
|
|
2008-06-02 15:57:17 +00:00
|
|
|
MODULES = applications/* libs/* modules/* themes/* i18n/* contrib/luaposix
|
2008-05-28 19:37:43 +00:00
|
|
|
LUA_TARGET = source
|
|
|
|
|
2008-05-28 15:28:13 +00:00
|
|
|
OS:=$(shell uname)
|
|
|
|
export OS
|
2008-05-28 19:37:43 +00:00
|
|
|
|
|
|
|
.PHONY: all build gccbuild luabuild clean host gcchost luahost hostcopy hostclean
|
2008-05-08 15:37:41 +00:00
|
|
|
|
|
|
|
all: build
|
|
|
|
|
2008-05-28 19:37:43 +00:00
|
|
|
build: luabuild gccbuild
|
|
|
|
|
|
|
|
gccbuild:
|
|
|
|
for i in $(MODULES); do make -C$$i compile; done
|
|
|
|
|
|
|
|
luabuild:
|
|
|
|
for i in $(MODULES); do make -C$$i lua$(LUA_TARGET); done
|
2008-05-08 15:37:41 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
for i in $(MODULES); do make -C$$i clean; done
|
|
|
|
|
2008-05-28 19:37:43 +00:00
|
|
|
|
|
|
|
host: build hostcopy
|
|
|
|
|
|
|
|
gcchost: gccbuild hostcopy
|
|
|
|
|
|
|
|
luahost: luabuild hostcopy
|
|
|
|
|
|
|
|
hostcopy:
|
2008-05-26 12:16:16 +00:00
|
|
|
mkdir -p host
|
|
|
|
for i in $(MODULES); do cp $$i/dist/* host/ -R 2>/dev/null || true; done
|
2008-06-02 15:34:59 +00:00
|
|
|
rm -f host/luci
|
|
|
|
ln -s .$(LUCI_INSTALLDIR) host/luci
|
2008-06-02 15:34:26 +00:00
|
|
|
|
|
|
|
run: host
|
|
|
|
./host/usr/bin/boa -c ./host/etc/boa -d
|
|
|
|
|
2008-05-22 17:21:30 +00:00
|
|
|
hostclean: clean
|
2008-05-28 19:37:43 +00:00
|
|
|
rm -rf host
|