2013-04-04 19:00:15 +00:00
|
|
|
# Makefile for OpenWrt
|
|
|
|
#
|
|
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
2013-04-04 23:21:27 +00:00
|
|
|
# Copyright (C) 2013 Project Gluon
|
2013-04-04 19:00:15 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
RELEASE:=Attitude Adjustment
|
|
|
|
PREP_MK= OPENWRT_BUILD= QUIET=0
|
|
|
|
|
2014-04-23 20:16:48 +00:00
|
|
|
include $(GLUONDIR)/include/verbose.mk
|
2013-04-04 19:00:15 +00:00
|
|
|
|
2014-04-23 20:16:48 +00:00
|
|
|
REVISION:=$(shell [ -d $(TOPDIR) ] && cd $(TOPDIR) && ./scripts/getver.sh 2>/dev/null)
|
2013-04-04 19:00:15 +00:00
|
|
|
|
|
|
|
HOSTCC ?= gcc
|
|
|
|
OPENWRTVERSION:=$(RELEASE)$(if $(REVISION), ($(REVISION)))
|
|
|
|
export RELEASE
|
|
|
|
export REVISION
|
|
|
|
export OPENWRTVERSION
|
|
|
|
export IS_TTY=$(shell tty -s && echo 1 || echo 0)
|
|
|
|
export LD_LIBRARY_PATH:=$(subst ::,:,$(if $(LD_LIBRARY_PATH),$(LD_LIBRARY_PATH):)$(STAGING_DIR_HOST)/lib)
|
|
|
|
export DYLD_LIBRARY_PATH:=$(subst ::,:,$(if $(DYLD_LIBRARY_PATH),$(DYLD_LIBRARY_PATH):)$(STAGING_DIR_HOST)/lib)
|
|
|
|
export GIT_CONFIG_PARAMETERS='core.autocrlf=false'
|
|
|
|
export MAKE_JOBSERVER=$(filter --jobserver%,$(MAKEFLAGS))
|
|
|
|
|
|
|
|
# prevent perforce from messing with the patch utility
|
|
|
|
unexport P4PORT P4USER P4CONFIG P4CLIENT
|
|
|
|
|
|
|
|
# prevent user defaults for quilt from interfering
|
|
|
|
unexport QUILT_PATCHES QUILT_PATCH_OPTS
|
|
|
|
|
|
|
|
unexport C_INCLUDE_PATH CROSS_COMPILE ARCH
|
|
|
|
|
|
|
|
# prevent distro default LPATH from interfering
|
|
|
|
unexport LPATH
|
|
|
|
|
|
|
|
# make sure that a predefined CFLAGS variable does not disturb packages
|
|
|
|
export CFLAGS=
|
|
|
|
|
|
|
|
SCAN_COOKIE?=$(shell echo $$$$)
|
|
|
|
export SCAN_COOKIE
|
|
|
|
|
|
|
|
SUBMAKE:=umask 022; $(SUBMAKE)
|
|
|
|
|
2013-04-04 23:21:27 +00:00
|
|
|
FORCE: ;
|
2013-04-04 19:00:15 +00:00
|
|
|
|
2013-04-04 23:21:27 +00:00
|
|
|
.PHONY: FORCE
|
2013-04-04 19:00:15 +00:00
|
|
|
.NOTPARALLEL:
|
|
|
|
|