source: freewrt/rules.mk@ 9036ea5

freewrt_1_0 freewrt_2_0
Last change on this file since 9036ea5 was db5651c, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

merge wbx-target-cleanup to trunk.

  • mk directory for some top level makefiles (build.mk,vars.mk)
  • add a separate configfs partition to all models, 128 kb big
  • add model and platform specific startup files and kernel configs
  • delete target/linux/package, add all addon kernel packages to packages
  • simplify target/linux/brcm-2.4/Makefile, abstraction to mk/ comes later
  • add target/image directory, place where the different images are created
  • default off for all extra packages, be sure that you enable all packages you need to get a dsl-capable router. snapshots will be created by a specific config which contains all needed stuff (iptables, pppoe, pptp, haserl, webif)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@588 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/license for details.
6
7include $(TOPDIR)/lbin/prereq.mk
8-include $(TOPDIR)/.config
9
10ifeq ($(V),)
11V= 5
12endif
13
14ifneq ($(V),0)
15TRACE:= echo "---> "
16START_TRACE:= echo -n "---> "
17END_TRACE:= echo
18else
19START_TRACE:= :
20END_TRACE:= :
21TRACE:= :
22endif
23
24ifeq (${shell [ "$(V)" -ge 5 ] && echo 1},)
25CMD_TRACE:= :
26PKG_TRACE:= :
27else
28CMD_TRACE:= echo -n
29PKG_TRACE:= echo "------> "
30endif
31
32ifeq (${shell [ "$(V)" -ge 10 ] && echo 1},)
33EXTRA_MAKEFLAGS:= -s
34MAKE_TRACE:= >/dev/null 2>&1 || { echo "Build failed. Please re-run make with V=99 to see what's going on"; false; }
35else
36MAKE_TRACE:=
37EXTRA_MAKEFLAGS:=
38TRACE:= :
39PKG_TRACE:= :
40CMD_TRACE:= :
41START_TRACE:= :
42END_TRACE:= :
43endif
44
45ifeq (${shell [ "$(V)" -ge 90 ] && echo 1},)
46SET_DASHX:= :
47else
48SET_DASHX:= set -x
49endif
50
51# Strip off the annoying quoting
52ARCH:= $(strip $(subst ",, $(FWRT_ARCH)))
53WGET:= $(strip $(subst ",, $(FWRT_WGET)))
54TARGET_OPTIMIZATION:= $(strip $(subst ",, $(FWRT_TARGET_OPTIMIZATION)))
55#"))"))"))"))")) # for vim's broken syntax highlighting :)
56
57include $(TOPDIR)/mk/vars.mk
58
59ifeq (${OStype},Linux)
60MKPASSWD:= $(STAGING_DIR)/bin/mkpasswd -H md5
61else
62MKPASSWD:= encrypt -m
63endif
64
65export BASH HOSTCC HOSTCFLAGS LC_ALL MAKE OStype PATH
66export UNAME_S UNAME_R UNAME_M
67
68_show:
69 @echo '$($(show))'
Note: See TracBrowser for help on using the repository browser.