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.
13 export TOPDIR LC_ALL LANG SDK
17 include $(TOPDIR
)/include/host.mk
19 ifneq ($(OPENWRT_BUILD
),1)
20 override OPENWRT_BUILD
=1
24 space
:= $(empty
) $(empty
)
25 _SINGLE
=export MAKEFLAGS
=$(space
);
27 include $(TOPDIR
)/include/debug.mk
28 include $(TOPDIR
)/include/depends.mk
29 include $(TOPDIR
)/include/toplevel.mk
32 include $(INCLUDE_DIR
)/depends.mk
33 include $(INCLUDE_DIR
)/subdir.mk
34 include package
/Makefile
36 $(package
/stamp-compile
): $(BUILD_DIR
)/.prepared
37 $(BUILD_DIR
)/.prepared
: Makefile
38 @mkdir
-p
$$(dirname
$@
)
39 @mkdir
-p bin
/packages
43 rm -rf
$(BUILD_DIR
) $(BIN_DIR
)
48 # check prerequisites before starting to build
49 prereq
: $(package
/stamp-prereq
) ;
51 world
: prepare
$(package
/stamp-compile
) FORCE
52 @
$(MAKE
) package
/index
54 .PHONY
: clean dirclean prereq prepare world