Resolve many build warnings
[oweals/cde.git] / cde / programs / dtinfo / mmdb / HardCopy / Imakefile
1 XCOMM $TOG: Imakefile /main/2 1997/12/23 11:41:20 bill $
2
3 XCOMM                         ** WARNING **
4 XCOMM 
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.
8 XCOMM
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
14
15 #define DoNormalLib     YES
16 #define DoSharedLib     NO
17 #define DoDebugLib      NO
18 #define DoProfileLib    NO
19 #define LibName         MMDB
20 #define LibHeaders      NO
21 #define LibCreate       NO
22
23 #define CplusplusSource YES
24 DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
25 CXXEXTRA_DEFINES = -DEXPAND_TEMPLATES
26
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  
29 XCOMM darwinl 6/27/95
30
31 #ifdef DtinfoClient
32 DEFINES=-DCDE_NEXT
33 #else
34 DEFINES=
35 #endif
36
37 INCLUDES = -I$(DTMMDBSRC)/HardCopy $(EXCEPTIONS_INCLUDES) $(COMMON_CLASS_INCLUDES) -I$(DTMMDBSRC)
38
39 #if defined(CplusplusCompilerMajorVersion) && (CplusplusCompilerMajorVersion == 4)
40 XCOMM need the ptr repository
41 CXXEXTRA_DEFINES = -ptr../templates
42 #endif
43
44 #if defined(USLArchitecture)
45 CXXEXTRA_DEFINES = -Xo
46 #endif
47
48 #if defined(HPArchitecture) || defined(LinuxArchitecture) || defined(BSDArchitecture) || !defined(CplusplusCompilerMajorVersion) || (CplusplusCompilerMajorVersion != 4)
49 LinkSourceFile(TemplatesAutoNumber.C,$(DTMMDBSRC)/HardCopy)
50
51 EXTRA_SRCS = TemplatesAutoNumber.C
52 #endif
53
54 LinkSourceFile(FPset.C,$(DTMMDBSRC)/HardCopy)
55 LinkSourceFile(HardCopyFP.C,$(DTMMDBSRC)/HardCopy)
56 LinkSourceFile(autoNumber.C,$(DTMMDBSRC)/HardCopy)
57 LinkSourceFile(autoNumberFP.C,$(DTMMDBSRC)/HardCopy)
58
59 BASE_SRCS = FPset.C HardCopyFP.C autoNumber.C autoNumberFP.C
60
61 SRCS = $(BASE_SRCS)       $(EXTRA_SRCS)
62 OBJS = $(BASE_SRCS:.C=.o) $(EXTRA_SRCS:.C=.o)
63
64 #include <Library.tmpl>
65
66 #ifdef HPArchitecture
67 LinkSourceFile(all_tmpls,$(DTMMDBSRC)/HardCopy)
68 SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,+pti all_tmpls -DEXPAND_TEMPLATES)
69 #elif defined(UXPArchitecture) || (defined(SunArchitecture) && CplusplusCompilerMajorVersion < 4)
70 LinkSourceFile(all_tmpls,$(DTMMDBSRC)/HardCopy)
71 SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,+Tall_tmpls -DEXPAND_TEMPLATES)
72 #elif defined(AlphaArchitecture)        
73 SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,-ptf -DEXPAND_TEMPLATES)
74 #elif defined(LinuxArchitecture) || defined(BSDArchitecture)
75 SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,-DEXPAND_TEMPLATES)
76 SpecialCPlusPlusExpandRule(TemplatesAutoNumber..c,TemplatesAutoNumber.C,-DEXPAND_TEMPLATES)
77 #else
78 SpecialCPlusPlusObjectRule(TemplatesAutoNumber.o,,-ptf -DEXPAND_TEMPLATES)
79 SpecialCPlusPlusExpandRule(TemplatesAutoNumber..c,TemplatesAutoNumber.C,-ptf -DEXPAND_TEMPLATES)
80 #endif
81
82 SubdirLibraryRule($(OBJS))
83
84 DependTarget()