source: freewrt/rules.mk@ 3fbc961

freewrt_1_0 freewrt_2_0
Last change on this file since 3fbc961 was c04ece1, checked in by Thorsten Glaser <tg@…>, 19 years ago

as discussed with wbx@ some 2-3 weeks ago, change
the BR2_ prefix to FWRT_

tested with a standard build (only the squashfs
image since the jffs2 didn't get built)

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

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