2009-06-27 00:47:03 +08:00
|
|
|
###
|
|
|
|
# Configuration variables.
|
|
|
|
|
2009-09-04 04:49:22 +08:00
|
|
|
OS := $(shell uname)
|
|
|
|
|
2010-01-14 00:13:01 +08:00
|
|
|
# Assume make is always run from top-level of source directory. Note than an
|
|
|
|
# Apple style build overrides these variables later in the makefile.
|
2009-06-27 00:47:03 +08:00
|
|
|
ProjSrcRoot := $(shell pwd)
|
|
|
|
ProjObjRoot := $(ProjSrcRoot)
|
|
|
|
|
|
|
|
###
|
|
|
|
# Tool configuration variables.
|
|
|
|
|
|
|
|
# FIXME: LLVM uses autoconf/mkinstalldirs ?
|
|
|
|
MKDIR := mkdir -p
|
|
|
|
DATE := date
|
|
|
|
LIPO := lipo
|
2009-09-04 04:49:22 +08:00
|
|
|
CP := cp
|
2009-06-27 00:47:03 +08:00
|
|
|
|
2010-01-18 14:48:12 +08:00
|
|
|
VERBOSE := 0
|
2010-01-18 14:48:33 +08:00
|
|
|
DEBUGMAKE :=
|
2010-01-18 14:48:12 +08:00
|
|
|
|
2009-06-27 00:47:03 +08:00
|
|
|
###
|
|
|
|
# Automatic and derived variables.
|
|
|
|
|
|
|
|
# Adjust settings for verbose mode
|
2010-01-18 14:48:12 +08:00
|
|
|
ifneq ($(VERBOSE),1)
|
2009-06-27 00:47:03 +08:00
|
|
|
Verb := @
|
|
|
|
else
|
2010-01-14 00:13:01 +08:00
|
|
|
Verb :=
|
2009-06-27 00:47:03 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
Echo := @echo
|
|
|
|
ifndef Summary
|
2010-01-18 14:49:33 +08:00
|
|
|
Summary = $(Echo)
|
2009-06-27 00:47:03 +08:00
|
|
|
endif
|