]>
Commit | Line | Data |
---|---|---|
1 | include $(CoreOSMakefiles)/ProjectBuilder/Makefile.Postamble.Common | |
2 | ||
3 | ifeq "$(BUILD_TYPE)" "normal" | |
4 | LIBS += -lcc_noc++ | |
5 | else | |
6 | LIBS = | |
7 | endif | |
8 | ||
9 | LIBS := $(foreach LIB, \ | |
10 | $(filter $(BSD_LIBS), $(subst -l,,$(LIBS))), \ | |
11 | $(NEXT_ROOT)/usr/local/lib/system/lib$(LIB).a) \ | |
12 | $(filter-out $(addprefix -l, $(BSD_LIBS)), $(LIBS)) | |
13 | ||
14 | # pb_makefiles erroneously omits $(BUILD_TYPE_SUFFIX) from the install name | |
15 | DYLIB_INSTALL_NAME = $(LIBRARY_PREFIX)$(NAME).$(VERSION_NAME)$(BUILD_TYPE_SUFFIX)$(LIBRARY_EXT) | |
16 | ||
17 | # The nonversioned suffix link is required by cc -pg, which is a bug in the compiler. | |
18 | # We can remove those when this is fixed. | |
19 | ||
20 | override DEBUG_SUFFIX = _debug | |
21 | PRODUCTS += $(foreach TYPE, DEBUG PROFILE, \ | |
22 | $(PRODUCT_DIR)/$(LIBRARY_PREFIX)$(NAME)$($(TYPE)_SUFFIX)$(LIBRARY_EXT) \ | |
23 | $(PRODUCT_DIR)/$(LIBRARY_PREFIX)$(NAME).$(VERSION_NAME)$($(TYPE)_SUFFIX)$(LIBRARY_EXT) \ | |
24 | ) | |
25 | ||
26 | SystemFramework = $(NSFRAMEWORKDIR)/System.framework | |
27 | VersionDir = /Versions/$(VERSION_NAME) | |
28 | ||
29 | compat-next: | |
30 | $(INSTALL_DIRECTORY) "$(DSTROOT)$(SystemFramework)" | |
31 | $(INSTALL_DIRECTORY) "$(DSTROOT)$(SystemFramework)/Versions" | |
32 | $(INSTALL_DIRECTORY) "$(DSTROOT)$(SystemFramework)/Versions/B" | |
33 | for suffix in "" $(DEBUG_SUFFIX) $(PROFILE_SUFFIX); do \ | |
34 | $(LN) -fs \ | |
35 | $$(relpath \ | |
36 | "$(DSTROOT)$(SystemFramework)$(VersionDir)" \ | |
37 | "$(DSTROOT)$(INSTALLDIR)/$(LIBRARY_PREFIX)$(NAME).$(VERSION_NAME)$${suffix}$(LIBRARY_EXT)") \ | |
38 | "$(DSTROOT)$(SystemFramework)$(VersionDir)/System$${suffix}"; \ | |
39 | $(LN) -fs ".$(VersionDir)/System$${suffix}" "$(DSTROOT)$(SystemFramework)"; \ | |
40 | done | |
41 | $(LN) -fs ".$(VersionDir)/PrivateHeaders" "$(DSTROOT)$(SystemFramework)" | |
42 | ||
43 | compat-bsd: | |
44 | for lib in $(BSD_LIBS) ; do \ | |
45 | $(LN) -fs libSystem.dylib "$(DSTROOT)$(INSTALLDIR)/lib$${lib}.dylib"; \ | |
46 | done |