]> git.saurik.com Git - apple/libsystem.git/blame_incremental - Makefile.postamble
Libsystem-50.tar.gz
[apple/libsystem.git] / Makefile.postamble
... / ...
CommitLineData
1include $(CoreOSMakefiles)/ProjectBuilder/Makefile.Postamble.Common
2
3ifeq "$(BUILD_TYPE)" "normal"
4LIBS += -lcc_noc++
5else
6LIBS =
7endif
8
9LIBS := $(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
15DYLIB_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
20override DEBUG_SUFFIX = _debug
21PRODUCTS += $(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
26SystemFramework = $(NSFRAMEWORKDIR)/System.framework
27VersionDir = /Versions/$(VERSION_NAME)
28
29compat-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
43compat-bsd:
44 for lib in $(BSD_LIBS) ; do \
45 $(LN) -fs libSystem.dylib "$(DSTROOT)$(INSTALLDIR)/lib$${lib}.dylib"; \
46 done