1###
2# Configuration variables.
3
4OS := $(shell uname)
5
6# Assume make is always run from top-level of source directory. Note than an
7# Apple style build overrides these variables later in the makefile.
8ProjSrcRoot := $(shell pwd)
9ProjObjRoot := $(ProjSrcRoot)
10
11# The list of modules which are required to be built into every library. This
12# should only be used for internal utilities which could be used in any other
13# module. Any other cases the platform should be allowed to opt-in to.
14AlwaysRequiredModules := int_util
15
16###
17# Tool configuration variables.
18
19# FIXME: LLVM uses autoconf/mkinstalldirs ?
20MKDIR := mkdir -p
21DATE := date
22LIPO := lipo
23CP := cp
24
25VERBOSE := 0
26DEBUGMAKE :=
27
28###
29# Automatic and derived variables.
30
31# Adjust settings for verbose mode
32ifneq ($(VERBOSE),1)
33  Verb := @
34else
35  Verb :=
36endif
37
38Echo := @echo
39ifndef Summary
40  Summary = $(Echo)
41endif
42
43###
44# Common compiler options
45COMMON_CXXFLAGS=-fno-exceptions -fPIC -funwind-tables -I${ProjSrcRoot}/lib -I${ProjSrcRoot}/include
46COMMON_CFLAGS=-fPIC
47