1 // pthread kext build options
3 ARCHS = $(ARCHS_STANDARD_32_64_BIT)
4 SUPPORTED_PLATFORMS = macosx iphoneos appletvos watchos
5 DYLIB_CURRENT_VERSION = $(RC_ProjectSourceVersion)
6 INSTALL_PATH = $(SYSTEM_LIBRARY_DIR)/Extensions
7 MODULE_NAME = com.apple.kec.pthread
8 MODULE_START = pthread_start
9 MODULE_STOP = pthread_stop
10 MODULE_VERSION = 1.0.0d1
11 DEAD_CODE_STRIPPING = NO
12 INFOPLIST_FILE = kern/pthread-Info.plist
13 PRODUCT_NAME = $(TARGET_NAME)
14 WRAPPER_EXTENSION = kext
15 ALWAYS_SEARCH_USER_PATHS = NO
16 SRCROOT_SEARCH_PATHS = $(SRCROOT) $(SRCROOT)/pthread $(SRCROOT)/private
17 HEADER_SEARCH_PATHS = $(SDKROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders $(SDKROOT)/System/Library/Frameworks/Kernel.framework/Headers $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders $(SDKROOT)/System/Library/Frameworks/System.framework/Headers $(SRCROOT_SEARCH_PATHS)
18 GCC_C_LANGUAGE_STANDARD = gnu99
19 CLANG_CXX_LANGUAGE_STANDARD = gnu++0x
20 CLANG_CXX_LIBRARY = libc++
21 GCC_PRECOMPILE_PREFIX_HEADER = YES
22 GCC_PREPROCESSOR_DEFINITIONS_kext = XNU_KERNEL_PRIVATE MACH_KERNEL_PRIVATE ABSOLUTETIME_SCALAR_TYPE NEEDS_SCHED_CALL_T
23 GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_kext)
25 GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES
26 GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES
29 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
30 CLANG_WARN_EMPTY_BODY = YES
31 GCC_WARN_64_TO_32_BIT_CONVERSION = YES
32 GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
33 GCC_WARN_ABOUT_MISSING_NEWLINE = YES
34 GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
35 GCC_WARN_ABOUT_RETURN_TYPE = YES
36 GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
38 GCC_WARN_SIGN_COMPARE = YES
39 GCC_WARN_UNINITIALIZED_AUTOS = YES
40 GCC_WARN_UNUSED_FUNCTION = YES
41 GCC_WARN_UNUSED_LABEL = YES
42 GCC_WARN_UNUSED_PARAMETER = YES
43 GCC_WARN_UNUSED_VARIABLE = YES