adamstark@78
|
1 // Xcode target configuration settings for the Max 6 SDK
|
adamstark@78
|
2 // Used as the basis for Xcode projects to build Max externals.
|
adamstark@78
|
3 //
|
adamstark@78
|
4 // Changes to the settings in this file will be applied to all SDK examples
|
adamstark@78
|
5 // To change settings for only one of the examples, override the settings using
|
adamstark@78
|
6 // Xcode's target inspector.
|
adamstark@78
|
7 //
|
adamstark@78
|
8 // by Timothy Place
|
adamstark@78
|
9 // Copyright © 2012, Cycling '74
|
adamstark@78
|
10
|
adamstark@78
|
11
|
adamstark@78
|
12 // Name & Version
|
adamstark@78
|
13 PRODUCT_NAME = $(PROJECT_NAME)
|
adamstark@78
|
14 PRODUCT_VERSION = 6.1.4
|
adamstark@78
|
15 //ARCHS = i386 x86_64
|
adamstark@78
|
16 ARCHS = x86_64
|
adamstark@78
|
17
|
adamstark@78
|
18
|
adamstark@78
|
19 // Paths
|
adamstark@78
|
20
|
adamstark@78
|
21 // ===========================================================================
|
adamstark@78
|
22 // NOTE: SET PATH TO YOUR C74SUPPORT FOLDER IN YOUR MAX SDK HERE
|
adamstark@78
|
23
|
adamstark@78
|
24 C74SUPPORT = $(SRCROOT)/../../../SDKs/MaxSDK-6.1.4/c74support/
|
adamstark@78
|
25
|
adamstark@78
|
26 // ===========================================================================
|
adamstark@78
|
27
|
adamstark@78
|
28 HEADER_SEARCH_PATHS = "$(C74SUPPORT)/max-includes" "$(C74SUPPORT)/msp-includes" "$(C74SUPPORT)/jit-includes"
|
adamstark@78
|
29 FRAMEWORK_SEARCH_PATHS = "$(C74SUPPORT)/max-includes" "$(C74SUPPORT)/msp-includes" "$(C74SUPPORT)/jit-includes"
|
adamstark@78
|
30 DSTROOT = $(SRCROOT)/build
|
adamstark@78
|
31 // (This next path is relative to DSTROOT)
|
adamstark@78
|
32 INSTALL_PATH = /
|
adamstark@78
|
33
|
adamstark@78
|
34
|
adamstark@78
|
35 // Special Files
|
adamstark@78
|
36 GCC_PREFIX_HEADER = $(C74SUPPORT)/max-includes/macho-prefix.pch
|
adamstark@78
|
37 INFOPLIST_FILE = $(SRCROOT)/Info.plist
|
adamstark@78
|
38
|
adamstark@78
|
39
|
adamstark@78
|
40 // Architecture and Deployment
|
adamstark@78
|
41 ARCHS = i386 x86_64
|
adamstark@78
|
42
|
adamstark@78
|
43 // The following section sets the Mac SDK version to be used.
|
adamstark@78
|
44 // For most projects this has little to no impact because there are no direct dependencies on OS function calls.
|
adamstark@78
|
45 // In those projects with OS function calls, it should be okay to use the most recent SDK version because the
|
adamstark@78
|
46 // MACOSX_DEPLOYMENT_TARGET will disable functionality that is unavailable in the older target OS.
|
adamstark@78
|
47 // For this reason, the SDKROOT variable is commented out, telling Xcode to use the default (which is the most recent SDK).
|
adamstark@78
|
48 //
|
adamstark@78
|
49 // If you do need to define the SDKROOT, different versions of Xcode have varying syntax and varying versions of the SDK present.
|
adamstark@78
|
50
|
adamstark@78
|
51 // Xcode 3.x
|
adamstark@78
|
52 // SDKROOT = $(DEVELOPER_DIR)/SDKs/MacOSX10.5.sdk
|
adamstark@78
|
53
|
adamstark@78
|
54 // Xcode 4.0 - Xcode 4.2
|
adamstark@78
|
55 // SDKROOT = $(DEVELOPER_DIR)/SDKs/MacOSX10.6.sdk
|
adamstark@78
|
56
|
adamstark@78
|
57 // Xcode 4.3+
|
adamstark@78
|
58 // SDKROOT = macosx10.6
|
adamstark@78
|
59
|
adamstark@78
|
60 MACOSX_DEPLOYMENT_TARGET = 10.6
|
adamstark@78
|
61
|
adamstark@78
|
62
|
adamstark@78
|
63 // Compiler Version -- leave them all commented out to get the default version provided by Xcode
|
adamstark@78
|
64 // GCC_VERSION = 4.2
|
adamstark@78
|
65 // GCC_VERSION = com.apple.compilers.llvmgcc42
|
adamstark@78
|
66 // GCC_VERSION = com.apple.compilers.llvm.clang.1_0
|
adamstark@78
|
67
|
adamstark@78
|
68
|
adamstark@78
|
69 // Preprocessor Defines
|
adamstark@78
|
70 GCC_PREPROCESSOR_DEFINITIONS = "DENORM_WANT_FIX = 1" "NO_TRANSLATION_SUPPORT = 1"
|
adamstark@78
|
71
|
adamstark@78
|
72
|
adamstark@78
|
73 // Static Configuration (don't change these)
|
adamstark@78
|
74 WRAPPER_EXTENSION = mxo;
|
adamstark@78
|
75 WARNING_CFLAGS = -Wmost -Wno-four-char-constants -Wno-unknown-pragmas
|
adamstark@78
|
76 DEPLOYMENT_LOCATION = YES
|
adamstark@78
|
77 GENERATE_PKGINFO_FILE = YES
|
adamstark@78
|
78
|
adamstark@78
|
79
|
adamstark@78
|
80 // Flags to enforce some build-time checks for the symbols used while not actually performing a hard link
|
adamstark@78
|
81 C74_SYM_LINKER_FLAGS = @$(C74SUPPORT)/max-includes/c74_linker_flags.txt
|
adamstark@78
|
82
|
adamstark@78
|
83
|
adamstark@78
|
84 // hide all symbols by default
|
adamstark@78
|
85 // mark a function to be exported with the C74_EXPORT macro -- most likely this will only apply to the main() function
|
adamstark@78
|
86 OTHER_CFLAGS = -fvisibility=hidden
|