source: freewrt/rules.mk

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

linux: update to 6.12, cleanup

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