same for host builds
[openwrt.git] / Makefile
1 # Makefile for OpenWrt
2 #
3 # Copyright (C) 2007 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 TOPDIR:=${CURDIR}
10 LC_ALL:=C
11 LANG:=C
12 IS_TTY:=${shell tty -s && echo 1 || echo 0}
13 export TOPDIR LC_ALL LANG IS_TTY
14
15 world:
16
17 include $(TOPDIR)/include/debug.mk
18 include $(TOPDIR)/include/host.mk
19
20 ifneq ($(OPENWRT_BUILD),1)
21 override OPENWRT_BUILD=1
22 export OPENWRT_BUILD
23 include $(TOPDIR)/include/toplevel.mk
24 else
25 include rules.mk
26 include $(INCLUDE_DIR)/depends.mk
27 include $(INCLUDE_DIR)/subdir.mk
28 include $(INCLUDE_DIR)/target.mk
29 include target/Makefile
30 include package/Makefile
31 include tools/Makefile
32 include toolchain/Makefile
33
34 $(toolchain/stamp-compile): $(tools/stamp-compile)
35 $(target/stamp-compile): $(toolchain/stamp-install) $(tools/stamp-install)
36 $(package/stamp-compile): $(target/stamp-compile)
37 $(target/stamp-install): $(package/stamp-compile) $(package/stamp-install)
38
39 clean: FORCE
40 rm -rf build_* bin tmp
41
42 dirclean: clean
43 rm -rf staging_dir_* toolchain_build_* tool_build
44
45 distclean: dirclean config-clean symlinkclean docs/clean
46 rm -rf dl
47
48 # check prerequisites before starting to build
49 prereq: $(package/stamp-prereq) $(target/stamp-prereq) ;
50
51 world: .config $(tools/stamp-install) $(toolchain/stamp-install) $(target/stamp-compile) $(package/stamp-compile) $(package/stamp-install) $(target/stamp-install) FORCE
52 $(MAKE) package/index
53
54 package/symlinks:
55 $(SCRIPT_DIR)/feeds.sh $(CONFIG_SOURCE_FEEDS) $(CONFIG_SOURCE_FEEDS_REV)
56
57 endif
This page took 0.045952 seconds and 5 git commands to generate.