source: freewrt/rules.mk@ df9a3e9

freewrt_2_0
Last change on this file since df9a3e9 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
RevLine 
[635ae4b]1# This file is part of the FreeWRT project. FreeWRT is copyrighted
2# material, please see the LICENCE file in the top-level directory
[1e977a4]3
[b84b14f]4include $(TOPDIR)/lbin/prereq.mk
[9772d83]5-include $(TOPDIR)/.config
[475ad56]6
7ifeq ($(V),)
[c746a832]8V= 5
[475ad56]9endif
10
11ifneq ($(V),0)
[c746a832]12TRACE:= echo "---> "
13START_TRACE:= echo -n "---> "
14END_TRACE:= echo
[475ad56]15else
[c746a832]16START_TRACE:= :
17END_TRACE:= :
18TRACE:= :
[475ad56]19endif
20
21ifeq (${shell [ "$(V)" -ge 5 ] && echo 1},)
[c746a832]22CMD_TRACE:= :
23PKG_TRACE:= :
[475ad56]24else
[c746a832]25CMD_TRACE:= echo -n
26PKG_TRACE:= echo "------> "
[475ad56]27endif
28
29ifeq (${shell [ "$(V)" -ge 10 ] && echo 1},)
[c746a832]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; }
[475ad56]32else
33MAKE_TRACE:=
34EXTRA_MAKEFLAGS:=
[c746a832]35TRACE:= :
36PKG_TRACE:= :
37CMD_TRACE:= :
38START_TRACE:= :
39END_TRACE:= :
[475ad56]40endif
41
[2bdf580]42ifeq (${shell [ "$(V)" -ge 90 ] && echo 1},)
[c746a832]43SET_DASHX:= :
[2bdf580]44else
[c746a832]45SET_DASHX:= set -x
[2bdf580]46endif
47
[475ad56]48# Strip off the annoying quoting
[c04ece1]49ARCH:= $(strip $(subst ",, $(FWRT_ARCH)))
50WGET:= $(strip $(subst ",, $(FWRT_WGET)))
51TARGET_OPTIMIZATION:= $(strip $(subst ",, $(FWRT_TARGET_OPTIMIZATION)))
[a3f04e0]52FWRT_PREFIX:= $(strip $(subst ",, $(FWRT_PREFIX)))
[475ad56]53#"))"))"))"))")) # for vim's broken syntax highlighting :)
54
[db5651c]55include $(TOPDIR)/mk/vars.mk
[9d1f6cc]56
[0bb158e]57MKPASSWD:= $(STAGING_DIR)/bin/mkpasswd
[ed3352a2]58
[ff5402d]59export BASH HOSTCC HOSTCFLAGS LC_ALL MAKE OStype PATH
60export UNAME_S UNAME_R UNAME_M
[dd02a42]61
[08482c1]62ifeq ($(strip ${CFLAGS}),)
63CFLAGS:= -Os -fno-ident
64endif
[de1d22f]65ifeq ($(strip ${TARGET_CFLAGS}),)
[08482c1]66TARGET_CFLAGS:= -Os -fno-ident
[de1d22f]67endif
68
[dd02a42]69_show:
70 @echo '$($(show))'
Note: See TracBrowser for help on using the repository browser.