source: freewrt/rules.mk@ 4de1d13

freewrt_1_0 freewrt_2_0
Last change on this file since 4de1d13 was 635ae4b, checked in by Thorsten Glaser <tg@…>, 19 years ago

by request of wbx@ add a "licence boilerplate" which can (or should,
or ought to) be added to (almost) any file in the repository, to pre-
vent companies who only check out part of the sources from thinking
it's unlicenced, public domain or whatever.

Please use the template as shown in build.mk or here:


# $FreeWRT$
#-
# This file is part of the FreeWRT project. FreeWRT is copyrighted
# material, please see the LICENCE file in the top-level directory
# or at http://www.freewrt.org/license for details.


at the top of the file (after a shebang line, if required).

Both this "boilerplate" and the according change to the website
have been okay'd by wbx@ as well as this textual change itself.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@472 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)/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.