Root/target/sdk/files/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
9TOPDIR:=${CURDIR}
10LC_ALL:=C
11LANG:=C
12SDK:=1
13export TOPDIR LC_ALL LANG SDK
14
15world:
16
17include $(TOPDIR)/include/host.mk
18
19ifneq ($(OPENWRT_BUILD),1)
20  override OPENWRT_BUILD=1
21  export OPENWRT_BUILD
22  include $(TOPDIR)/include/debug.mk
23  include $(TOPDIR)/include/depends.mk
24  include $(TOPDIR)/include/toplevel.mk
25else
26  include rules.mk
27  include $(INCLUDE_DIR)/depends.mk
28  include $(INCLUDE_DIR)/subdir.mk
29  include package/Makefile
30
31$(package/stamp-compile): $(BUILD_DIR)/.prepared
32$(BUILD_DIR)/.prepared: Makefile
33    @mkdir -p $$(dirname $@)
34    @mkdir -p bin/packages
35    @touch $@
36
37clean: FORCE
38    rm -rf $(BUILD_DIR) $(BIN_DIR)
39
40dirclean: clean
41    rm -rf $(TMP_DIR)
42
43# check prerequisites before starting to build
44prereq: $(package/stamp-prereq) ;
45
46world: prepare $(package/stamp-compile) FORCE
47    @for configfile in `find package -maxdepth 2 -name Config.in` ; do \
48        $(MAKE) compile -C `dirname $$configfile`; \
49    done
50    @$(MAKE) package/index
51
52.PHONY: clean dirclean prereq prepare world
53
54endif
55

Archive Download this file



interactive