3 # Copyright (C) 2007 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
14 IS_TTY
:=${shell tty
-s
&& echo
1 || echo
0}
15 export TOPDIR LC_ALL LANG IS_TTY
17 ifneq ($(OPENWRT_BUILD
),1)
18 export OPENWRT_BUILD
:=1
19 include $(TOPDIR
)/include/toplevel.mk
21 include $(TOPDIR
)/include/host.mk
24 include $(INCLUDE_DIR
)/depends.mk
25 include $(INCLUDE_DIR
)/subdir.mk
26 include tools
/Makefile
27 include toolchain
/Makefile
30 rm -rf build_
* bin tmp
33 rm -rf staging_dir_
* toolchain_build_
* tool_build
35 distclean: dirclean config-clean symlinkclean docs
/clean
38 toolchain
/% package
/% target
/%: FORCE
39 $(MAKE
) -C
$(patsubst %/$*,%,$@
) $*
41 world
: .config
$(tools
/stamp
) $(toolchain
/stamp
) FORCE
42 $(MAKE
) target
/compile
43 $(MAKE
) package
/compile
44 $(MAKE
) package
/install
45 $(MAKE
) target
/install