1 XCOMM $XConsortium: cde.tmpl /main/2 1996/12/04 10:13:09 swick $
3 /* Include the Motif project template file. */
15 # if (__STDC__ && !defined(UnixCpp)) || defined(AnsiCpp) || defined(__llvm__)
17 # define _CUseCat(a,b,c) a##c
19 # define _CUseCat(a,b,c) b##c
23 # define _CUseCat(a,b,c) a/**/c
25 # define _CUseCat(a,b,c) b/**/c
32 # define CDETop $(TOP)/imports/cde
34 # define CDETop $(TOP)
39 #define CDESharedRev 2.1
43 # define SharedLibPam HasSharedLibraries
46 # define NormalLibPam (!SharedLibPam | ForceNormalLib)
49 # define DebugLibPam NO
52 # define ProfileLibPam NO
55 # define SharedPamRev CDESharedRev
59 # define SharedLibTt HasSharedLibraries
62 # define NormalLibTt (!SharedLibTt | ForceNormalLib)
65 # define DebugLibTt NO
68 # define ProfileLibTt NO
71 # define SharedTtRev CDESharedRev
74 #ifndef SharedLibDtSvc
75 # define SharedLibDtSvc HasSharedLibraries
77 #ifndef NormalLibDtSvc
78 # define NormalLibDtSvc (!SharedLibDtSvc | ForceNormalLib)
81 # define DebugLibDtSvc NO
83 #ifndef ProfileLibDtSvc
84 # define ProfileLibDtSvc NO
86 #ifndef SharedDtSvcRev
87 # define SharedDtSvcRev CDESharedRev
90 #ifndef SharedLibDtSearch
91 # define SharedLibDtSearch HasSharedLibraries
93 #ifndef NormalLibDtSearch
94 # define NormalLibDtSearch (!SharedLibDtSearch | ForceNormalLib)
96 #ifndef DebugLibDtSearch
97 # define DebugLibDtSearch NO
99 #ifndef ProfileLibDtSearch
100 # define ProfileLibDtSearch NO
102 #ifndef SharedDtSearchRev
103 # define SharedDtSearchRev CDESharedRev
106 #ifndef SharedLibDtWidget
107 # define SharedLibDtWidget HasSharedLibraries
109 #ifndef NormalLibDtWidget
110 # define NormalLibDtWidget (!SharedLibDtWidget | ForceNormalLib)
112 #ifndef DebugLibDtWidget
113 # define DebugLibDtWidget NO
115 #ifndef ProfileLibDtWidget
116 # define ProfileLibDtWidget NO
118 #ifndef SharedDtWidgetRev
119 # define SharedDtWidgetRev CDESharedRev
122 #ifndef SharedLibDtHelp
123 # define SharedLibDtHelp HasSharedLibraries
125 #ifndef NormalLibDtHelp
126 # define NormalLibDtHelp (!SharedLibDtHelp | ForceNormalLib)
128 #ifndef DebugLibDtHelp
129 # define DebugLibDtHelp NO
131 #ifndef ProfileLibDtHelp
132 # define ProfileLibDtHelp NO
134 #ifndef SharedDtHelpRev
135 # define SharedDtHelpRev CDESharedRev
138 #ifndef SharedLibDtPrint
139 # define SharedLibDtPrint HasSharedLibraries
141 #ifndef NormalLibDtPrint
142 # define NormalLibDtPrint (!SharedLibDtPrint | ForceNormalLib)
144 #ifndef DebugLibDtPrint
145 # define DebugLibDtPrint NO
147 #ifndef ProfileLibDtPrint
148 # define ProfileLibDtPrint NO
150 #ifndef SharedDtPrintRev
151 # define SharedDtPrintRev CDESharedRev
154 #ifndef SharedLibDtTerm
155 # define SharedLibDtTerm HasSharedLibraries
157 #ifndef NormalLibDtTerm
158 # define NormalLibDtTerm (!SharedLibDtTerm | ForceNormalLib)
160 #ifndef DebugLibDtTerm
161 # define DebugLibDtTerm NO
163 #ifndef ProfileLibDtTerm
164 # define ProfileLibDtTerm NO
166 #ifndef SharedDtTermRev
167 # define SharedDtTermRev CDESharedRev
170 #ifndef SharedLibDtMrm
171 # define SharedLibDtMrm HasSharedLibraries
173 #ifndef NormalLibDtMrm
174 # define NormalLibDtMrm (!SharedLibDtMrm | ForceNormalLib)
176 #ifndef DebugLibDtMrm
177 # define DebugLibDtMrm NO
179 #ifndef ProfileLibDtMrm
180 # define ProfileLibDtMrm NO
182 #ifndef SharedDtMrmRev
183 # define SharedDtMrmRev CDESharedRev
186 #ifndef SharedLibDtMmdb
187 # define SharedLibDtMmdb HasSharedLibraries
189 #ifndef NormalLibDtMmdb
190 # define NormalLibDtMmdb (!SharedLibDtMmdb | ForceNormalLib)
192 #ifndef DebugLibDtMmdb
193 # define DebugLibDtMmdb NO
195 #ifndef ProfileLibDtMmdb
196 # define ProfileLibDtMmdb NO
198 #ifndef SharedDtMmdbRev
199 # define SharedDtMmdbRev CDESharedRev
203 # define SharedLibCsa HasSharedLibraries
206 # define NormalLibCsa (!SharedLibCsa | ForceNormalLib)
209 # define DebugLibCsa NO
211 #ifndef ProfileLibCsa
212 # define ProfileLibCsa NO
215 # define SharedCsaRev CDESharedRev
218 #ifndef DtLocalesToBuild
219 #define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1 ja_JP.dt-eucJP
224 # define DtCodeGen dtcodegen
226 # define DtCodeGen $(CLIENTENVSETUP) $(DTCODEGENCAT) $(CDESRC)/dtappbuilder/src/abmf/dtcodegen
231 # define BuildCDEDoc YES
235 # define UseNSGMLS YES
240 # define SGMLDir $(NSGMLSSRC)
241 # define SGMLParser $(NSGMLSSRC)/nsgmls
243 # define SGMLDir $(SGMLSSRC)
244 # define SGMLParser $(SGMLSSRC)/sgmls
250 # define DtInfoGen dtinfogen
252 # define DtInfoGen $(CLIENTENVSETUP) $(DTLCXENVSETUP) DTINFO_HOME=$(DTINFOGENSRC) DTINFO_BIN=$(DTINFOGENSRC)/install:$(DTINFOGENSRC)/mmdb/StyleSheet:$(DTINFOGENSRC)/mmdb/src:SGMLDir:$(CDESRC)/dtsr $(DTINFOGENSRC)/infolib/etc/dtinfogen
255 #ifndef DtInfoGenTmpDir
256 # define DtInfoGenTmpDir $(TOP)/doc/tmp
261 # define DtDocBook dtdocbook
263 # define DtDocBook $(CLIENTENVSETUP) $(DTLCXENVSETUP) $(KORNSHELL) $(CDESRC)/dtdocbook/doc2sdl/dtdocbook
266 #ifndef DtDocBookOptions
268 # define DtDocBookOptions
270 # define DtDocBookOptions -t $(CDESRC)/dtdocbook/doc2sdl -H $(HELPTAGPASS2DEF) -I $(CDESRC)/dtdocbook/instant/instant -L $(CDESRC)/dtdocbook/xlate_locale/xlate_locale -S SGMLParser
275 #if ImportCDE || UseInstalledCDE
276 CDEINCLUDESRC = $(CDETOP)/include
278 CDEINCLUDESRC = $(CDETOP)/exports/include
280 TOP_CDE_INCLUDES = -I$(CDEINCLUDESRC)
281 CDELIBSRC = $(CDETOP)/lib
282 PAMSRC = $(CDELIBSRC)/pam/libpam
283 TTSRC = $(CDELIBSRC)/tt
284 DTSVCSRC = $(CDELIBSRC)/DtSvc
285 DTSEARCHSRC = $(CDELIBSRC)/DtSearch
286 DTWIDGETSRC = $(CDELIBSRC)/DtWidget
287 DTHELPSRC = $(CDELIBSRC)/DtHelp
288 DTPRINTSRC = $(CDELIBSRC)/DtPrint
289 DTTERMSRC = $(CDELIBSRC)/DtTerm
290 DTMRMSRC = $(CDELIBSRC)/DtMrm
291 DTMMDBSRC = $(CDELIBSRC)/DtMmdb
292 CSASRC = $(CDELIBSRC)/csa
293 CDESRC = $(CDETOP)/programs
294 #ifdef BuildLibPathVar
295 DTENVLIBDIR = CDEBuildLibPath
297 #ifdef CDEProjectRoot
298 CDEPROJECTROOT = CDEProjectRoot
300 CDE_INSTALLATION_TOP = CdeInstallationTop
301 CDE_CONFIGURATION_TOP = CdeConfigurationTop
302 CDE_LOGFILES_TOP = CdeLogFilesTop
303 CDE_USER_TOP = CdeUserTop
305 DTCODEGEN = DtCodeGen
306 HELPPARSERSRC = $(CDESRC)/dthelp/parser
307 HELPTAG = _CUseCat($(BINDIR),$(HELPPARSERSRC)/helptag,/dthelptag)
308 HELPTAGPASS1DEF = _CUseCat($(BINDIR),$(HELPPARSERSRC)/pass1/helptag,/dthelp_htag1)
309 HELPTAGPASS2DEF = _CUseCat($(BINDIR),$(HELPPARSERSRC)/pass2/htag2,/dthelp_htag2)
310 DTDOCBOOK = DtDocBook
311 DTDOCBOOKOPTIONS = DtDocBookOptions
313 NSGMLSSRC = $(CDESRC)/nsgmls
315 SGMLSSRC = $(CDESRC)/dtdocbook/sgmls
317 DTINFOGENSRC = $(CDESRC)/dtinfo/dtinfogen
318 DTINFOGEN = DtInfoGen
319 DTINFOGENTMPDIR = DtInfoGenTmpDir
320 #ifdef DtInfoGenOptions
321 DTINFOGENOPTIONS = DtInfoGenOptions
323 #ifdef ArchitectureDefines
324 ARCHITECTURE_DEFINES = ArchitectureDefines
327 DTLCXENVSETUP = DTLCXSEARCHPATH=$(DTHELPSRC)
331 # define TtClientLibs $(TTLIB) $(XLIB)
333 #ifndef TtClientDepLibs
334 # define TtClientDepLibs $(DEPTTLIB) $(DEPXLIB)
337 /* These libraries use UseInstalledCDE instead of UseInstalled. */
341 #define _UseCat _CUseCat
343 #ifndef CDEBuildLibDir
344 # define CDEBuildLibDir BuildLibDir
348 SharedLibReferences(PAM,pam,$(PAMSRC),SOPAMREV,SharedPamRev)
350 ProjectUnsharedLibReferences(PAM,pam,$(PAMSRC),CDEBuildLibDir)
354 SharedLibReferences(TT,tt,$(TTSRC)/lib,SOTTREV,SharedTtRev)
356 ProjectUnsharedLibReferences(TT,tt,$(TTSRC)/lib,CDEBuildLibDir)
360 SharedLibReferences(DTSVC,DtSvc,$(DTSVCSRC),SODTSVCREV,SharedDtSvcRev)
362 ProjectUnsharedLibReferences(DTSVC,DtSvc,$(DTSVCSRC),CDEBuildLibDir)
365 #if SharedLibDtSearch
366 SharedLibReferences(DTSEARCH,DtSearch,$(DTSEARCHSRC),SODTSEARCHREV,SharedDtSearchRev)
368 ProjectUnsharedLibReferences(DTSEARCH,DtSearch,$(DTSEARCHSRC),CDEBuildLibDir)
371 #if SharedLibDtWidget
372 SharedLibReferences(DTWIDGET,DtWidget,$(DTWIDGETSRC),SODTWIDGETREV,SharedDtWidgetRev)
374 ProjectUnsharedLibReferences(DTWIDGET,DtWidget,$(DTWIDGETSRC),CDEBuildLibDir)
378 SharedLibReferences(DTHELP,DtHelp,$(DTHELPSRC),SODTHELPREV,SharedDtHelpRev)
380 ProjectUnsharedLibReferences(DTHELP,DtHelp,$(DTHELPSRC),CDEBuildLibDir)
384 SharedLibReferences(DTPRINT,DtPrint,$(DTPRINTSRC),SODTPRINTREV,SharedDtPrintRev)
386 ProjectUnsharedLibReferences(DTPRINT,DtPrint,$(DTPRINTSRC),CDEBuildLibDir)
390 SharedLibReferences(DTTERM,DtTerm,$(DTTERMSRC),SODTTERMREV,SharedDtTermRev)
392 ProjectUnsharedLibReferences(DTTERM,DtTerm,$(DTTERMSRC),CDEBuildLibDir)
396 SharedLibReferences(DTMRM,DtMrm,$(DTMRMSRC),SODTMRMREV,SharedDtMrmRev)
398 ProjectUnsharedLibReferences(DTMRM,DtMrm,$(DTMRMSRC),CDEBuildLibDir)
402 SharedLibReferences(DTMMDB,DtMmdb,$(DTMMDBSRC),SODTMMDBREV,SharedDtMmdbRev)
404 ProjectUnsharedLibReferences(DTMMDB,DtMmdb,$(DTMMDBSRC),CDEBuildLibDir)
408 SharedLibReferences(DTCM,DtCm,$(DTCMSRC),SODTCMREV,SharedDtCmRev)
410 ProjectUnsharedLibReferences(DTCM,DtCm,$(DTCMSRC),CDEBuildLibDir)
414 SharedLibReferences(CSA,csa,$(CSASRC),SOCSAREV,SharedCsaRev)
416 ProjectUnsharedLibReferences(CSA,csa,$(CSASRC),CDEBuildLibDir)
420 /* Revert to the normal library rules. */
424 #define _UseCat _XUseCat
428 # define DtClientLibs $(DTPRINTLIB) $(DTHELPLIB) $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XLIB)
430 #ifndef DepDtClientLibs
431 # define DepDtClientLibs $(DEPDTPRINTLIB) $(DEPDTHELPLIB) $(DEPDTWIDGETLIB) $(DEPDTSVCLIB) $(DEPTTLIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
433 #ifndef DtClientSysLibs
434 # define DtClientSysLibs $(DYNLIBSYSLIB) $(ICONVSYSLIB) $(REGEXSYSLIB) -lm
436 #ifndef DtClientExtraLibs
437 # define DtClientExtraLibs /**/