source: freewrt/rules.mk@ d1833aa

freewrt_1_0 freewrt_2_0
Last change on this file since d1833aa was 08482c1, checked in by Thorsten Glaser <tg@…>, 19 years ago

add -fno-ident, on the host too (I wonder what host-built
files get into the target... libgcc probably)

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

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[1e977a4]1# $FreeWRT$
[635ae4b]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.
[1e977a4]6
[b84b14f]7include $(TOPDIR)/lbin/prereq.mk
[9772d83]8-include $(TOPDIR)/.config
[475ad56]9
10ifeq ($(V),)
[c746a832]11V= 5
[475ad56]12endif
13
14ifneq ($(V),0)
[c746a832]15TRACE:= echo "---> "
16START_TRACE:= echo -n "---> "
17END_TRACE:= echo
[475ad56]18else
[c746a832]19START_TRACE:= :
20END_TRACE:= :
21TRACE:= :
[475ad56]22endif
23
24ifeq (${shell [ "$(V)" -ge 5 ] && echo 1},)
[c746a832]25CMD_TRACE:= :
26PKG_TRACE:= :
[475ad56]27else
[c746a832]28CMD_TRACE:= echo -n
29PKG_TRACE:= echo "------> "
[475ad56]30endif
31
32ifeq (${shell [ "$(V)" -ge 10 ] && echo 1},)
[c746a832]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; }
[475ad56]35else
36MAKE_TRACE:=
37EXTRA_MAKEFLAGS:=
[c746a832]38TRACE:= :
39PKG_TRACE:= :
40CMD_TRACE:= :
41START_TRACE:= :
42END_TRACE:= :
[475ad56]43endif
44
[2bdf580]45ifeq (${shell [ "$(V)" -ge 90 ] && echo 1},)
[c746a832]46SET_DASHX:= :
[2bdf580]47else
[c746a832]48SET_DASHX:= set -x
[2bdf580]49endif
50
[475ad56]51# Strip off the annoying quoting
[c04ece1]52ARCH:= $(strip $(subst ",, $(FWRT_ARCH)))
53WGET:= $(strip $(subst ",, $(FWRT_WGET)))
54TARGET_OPTIMIZATION:= $(strip $(subst ",, $(FWRT_TARGET_OPTIMIZATION)))
[a3f04e0]55FWRT_PREFIX:= $(strip $(subst ",, $(FWRT_PREFIX)))
[475ad56]56#"))"))"))"))")) # for vim's broken syntax highlighting :)
57
[db5651c]58include $(TOPDIR)/mk/vars.mk
[9d1f6cc]59
[d6462e5]60ifeq (${OStype},Linux)
[c746a832]61MKPASSWD:= $(STAGING_DIR)/bin/mkpasswd -H md5
[d6462e5]62else
[c746a832]63MKPASSWD:= encrypt -m
[d6462e5]64endif
[ed3352a2]65
[ff5402d]66export BASH HOSTCC HOSTCFLAGS LC_ALL MAKE OStype PATH
67export UNAME_S UNAME_R UNAME_M
[dd02a42]68
[08482c1]69ifeq ($(strip ${CFLAGS}),)
70CFLAGS:= -Os -fno-ident
71endif
[de1d22f]72ifeq ($(strip ${TARGET_CFLAGS}),)
[08482c1]73TARGET_CFLAGS:= -Os -fno-ident
[de1d22f]74endif
75
[dd02a42]76_show:
77 @echo '$($(show))'
Note: See TracBrowser for help on using the repository browser.