source: freewrt/rules.mk@ 0bb158e

freewrt_2_0
Last change on this file since 0bb158e was 0bb158e, checked in by Waldemar Brodkorb <wbx@…>, 4 months ago

fix mkpasswd variable

  • Property mode set to 100644
File size: 1.5 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)))
55FWRT_PREFIX:= $(strip $(subst ",, $(FWRT_PREFIX)))
56#"))"))"))"))")) # for vim's broken syntax highlighting :)
57
58include $(TOPDIR)/mk/vars.mk
59
60MKPASSWD:= $(STAGING_DIR)/bin/mkpasswd
61
62export BASH HOSTCC HOSTCFLAGS LC_ALL MAKE OStype PATH
63export UNAME_S UNAME_R UNAME_M
64
65ifeq ($(strip ${CFLAGS}),)
66CFLAGS:= -Os -fno-ident
67endif
68ifeq ($(strip ${TARGET_CFLAGS}),)
69TARGET_CFLAGS:= -Os -fno-ident
70endif
71
72_show:
73 @echo '$($(show))'
Note: See TracBrowser for help on using the repository browser.