1 XCOMM $TOG: Imakefile /main/2 1997/12/23 11:41:20 bill $
5 XCOMM The files named here may appear in many different Imakefiles.
6 XCOMM If you add or remove a file, be sure to update all locations.
7 XCOMM It's unfortunate, but all this redundancy serves a purpose.
9 XCOMM Other possible locations are:
10 XCOMM .../lib/DtMmdb/Imakefile
11 XCOMM .../lib/DtMmdb/<subdir>/Imakefile
12 XCOMM .../programs/dtinfo/mmdb/Imakefile
13 XCOMM .../programs/dtinfo/mmdb/<subdir>/Imakefile
15 #define DoNormalLib YES
16 #define DoSharedLib NO
18 #define DoProfileLib NO
23 #define CplusplusSource YES
24 DEPEND_DEFINES = $(DEPENDDEFINES)
25 CXXEXTRA_DEFINES = -DEXPAND_TEMPLATES
27 XCOMM Do not put any -g here, will cause the generation of MasterTemplate.c.c
28 XCOMM to use centerline_new, which cannot be linked on HP
37 INCLUDES = $(CXXDEPENDINCLUDES) -I$(DTMMDBSRC)/HardCopy $(EXCEPTIONS_INCLUDES) $(COMMON_CLASS_INCLUDES) -I$(DTMMDBSRC)
39 #if defined(CplusplusCompilerMajorVersion) && \
40 (CplusplusCompilerMajorVersion == 4) && !defined(SunArchitecture)
41 XCOMM need the ptr repository
42 CXXEXTRA_DEFINES = -ptr../templates
45 #if defined(USLArchitecture)
46 CXXEXTRA_DEFINES = -Xo
49 #if defined(HPArchitecture) || defined(LinuxArchitecture) || defined(BSDArchitecture) || !defined(CplusplusCompilerMajorVersion) || (CplusplusCompilerMajorVersion != 4)
50 LinkSourceFile(TemplatesAutoNumber.C,$(DTMMDBSRC)/HardCopy)
52 EXTRA_SRCS = TemplatesAutoNumber.C
55 LinkSourceFile(FPset.C,$(DTMMDBSRC)/HardCopy)
56 LinkSourceFile(HardCopyFP.C,$(DTMMDBSRC)/HardCopy)
57 LinkSourceFile(autoNumber.C,$(DTMMDBSRC)/HardCopy)
58 LinkSourceFile(autoNumberFP.C,$(DTMMDBSRC)/HardCopy)
60 BASE_SRCS = FPset.C HardCopyFP.C autoNumber.C autoNumberFP.C
62 SRCS = $(BASE_SRCS) $(EXTRA_SRCS)
63 OBJS = $(BASE_SRCS:.C=.o) $(EXTRA_SRCS:.C=.o)
65 #include <Library.tmpl>
68 LinkSourceFile(all_tmpls,$(DTMMDBSRC)/HardCopy)
69 SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,+pti all_tmpls -DEXPAND_TEMPLATES)
70 #elif defined(SunArchitecture) && CplusplusCompilerMajorVersion < 4
71 LinkSourceFile(all_tmpls,$(DTMMDBSRC)/HardCopy)
72 SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,+Tall_tmpls -DEXPAND_TEMPLATES)
73 #elif defined(AlphaArchitecture)
74 SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,-ptf -DEXPAND_TEMPLATES)
75 #elif defined(LinuxArchitecture) || defined(BSDArchitecture) || \
76 defined(SunArchitecture)
77 SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,-DEXPAND_TEMPLATES)
78 SpecialCPlusPlusExpandRule(TemplatesAutoNumber..c,TemplatesAutoNumber.C,-DEXPAND_TEMPLATES)
80 SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,-ptf -DEXPAND_TEMPLATES)
81 SpecialCPlusPlusExpandRule(TemplatesAutoNumber..c,TemplatesAutoNumber.C,-ptf -DEXPAND_TEMPLATES)
84 SubdirLibraryRule($(OBJS))