Imakefile 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. XCOMM $TOG: Imakefile /main/2 1997/12/23 11:41:20 bill $
  2. XCOMM ** WARNING **
  3. XCOMM
  4. XCOMM The files named here may appear in many different Imakefiles.
  5. XCOMM If you add or remove a file, be sure to update all locations.
  6. XCOMM It's unfortunate, but all this redundancy serves a purpose.
  7. XCOMM
  8. XCOMM Other possible locations are:
  9. XCOMM .../lib/DtMmdb/Imakefile
  10. XCOMM .../lib/DtMmdb/<subdir>/Imakefile
  11. XCOMM .../programs/dtinfo/mmdb/Imakefile
  12. XCOMM .../programs/dtinfo/mmdb/<subdir>/Imakefile
  13. #define DoNormalLib YES
  14. #define DoSharedLib NO
  15. #define DoDebugLib NO
  16. #define DoProfileLib NO
  17. #define LibName MMDB
  18. #define LibHeaders NO
  19. #define LibCreate NO
  20. #define CplusplusSource YES
  21. DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
  22. CXXEXTRA_DEFINES = -DEXPAND_TEMPLATES
  23. XCOMM Do not put any -g here, will cause the generation of MasterTemplate.c.c
  24. XCOMM to use centerline_new, which cannot be linked on HP
  25. XCOMM darwinl 6/27/95
  26. #ifdef DtinfoClient
  27. DEFINES=-DCDE_NEXT
  28. #else
  29. DEFINES=
  30. #endif
  31. INCLUDES = -I$(DTMMDBSRC)/HardCopy $(EXCEPTIONS_INCLUDES) $(COMMON_CLASS_INCLUDES) -I$(DTMMDBSRC)
  32. #if defined(CplusplusCompilerMajorVersion) && (CplusplusCompilerMajorVersion == 4)
  33. XCOMM need the ptr repository
  34. CXXEXTRA_DEFINES = -ptr../templates
  35. #endif
  36. #if defined(USLArchitecture)
  37. CXXEXTRA_DEFINES = -Xo
  38. #endif
  39. #if defined(HPArchitecture) || defined(LinuxArchitecture) || defined(BSDArchitecture) || !defined(CplusplusCompilerMajorVersion) || (CplusplusCompilerMajorVersion != 4)
  40. LinkSourceFile(TemplatesAutoNumber.C,$(DTMMDBSRC)/HardCopy)
  41. EXTRA_SRCS = TemplatesAutoNumber.C
  42. #endif
  43. LinkSourceFile(FPset.C,$(DTMMDBSRC)/HardCopy)
  44. LinkSourceFile(HardCopyFP.C,$(DTMMDBSRC)/HardCopy)
  45. LinkSourceFile(autoNumber.C,$(DTMMDBSRC)/HardCopy)
  46. LinkSourceFile(autoNumberFP.C,$(DTMMDBSRC)/HardCopy)
  47. BASE_SRCS = FPset.C HardCopyFP.C autoNumber.C autoNumberFP.C
  48. SRCS = $(BASE_SRCS) $(EXTRA_SRCS)
  49. OBJS = $(BASE_SRCS:.C=.o) $(EXTRA_SRCS:.C=.o)
  50. #include <Library.tmpl>
  51. #ifdef HPArchitecture
  52. LinkSourceFile(all_tmpls,$(DTMMDBSRC)/HardCopy)
  53. SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,+pti all_tmpls -DEXPAND_TEMPLATES)
  54. #elif defined(UXPArchitecture) || (defined(SunArchitecture) && CplusplusCompilerMajorVersion < 4)
  55. LinkSourceFile(all_tmpls,$(DTMMDBSRC)/HardCopy)
  56. SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,+Tall_tmpls -DEXPAND_TEMPLATES)
  57. #elif defined(AlphaArchitecture)
  58. SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,-ptf -DEXPAND_TEMPLATES)
  59. #elif defined(LinuxArchitecture) || defined(BSDArchitecture)
  60. SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,-DEXPAND_TEMPLATES)
  61. SpecialCPlusPlusExpandRule(TemplatesAutoNumber..c,TemplatesAutoNumber.C,-DEXPAND_TEMPLATES)
  62. #else
  63. SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,-ptf -DEXPAND_TEMPLATES)
  64. SpecialCPlusPlusExpandRule(TemplatesAutoNumber..c,TemplatesAutoNumber.C,-ptf -DEXPAND_TEMPLATES)
  65. #endif
  66. SubdirLibraryRule($(OBJS))
  67. DependTarget()