home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / compatibility.make < prev    next >
Encoding:
Text File  |  1996-09-08  |  2.8 KB  |  98 lines

  1. #
  2. # compatibility.make
  3. #
  4. # This file provides backward-compatibility with projects which used to
  5. # be built using project_makefiles.  If you have not used any internal
  6. # makefile api, then your old-style projects should build if this makefile
  7. # is included.  If you have used internal api, careful examination of your
  8. # product should indicate what changes are necessary for it to build both
  9. # under project_makefiles and pb_makefiles.
  10. #
  11.  
  12. #
  13. # Variables on LHS are used by the client
  14. #
  15.  
  16. SYM_DIR = $(SFILE_DIR)
  17. DERIVED_SRC_DIR = $(SFILE_DIR)
  18. PRODUCT_ROOT = $(PRODUCT_DIR)
  19. RESOURCES_ROOT = $(GLOBAL_RESOURCE_DIR)
  20.  
  21. #
  22. # Variables on RHS are defined by the client
  23. #
  24.  
  25. OTHER_YFLAGS = $(YFLAGS)
  26. OTHER_LFLAGS = $(LFLAGS)
  27. OTHER_PSWFLAGS = $(PSWFLAGS)
  28. OTHER_RPCFLAGS = $(RPCFLAGS)
  29. LOCAL_LDFLAGS += $(OTHER_LIBTOOL_FLAGS)
  30. OTHER_STRIPFLAGS += $(APP_STRIP_OPTS)
  31. PROFILE_BUILD_LIBS = $(PROF_LIBS)
  32. V = $(VAR_NAME)
  33. ifeq "" "$(VERSION_NAME)"
  34. VERSION_NAME = $(DEPLOY_WITH_VERSION_NAME)
  35. endif
  36. ifeq "" "$(VERSION_NAME)"
  37. VERSION_NAME = UNSPECIFIED
  38. endif
  39. INCLUDED_OSS = $(INCLUDED_PLATFORMS)
  40. INCLUDED_OSS := $(subst winnt,WINDOWS,$(INCLUDED_OSS))
  41. INCLUDED_OSS := $(subst nextstep,NEXTSTEP,$(INCLUDED_OSS))
  42. INCLUDED_OSS := $(subst hpux,HPUX,$(INCLUDED_OSS))
  43. INCLUDED_OSS := $(subst solaris,SOLARIS,$(INCLUDED_OSS))
  44. EXCLUDED_OSS = $(EXCLUDED_PLATFORMS)
  45. EXCLUDED_OSS := $(subst winnt,WINDOWS,$(EXCLUDED_OSS))
  46. EXCLUDED_OSS := $(subst nextstep,NEXTSTEP,$(EXCLUDED_OSS))
  47. EXCLUDED_OSS := $(subst hpux,HPUX,$(EXCLUDED_OSS))
  48. EXCLUDED_OSS := $(subst solaris,SOLARIS,$(EXCLUDED_OSS))
  49. ifneq "" "$(PUBLIC_HEADER_DIR)"
  50. PUBLIC_HDR_INSTALLDIR = $(PUBLIC_HEADER_DIR)
  51. endif
  52. ifneq "" "$(PRIVATE_HEADER_DIR)"
  53. PRIVATE_HDR_INSTALLDIR = $(PRIVATE_HEADER_DIR)
  54. endif
  55. BEFORE_BUILD_RECURSION += $(OTHER_INITIAL_TARGETS)
  56. ifeq "YES" "$(SKIP_EXPORTING_HEADERS)"
  57. SKIP_PREBUILD = YES
  58. endif
  59.  
  60. #
  61. # Variables the client should provide, but doesn't
  62. #
  63.  
  64. include $(MAKEFILEDIR)/platform.make
  65. ALL_SUBPROJECTS := $(SUBPROJECTS) $(BUNDLES) $(LIBRARIES) $(FRAMEWORK_SUBPROJECTS) $(TOOLS) $(LIBRARY_SUBPROJECTS) $(PALETTES) $(AGGREGATES) $(LEGACIES)
  66. YFILES := $(filter %.y, $(OTHERLINKED))
  67. LFILES := $(filter %.l, $(OTHERLINKED))
  68. OTHERLINKED := $(filter-out %.y, $(OTHERLINKED))
  69. OTHERLINKED := $(filter-out %.l, $(OTHERLINKED))
  70.  
  71. #
  72. # Targets are invoked/depended on by the client
  73. #
  74.  
  75. #
  76. # Dependencies are provided by the client
  77. #
  78.  
  79. .PHONY: before_install after_install
  80. echo_makefile_variable: sv
  81. BEFORE_INSTALL += _before_install $(OTHER_INSTALL_DEPENDS)
  82. _before_install: before_install # silly _ required because before_install was :: rule
  83. AFTER_INSTALL += after_install
  84.  
  85. #
  86. # we need this hack because libtool on NT does not work without arch_only
  87. #
  88.  
  89. ifeq "WINDOWS" "$(OS)"
  90. ifeq "LIBRARY" "$(PROJTYPE)"
  91. PROJTYPE_LDFLAGS += -arch_only $(ARCH)
  92. endif
  93. ifeq "FRAMEWORK" "$(PROJTYPE)"
  94. PROJTYPE_LDFLAGS += -arch_only $(ARCH)
  95. endif
  96. endif
  97.  
  98.