]>
Commit | Line | Data |
---|---|---|
ad3c9f2a A |
1 | #include "libc.xcconfig" |
2 | ||
3 | // Variants. All variants contain all source files but all excluded. Specific variants then include the files they need. | |
4 | VARIANT_EXCLUDED_SOURCE_FILE_NAMES = * | |
5 | VARIANT_INCLUDED_SOURCE_FILE_NAMES = forceLibcToBuild.c $(VARIANT_$(VARIANT)_INCLUDE) | |
6 | VARIANT_PREPROCESSOR_MACROS = -DBUILDING_VARIANT $(VARIANT_$(VARIANT)_MACROS) | |
7 | ||
8 | SYSTEM_FRAMEWORK_HEADERS = $(DERIVED_FILES_DIR)/System.framework/Versions/B/PrivateHeaders | |
9 | HEADER_SEARCH_PATHS = $(FreeBSD_SEARCH_PATHS) $(inherited) | |
10 | ||
11 | VARIANT_CANCELABLE_MACROS = -DVARIANT_CANCELABLE | |
12 | ||
5f125488 | 13 | VARIANT_CANCELABLE_INCLUDE = $(VARIANT_CANCELABLE_INCLUDE_compat) $(VARIANT_CANCELABLE_INCLUDE_gen) $(VARIANT_CANCELABLE_INCLUDE_net) $(VARIANT_CANCELABLE_INCLUDE_sys) |
ad3c9f2a A |
14 | |
15 | VARIANT_CANCELABLE_INCLUDE_compat = creat.c sigcompat.c | |
2be56ee9 | 16 | VARIANT_CANCELABLE_INCLUDE_gen = lockf.c nanosleep.c pause.c sleep.c termios.c usleep.c wait.c waitpid.c |
ad3c9f2a | 17 | VARIANT_CANCELABLE_INCLUDE_net = recv.c send.c |
ad3c9f2a A |
18 | VARIANT_CANCELABLE_INCLUDE_sys = system.c |
19 | ||
20 | // $DARWINEXTSN | |
21 | ||
22 | VARIANT_DARWINEXTSN_MACROS = -DVARIANT_DARWINEXTSN | |
23 | ||
24 | VARIANT_DARWINEXTSN_INCLUDE = $(VARIANT_DARWINEXTSN_INCLUDE_gen) $(VARIANT_DARWINEXTSN_INCLUDE_stdio) $(VARIANT_DARWINEXTSN_INCLUDE_stdlib) $(VARIANT_DARWINEXTSN_INCLUDE_sys) | |
25 | ||
2be56ee9 | 26 | VARIANT_DARWINEXTSN_INCLUDE_gen = popen.c |
ad3c9f2a A |
27 | VARIANT_DARWINEXTSN_INCLUDE_stdio = fdopen.c fopen.c |
28 | VARIANT_DARWINEXTSN_INCLUDE_stdlib = realpath.c | |
29 | VARIANT_DARWINEXTSN_INCLUDE_sys = getgroups.c | |
30 | ||
31 | // $DARWINEXTSN + no cancel (everyone else is cancelable anyway) | |
32 | ||
33 | VARIANT_DARWINEXTSN_CANCELABLE_MACROS = -DVARIANT_CANCELABLE -DVARIANT_DARWINEXTSN | |
ad3c9f2a A |
34 | |
35 | // Pre-1050 symbols | |
36 | ||
70ad1dc8 | 37 | VARIANT_PRE1050_MACROS = $(VARIANT_PRE1050_MACROS_$(VARIANT_PLATFORM_NAME)) |
ad3c9f2a | 38 | VARIANT_PRE1050_MACROS_macosx = -U__DARWIN_VERS_1050 -D__DARWIN_VERS_1050=0 -DVARIANT_PRE1050 |
70ad1dc8 A |
39 | VARIANT_PRE1050_INCLUDE = $(VARIANT_PRE1050_INCLUDE_$(VARIANT_PLATFORM_NAME)) |
40 | VARIANT_PRE1050_INCLUDE_macosx = daemon.c $(VARIANT_PRE1050_INCLUDE_$(VARIANT_PLATFORM_NAME)_$(CURRENT_ARCH)) | |
ad3c9f2a A |
41 | |
42 | // Legacy symbols | |
43 | VARIANT_LEGACY_MACROS = -U__DARWIN_UNIX03 -D__DARWIN_UNIX03=0 -U__DARWIN_64_BIT_INO_T -D__DARWIN_64_BIT_INO_T=0 -DVARIANT_LEGACY | |
44 | ||
70ad1dc8 A |
45 | VARIANT_LEGACY_INCLUDE = $(VARIANT_LEGACY_INCLUDE_$(VARIANT_PLATFORM_NAME)) |
46 | VARIANT_LEGACY_INCLUDE_macosx = $(VARIANT_LEGACY_INCLUDE_$(VARIANT_PLATFORM_NAME)_$(CURRENT_ARCH)) | |
b061a43b | 47 | VARIANT_LEGACY_INCLUDE_macosx_i386 = $(VARIANT_LEGACY_INCLUDE_compat) $(VARIANT_LEGACY_INCLUDE_gdtoa) $(VARIANT_LEGACY_INCLUDE_gen) $(VARIANT_LEGACY_INCLUDE_locale) $(VARIANT_LEGACY_INCLUDE_net) $(VARIANT_LEGACY_INCLUDE_regex) $(VARIANT_LEGACY_INCLUDE_stdio) $(VARIANT_LEGACY_INCLUDE_stdlib) $(VARIANT_LEGACY_INCLUDE_stdtime) $(VARIANT_LEGACY_INCLUDE_sys) |
ad3c9f2a A |
48 | |
49 | VARIANT_LEGACY_INCLUDE_compat = creat.c setregid.c setreuid.c sigcompat.c killpg.c | |
50 | VARIANT_LEGACY_INCLUDE_gdtoa = gdtoa-strtof.c gdtoa-strtod.c gdtoa-strtodg.c | |
b061a43b | 51 | VARIANT_LEGACY_INCLUDE_gen = clock.c confstr.c crypt.c fnmatch.c lockf.c nanosleep.c nftw.c nice.c pause.c popen.c setmode.c sleep.c termios.c timezone.c ttyname.c usleep.c wait.c waitpid.c |
ad3c9f2a A |
52 | VARIANT_LEGACY_INCLUDE_locale = wcsftime.c |
53 | VARIANT_LEGACY_INCLUDE_net = recv.c send.c | |
ad3c9f2a A |
54 | VARIANT_LEGACY_INCLUDE_regex = regcomp.c |
55 | VARIANT_LEGACY_INCLUDE_stdio = fdopen.c fopen.c fputs.c freopen.c fwrite.c tempnam.c | |
56 | VARIANT_LEGACY_INCLUDE_stdlib = getopt.c putenv.c realpath.c setenv.c system.c | |
57 | VARIANT_LEGACY_INCLUDE_stdtime = localtime.c strftime.c strptime.c | |
ad3c9f2a A |
58 | VARIANT_LEGACY_INCLUDE_sys = msgctl.c semctl.c shmctl.c |
59 | ||
60 | // INODE32 symbols | |
61 | ||
62 | VARIANT_INODE32_MACROS = -U__DARWIN_64_BIT_INO_T -D__DARWIN_64_BIT_INO_T=0 -DVARIANT_INODE32 | |
63 | ||
70ad1dc8 A |
64 | VARIANT_INODE32_INCLUDE = $(VARIANT_INODE32_INCLUDE_$(VARIANT_PLATFORM_NAME)) |
65 | VARIANT_INODE32_INCLUDE_macosx = $(VARIANT_INODE32_INCLUDE_$(VARIANT_PLATFORM_NAME)_$(CURRENT_ARCH)) | |
6465356a A |
66 | VARIANT_INODE32_INCLUDE_macosx_i386 = $(VARIANT_INODE32_INCLUDE_gen) $(VARIANT_INODE32_INCLUDE_sys) |
67 | VARIANT_INODE32_INCLUDE_macosx_x86_64 = $(VARIANT_INODE32_INCLUDE_gen) $(VARIANT_INODE32_INCLUDE_sys) | |
ad3c9f2a A |
68 | |
69 | VARIANT_INODE32_INCLUDE_gen = fts.c getmntinfo.c glob.c nftw.c opendir.c readdir.c rewinddir.c scandir.c seekdir.c telldir.c scandir_b.c | |
70 | VARIANT_INODE32_INCLUDE_sys = statx_np.c | |
71 | ||
72 | // DYLD (libc.a) | |
73 | ||
974e3884 | 74 | VARIANT_DYLD_MACROS = -UBUILDING_VARIANT -DVARIANT_STATIC -DVARIANT_CANCELABLE -DVARIANT_DARWINEXTSN -U__DARWIN_NON_CANCELABLE -D__DARWIN_NON_CANCELABLE=0 |
ad3c9f2a A |
75 | |
76 | VARIANT_DYLD_INCLUDE = $(VARIANT_DYLD_INCLUDE_generic) $(VARIANT_DYLD_INCLUDE_$(CURRENT_ARCH)) | |
77 | ||
6465356a A |
78 | VARIANT_DYLD_INCLUDE_generic = $(VARIANT_DYLD_INCLUDE_gen) $(VARIANT_DYLD_INCLUDE_stdlib) $(VARIANT_DYLD_INCLUDE_string) $(VARIANT_DYLD_INCLUDE_sys) |
79 | VARIANT_DYLD_INCLUDE_gen = arc4random.c closedir.c dirfd.c getcwd.c getpagesize.c nanosleep.c opendir.c readdir.c scandir.c sysctl.c sysctlbyname.c telldir.c usleep.c | |
ad3c9f2a | 80 | VARIANT_DYLD_INCLUDE_stdlib = atexit.c exit.c gettimeofday.c heapsort.c merge.c qsort.c reallocf.c realpath.c |
70ad1dc8 | 81 | VARIANT_DYLD_INCLUDE_string = bcopy.c strcat.c strdup.c strrchr.c |
23e20b00 | 82 | VARIANT_DYLD_INCLUDE_sys = _libc_init.c |