]> git.saurik.com Git - apple/objc4.git/blob - runtime/Makefile.postamble
objc4-208.tar.gz
[apple/objc4.git] / runtime / Makefile.postamble
1 ###############################################################################
2 # Makefile.postamble
3 # Copyright 1997,2000 Apple Computer, Inc.
4 ###############################################################################
5
6 ifeq "$(PLATFORM_OS)" "macos"
7
8 PROFILE_PRODUCT = $(PRODUCT_DIR)/$(LIBRARY_PREFIX)$(NAME)$(PROFILE_SUFFIX)$(LIBRARY_EXT)
9 VERSIONED_PROFILE_PRODUCT = $(PRODUCT_DIR)/$(LIBRARY_PREFIX)$(NAME)$(PROFILE_SUFFIX).$(VERSION_NAME)$(LIBRARY_EXT)
10 PRODUCTS += $(PROFILE_PRODUCT) $(VERSIONED_PROFILE_PRODUCT)
11 STRIPPED_PRODUCTS += $(VERSIONED_PROFILE_PRODUCT)
12 DYLIB_INSTALL_NAME = $(LIBRARY_PREFIX)$(NAME)$(BUILD_TYPE_SUFFIX).$(VERSION_NAME)$(LIBRARY_EXT)
13 PRODUCT = $(PRODUCT_DIR)/$(DYLIB_INSTALL_NAME)
14
15 endif
16
17 create-profile-lib-compat-link:
18 $(SYMLINK) $(notdir $(VERSIONED_PROFILE_PRODUCT)) $(DSTROOT)$(INSTALLDIR)/libobjc.A_profile.dylib
19
20 link-hashtable:
21 ifeq ("$(PLATFORM_OS)", "macos")
22 $(RM) -f $(DSTROOT)$(PUBLIC_HEADER_DIR)$(PUBLIC_HEADER_DIR_SUFFIX)/hashtable.h
23 $(CP) $(DSTROOT)$(PUBLIC_HEADER_DIR)$(PUBLIC_HEADER_DIR_SUFFIX)/hashtable2.h $(DSTROOT)$(PUBLIC_HEADER_DIR)$(PUBLIC_HEADER_DIR_SUFFIX)/hashtable.h
24 endif
25 ifeq ("$(PLATFORM_OS)", "solaris")
26 $(RM) -f $(DSTROOT)$(PUBLIC_HEADER_DIR)$(PUBLIC_HEADER_DIR_SUFFIX)/hashtable.h
27 $(LN) $(DSTROOT)$(PUBLIC_HEADER_DIR)$(PUBLIC_HEADER_DIR_SUFFIX)/hashtable2.h $(DSTROOT)$(PUBLIC_HEADER_DIR)$(PUBLIC_HEADER_DIR_SUFFIX)/hashtable.h
28 endif
29 ifeq ("$(PLATFORM_OS)", "hpux")
30 $(RM) -f $(DSTROOT)$(PUBLIC_HEADER_DIR)$(PUBLIC_HEADER_DIR_SUFFIX)/hashtable.h
31 $(LN) $(DSTROOT)$(PUBLIC_HEADER_DIR)$(PUBLIC_HEADER_DIR_SUFFIX)/hashtable2.h $(DSTROOT)$(PUBLIC_HEADER_DIR)$(PUBLIC_HEADER_DIR_SUFFIX)/hashtable.h
32 endif
33 true
34
35 # from AFTER_POSTINSTALL
36 postprocess:
37 ifeq ("$(PLATFORM_OS)", "winnt")
38 $(MKDIRS) $(DSTROOT)$(LOCAL_DEVELOPER_DIR)/Libraries
39 $(CP) $(SYMROOT)/runtime.lib $(DSTROOT)$(LOCAL_DEVELOPER_DIR)/Libraries/libobjc.a
40 $(CP) $(SYMROOT)/runtime.lib $(DSTROOT)$(LOCAL_DEVELOPER_DIR)/Libraries/libobjc_g.a
41 $(RM) -f $(DSTROOT)$(INSTALLDIR)/runtime.lib
42 endif
43