1# Configurations to build 2# 3# This section must define: 4# Description - A description of this target. 5# Configs - The names of each configuration to build; this is used to build 6# multiple libraries inside a single configuration file (for 7# example, Debug and Release builds, or builds with and without 8# software floating point). 9# 10# This section must define one of: 11# UniveralArchs - A list of architectures to build for, when using universal build 12# support (e.g., on Darwin). This should only be used to build fat 13# libraries, simply building multiple libraries for different 14# architectures should do so using distinct configs, with the 15# appropriate choices for CC and CFLAGS. 16# 17# Arch - The target architecture; this must match the compiler-rt name for the 18# architecture and is used to find the appropriate function 19# implementations. 20# 21# When not universal builds, this section may define: 22# Arch.<Config Name> - Set the target architecture on a per-config basis. 23 24Description := Target for building universal libraries for Darwin. 25 26Configs := Debug Release Profile 27UniversalArchs := i386 x86_64 28 29# Platform Options 30# 31# This section may override any of the variables in make/options.mk, using: 32# <Option Name> := ... option value ... 33# 34# See make/options.mk for the available options and their meanings. Options can 35# be override on a per-config, per-arch, or per-config-and-arch basis using: 36# <Option Name>.<Config Name> := ... 37# <Option Name>.<Arch Name> := ... 38# <Option Name>.<Config Name>.<Arch Name> := ... 39 40CC := clang 41 42CFLAGS := -Wall -Werror 43CFLAGS.Debug := $(CFLAGS) -g 44CFLAGS.Release := $(CFLAGS) -O3 -fomit-frame-pointer 45CFLAGS.Profile := $(CFLAGS) -pg -g 46 47FUNCTIONS.i386 := $(CommonFunctions) $(ArchFunctions.i386) 48FUNCTIONS.ppc := $(CommonFunctions) $(ArchFunctions.ppc) 49FUNCTIONS.x86_64 := $(CommonFunctions) $(ArchFunctions.x86_64) 50FUNCTIONS.armv5 := $(CommonFunctions) $(ArchFunctions.armv5) 51FUNCTIONS.armv6 := $(CommonFunctions) $(ArchFunctions.armv6) 52FUNCTIONS.armv7 := $(CommonFunctions) $(ArchFunctions.armv7) 53 54OPTIMIZED.Debug := 0 55 56VISIBILITY_HIDDEN := 1 57