dtinfo subtree dtinfo
[oweals/cde.git] / cde / programs / dtinfo / dtinfo / src / Imakefile
1 XCOMM $TOG: Imakefile /main/48 1998/08/10 15:52:48 mgreess $
2
3 DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
4 CXXEXTRA_DEFINES = -DEXPAND_TEMPLATES
5
6 PROGRAM_NAME=dtinfo
7
8 MAKEFILEDEPS=Classlist.mk
9
10 NormalCplusplusObjectRule()
11
12 #if defined(RsArchitecture) || defined(AIXArchitecture)
13 LOCAL_LDFLAGS=-blibpath:/usr/dt/lib:/X11/lib:/usr/lib/threads:/usr/lib:/lib
14 #endif
15
16 #include "Classlist.mk"
17
18 XCOMM Localizeable strings are in Messages.res
19 XCOMM Any localizations are to a final assembled resource file
20 XCOMM under the locale subdir. The localized help volume is under
21 XCOMM locale subdir.
22 XCOMM
23 SUBDIRS=Widgets $(CLASSLIBS) Messages cgm
24
25 #define IHaveSubdirs
26 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CXXDEBUGFLAGS=$(CXXDEBUGFLAGS)'
27
28 XCOMM redefine TopLevelProject to build DtInfo with standard CDE config dir
29 #undef  TopLevelProject
30 #define TopLevelProject         DtInfo
31 IMAKE_DEFINES = -DTopLevelProject=TopLevelProject \
32                 -DProjectTmplFile='<DtInfo.tmpl>' \
33                 -DProjectRulesFile='<DtInfo.rules>'
34
35 DependSubdirs($(SUBDIRS))
36
37 #if defined(SVR4) && defined(i386)
38 SYS_LIBRARIES=-L/usr/lib/X11/Metro/lib  -lnsl -lsocked -lgen
39 #elif defined(RsArchitecture) || defined(AIXArchitecture)
40 SYS_LIBRARIES=-lm -liconv /usr/lib/libpthreads.a -blibpath:/usr/dt/lib:/X11/lib:/usr/lib/threads:/usr/lib:/lib
41 #elif defined(USLArchitecture)
42 SYS_LIBRARIES=-lm -lfs
43 #elif defined(HPArchitecture)
44 SYS_LIBRARIES=$(DYNAMIC) -lm
45 #elif defined(LinuxArchitecture) || defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture)
46 SYS_LIBRARIES=-lm -L$(XPROJECTROOT)/lib
47 #else
48 SYS_LIBRARIES=-lm
49 #endif
50
51 INCLUDES = -I. $(BROWSER_INCLUDES) $(MMDB_INCLUDES)
52
53 OLIASNORMALLIBS= \
54            Agents/libAgents.a \
55            Other/libOther.a \
56            Basic/libBasic.a \
57            Preferences/libPreferences.a \
58            $(UAS_LIBS) \
59            Query/libQuery.a \
60            Graphics/libGraphics.a \
61            Managers/libManagers.a \
62            Support/libSupport.a \
63            Marks/libMarks.a \
64            OnlineRender/libOnlineRender.a \
65            OliasSearch/libOliasSearch.a \
66            Widgets/libWidgets.a \
67            cgm/libcgm.a
68 #if defined(SunArchitecture) && CplusplusCompilerMajorVersion > 3
69 OLIASTLIBS= \
70            Agents/libAgentsT.a \
71            Basic/libBasicT.a \
72            Query/libQueryT.a \
73            Graphics/libGraphicsT.a \
74            Managers/libManagersT.a \
75            Support/libSupportT.a \
76            Marks/libMarksT.a \
77            OnlineRender/libOnlineRenderT.a \
78            OliasSearch/libOliasSearchT.a
79 #endif
80 OLIASLIBS= $(OLIASNORMALLIBS) $(OLIASTLIBS)
81
82 #ifndef HPArchitecture
83 # ifdef UseDlOpen
84 DLLIB=-ldl
85 # endif
86 #endif
87
88 OTHEROBJS=Support/InputNotifier.o
89
90 #if defined(SunArchitecture) && (CplusplusCompilerMajorVersion > 3)
91   MMDBTEMPLATES=$(OLIAS)/mmdb/libMMDBTemplates.a
92   UAS_TEMPLATES=UAS/Base/libBaseT.a \
93                 UAS/DtSR/libDtSRT.a \
94                 UAS/MMDB/libMMDBT.a
95   UAS_LIBS=UAS/Base/libBase.a \
96            UAS/DtSR/libDtSR.a \
97            UAS/MMDB/libMMDB.a
98 #else
99   MMDBTEMPLATES=
100   UAS_LIBS=UAS/libUAS.a
101 #endif
102
103 EXTRALIBS=$(STATIC) $(MMDBTEMPLATES)
104
105 #ifdef DoLicenseManagement
106   FLEXLMLIBDIR=$(LICENSE_FROOT)/src
107   LICENSELIBS=$(LICENSE_L_LIBS) $(FLEXLMLIBDIR)/lmgr.a
108 #else
109   LICENSELIBS=
110 #endif
111
112 #if !defined(UseWideChars) || !defined(SunArchitecture)
113   WCHAR_LIB=
114 #elif (OSMajorVersion == 4)
115   WCHAR_LIB=$(STATIC) -L$(LIBRARY)/Xwchar/$(PLATFORM) -lXwchar
116 #else
117   WCHAR_LIB=$(DYNAMIC) -lw
118 #endif
119
120 #ifdef UseQSearch
121 SEARCH_LIB=$(QSEARCHLIBS)
122 #elif defined(UseDtSearch)
123 SEARCH_LIB=$(DTSEARCHLIBS)
124 #else
125 SEARCH_LIB=$(FULCRUMLIBS)
126 #endif
127
128 MMDB_DIR=../../mmdb
129
130 #ifdef AIXArchitecture
131
132 API_OBJS = \
133         $(MMDB_DIR)/api/base.o                  $(MMDB_DIR)/api/info_base.o \
134         $(MMDB_DIR)/api/info_lib.o                      $(MMDB_DIR)/api/smart_ptr.o \
135         $(MMDB_DIR)/api/transaction.o           $(MMDB_DIR)/api/utility.o
136
137 BTREE_OBJS = \
138         $(MMDB_DIR)/btree/mmdb_btree.o
139
140 #if !defined(AIXArchitecture)
141 EXTRA_BTREE_BERKELEY_OBJS = $(MMDB_DIR)/btree_berkeley/memmove.o
142 #endif
143
144 BTREE_BERKELEY_OBJS = \
145         $(MMDB_DIR)/btree_berkeley/bt_close.o   $(MMDB_DIR)/btree_berkeley/bt_conv.o \
146         $(MMDB_DIR)/btree_berkeley/bt_debug.o   $(MMDB_DIR)/btree_berkeley/bt_delete.o \
147         $(MMDB_DIR)/btree_berkeley/bt_get.o             $(MMDB_DIR)/btree_berkeley/bt_open.o \
148         $(MMDB_DIR)/btree_berkeley/bt_overflow.o        $(MMDB_DIR)/btree_berkeley/bt_page.o \
149         $(MMDB_DIR)/btree_berkeley/bt_put.o             $(MMDB_DIR)/btree_berkeley/bt_search.o \
150         $(MMDB_DIR)/btree_berkeley/bt_seq.o             $(MMDB_DIR)/btree_berkeley/bt_split.o \
151         $(MMDB_DIR)/btree_berkeley/bt_stack.o   $(MMDB_DIR)/btree_berkeley/bt_utils.o \
152         $(MMDB_DIR)/btree_berkeley/mktemp.o             $(MMDB_DIR)/btree_berkeley/realloc.o \
153         $(MMDB_DIR)/btree_berkeley/snprintf.o   $(EXTRA_BTREE_BERKELEY_OBJS) \
154         $(MMDB_DIR)/btree_berkeley/mpool.o              $(MMDB_DIR)/btree_berkeley/db.o
155
156 COMPRESSION_OBJS = \
157         $(MMDB_DIR)/compression/abs_agent.o             $(MMDB_DIR)/compression/zip.o \
158         $(MMDB_DIR)/compression/huffman.o               $(MMDB_DIR)/compression/trie.o \
159         $(MMDB_DIR)/compression/code.o          $(MMDB_DIR)/compression/lzss.o \
160         $(MMDB_DIR)/compression/sgml.o          $(MMDB_DIR)/compression/ps.o
161
162 DISKHASH_OBJS = \
163         $(MMDB_DIR)/diskhash/disk_bucket.o              $(MMDB_DIR)/diskhash/bucket_array.o \
164         $(MMDB_DIR)/diskhash/disk_hash.o
165
166 DSTR_OBJS = \
167         $(MMDB_DIR)/dstr/set.o                  $(MMDB_DIR)/dstr/bset.o \
168         $(MMDB_DIR)/dstr/slist.o                        $(MMDB_DIR)/dstr/dlist_cell.o \
169         $(MMDB_DIR)/dstr/dlist.o                        $(MMDB_DIR)/dstr/heap.o \
170         $(MMDB_DIR)/dstr/void_ptr_array.o               $(MMDB_DIR)/dstr/void_ptr_stack.o \
171         $(MMDB_DIR)/dstr/memory_pool.o          $(MMDB_DIR)/dstr/dstr_test.o \
172         $(MMDB_DIR)/dstr/index_agent.o          $(MMDB_DIR)/dstr/token_stack.o \
173         $(MMDB_DIR)/dstr/slist_char_ptr_cell.o
174
175 DTI_EXCS_OBJS = \
176         $(MMDB_DIR)/dti_excs/Jump_Environment.o $(MMDB_DIR)/dti_excs/Exceptions.o \
177         $(MMDB_DIR)/dti_excs/Exception.o                $(MMDB_DIR)/dti_excs/Destructable.o \
178         $(MMDB_DIR)/dti_excs/terminate.o
179
180 DYNHASH_OBJS = \
181         $(MMDB_DIR)/dynhash/data_t.o            $(MMDB_DIR)/dynhash/imp_bucket.o \
182         $(MMDB_DIR)/dynhash/imp_die.o
183
184 HMPHF_OBJS = \
185         $(MMDB_DIR)/hmphf/buckets.o                     $(MMDB_DIR)/hmphf/mphf_funcs.o \
186         $(MMDB_DIR)/hmphf/mphf_hash_table.o             $(MMDB_DIR)/hmphf/params.o \
187         $(MMDB_DIR)/hmphf/pattern.o                     $(MMDB_DIR)/hmphf/sorter.o
188
189 INDEX_OBJS = \
190         $(MMDB_DIR)/index/btree_index.o         $(MMDB_DIR)/index/dyn_disk_index.o \
191         $(MMDB_DIR)/index/dyn_index.o           $(MMDB_DIR)/index/dyn_memory_index.o \
192         $(MMDB_DIR)/index/fast_mphf.o           $(MMDB_DIR)/index/hash.o \
193         $(MMDB_DIR)/index/index.o                       $(MMDB_DIR)/index/inv_lists.o \
194         $(MMDB_DIR)/index/mphf_index.o
195
196 MGRS_OBJS = \
197         $(MMDB_DIR)/mgrs/managers.o                     $(MMDB_DIR)/mgrs/misc.o \
198         $(MMDB_DIR)/mgrs/query_mgr.o            $(MMDB_DIR)/mgrs/template_mgr.o
199
200 MISC_OBJS = \
201         $(MMDB_DIR)/misc/unique_id.o
202
203 OBJECT_OBJS = \
204         $(MMDB_DIR)/object/composite.o          $(MMDB_DIR)/object/compressed_pstring.o \
205         $(MMDB_DIR)/object/cset.o                       $(MMDB_DIR)/object/dl_list.o \
206         $(MMDB_DIR)/object/dl_list_cell.o               $(MMDB_DIR)/object/handler.o \
207         $(MMDB_DIR)/object/integer.o            $(MMDB_DIR)/object/long_pstring.o \
208         $(MMDB_DIR)/object/oid.o                        $(MMDB_DIR)/object/oid_list.o \
209         $(MMDB_DIR)/object/oid_t.o                      $(MMDB_DIR)/object/primitive.o \
210         $(MMDB_DIR)/object/pstring.o            $(MMDB_DIR)/object/random_gen.o \
211         $(MMDB_DIR)/object/root.o                       $(MMDB_DIR)/object/short_list.o \
212         $(MMDB_DIR)/object/tuple.o
213
214 OLIASDB_OBJS = \
215         $(MMDB_DIR)/oliasdb/asciiIn_filters.o   $(MMDB_DIR)/oliasdb/collectionIterator.o \
216         $(MMDB_DIR)/oliasdb/dlp_hd.o            $(MMDB_DIR)/oliasdb/dlp_test.o \
217         $(MMDB_DIR)/oliasdb/doc_hd.o            $(MMDB_DIR)/oliasdb/doc_test.o \
218         $(MMDB_DIR)/oliasdb/graphic_hd.o                $(MMDB_DIR)/oliasdb/graphic_test.o \
219         $(MMDB_DIR)/oliasdb/loc_test.o          $(MMDB_DIR)/oliasdb/locator_hd.o \
220         $(MMDB_DIR)/oliasdb/mark.o                      $(MMDB_DIR)/oliasdb/mark_base.o  \
221         $(MMDB_DIR)/oliasdb/mark_test.o                 $(MMDB_DIR)/oliasdb/mmdb.o \
222         $(MMDB_DIR)/oliasdb/node_hd.o           $(MMDB_DIR)/oliasdb/node_test.o \
223         $(MMDB_DIR)/oliasdb/olias_funcs.o               $(MMDB_DIR)/oliasdb/olias_test.o \
224         $(MMDB_DIR)/oliasdb/stylesheet_hd.o     $(MMDB_DIR)/oliasdb/stylesheet_test.o \
225         $(MMDB_DIR)/oliasdb/toc_hd.o            $(MMDB_DIR)/oliasdb/toc_test.o \
226         $(MMDB_DIR)/oliasdb/user_base.o
227
228 SCHEMA_OBJS = \
229         $(MMDB_DIR)/schema/desc.o                       $(MMDB_DIR)/schema/store_desc.o \
230         $(MMDB_DIR)/schema/object_dict.o                $(MMDB_DIR)/schema/stored_object_desc.o \
231         $(MMDB_DIR)/schema/index_desc.o         $(MMDB_DIR)/schema/inv_desc.o \
232         $(MMDB_DIR)/schema/agent_desc.o         $(MMDB_DIR)/schema/container_desc.o \
233         $(MMDB_DIR)/schema/sheet.o                      $(MMDB_DIR)/schema/token.o
234
235 STORAGE_OBJS = \
236         $(MMDB_DIR)/storage/abs_storage.o               $(MMDB_DIR)/storage/chunks_index.o      \
237         $(MMDB_DIR)/storage/heap_comp_funcs.o   $(MMDB_DIR)/storage/lru.o \
238         $(MMDB_DIR)/storage/page.o                      $(MMDB_DIR)/storage/page_cache.o \
239         $(MMDB_DIR)/storage/page_rep.o          $(MMDB_DIR)/storage/page_storage.o \
240         $(MMDB_DIR)/storage/rep_cell.o          $(MMDB_DIR)/storage/rep_policy.o \
241         $(MMDB_DIR)/storage/store_test.o                $(MMDB_DIR)/storage/unixf_storage.o \
242         $(MMDB_DIR)/storage/version.o           $(MMDB_DIR)/storage/vm_storage.o
243
244 UTILITY_OBJS = \
245         $(MMDB_DIR)/utility/funcs.o                     $(MMDB_DIR)/utility/ostring.o \
246         $(MMDB_DIR)/utility/pm_random.o         $(MMDB_DIR)/utility/atoi_pearson.o \
247         $(MMDB_DIR)/utility/xtime.o                     $(MMDB_DIR)/utility/buffer.o \
248         $(MMDB_DIR)/utility/atoi_larson.o               $(MMDB_DIR)/utility/atomic_lock.o \
249         $(MMDB_DIR)/utility/rw_lock.o           $(MMDB_DIR)/utility/atoi_fast.o \
250         $(MMDB_DIR)/utility/filter.o            $(MMDB_DIR)/utility/mmdb_exception.o \
251         $(MMDB_DIR)/utility/randomize.o
252
253 DTI_CC_OBJS = \
254         $(MMDB_DIR)/dti_cc/CC_Listbase.o                $(MMDB_DIR)/dti_cc/cc_exceptions.o \
255         $(MMDB_DIR)/dti_cc/CC_String.o          $(MMDB_DIR)/dti_cc/CC_Tokenizer.o \
256         $(MMDB_DIR)/dti_cc/CC_Stack.o           $(MMDB_DIR)/dti_cc/CC_Slist.o
257
258 #if defined(HPArchitecture) || !defined(CplusplusCompilerMajorVersion) || (CplusplusCompilerMajorVersion != 4)
259 EXTRA_HARDCOPY_OBJS = $(MMDB_DIR)/HardCopy/TemplatesAutoNumber.o
260 #endif
261
262 HARDCOPY_OBJS = \
263         $(MMDB_DIR)/HardCopy/FPset.o            $(MMDB_DIR)/HardCopy/HardCopyFP.o \
264         $(MMDB_DIR)/HardCopy/autoNumber.o               $(MMDB_DIR)/HardCopy/autoNumberFP.o \
265         $(EXTRA_HARDCOPY_OBJS)
266
267 #if defined(HPArchitecture) || !defined(CplusplusCompilerMajorVersion) || (CplusplusCompilerMajorVersion != 4)
268 EXTRA_STYLESHEET_OBJS = $(MMDB_DIR)/StyleSheet/SSTemplates.o
269 #endif
270
271 STYLESHEET_OBJS = \
272         $(MMDB_DIR)/StyleSheet/Attribute.o              $(MMDB_DIR)/StyleSheet/AttributeList.o \
273         $(MMDB_DIR)/StyleSheet/BitVector.o              $(MMDB_DIR)/StyleSheet/DocParser.o \
274         $(MMDB_DIR)/StyleSheet/Element.o                $(MMDB_DIR)/StyleSheet/Expression.o \
275         $(MMDB_DIR)/StyleSheet/Feature.o                $(MMDB_DIR)/StyleSheet/FeatureDefDictionary.o \
276         $(MMDB_DIR)/StyleSheet/FeatureSet.o             $(MMDB_DIR)/StyleSheet/FeatureValue.o \
277         $(MMDB_DIR)/StyleSheet/PathQualifier.o          $(MMDB_DIR)/StyleSheet/PathTable.o \
278         $(MMDB_DIR)/StyleSheet/Resolver.o               $(MMDB_DIR)/StyleSheet/ResolverStack.o \
279         $(MMDB_DIR)/StyleSheet/SSPath.o                 $(MMDB_DIR)/StyleSheet/StyleSheet.o \
280         $(MMDB_DIR)/StyleSheet/StyleSheetExceptions.o \
281         $(MMDB_DIR)/StyleSheet/SymTab.o                 $(MMDB_DIR)/StyleSheet/VariableTable.o \
282         $(MMDB_DIR)/StyleSheet/defParser.o              $(MMDB_DIR)/StyleSheet/defToken.o \
283         $(MMDB_DIR)/StyleSheet/style.o                  $(MMDB_DIR)/StyleSheet/tokenStyle.o \
284         $(MMDB_DIR)/StyleSheet/RendererHCV.o    $(EXTRA_STYLESHEET_OBJS)
285
286 MMDB_OBJS = $(HARDCOPY_OBJS) $(STYLESHEET_OBJS) $(DTI_CC_OBJS)
287
288 ALL_MMDB_OBJS = $(API_OBJS)             $(BTREE_OBJS) \
289         $(BTREE_BERKELEY_OBJS)  $(COMPRESSION_OBJS) \
290         $(DISKHASH_OBJS)        $(DSTR_OBJS) \
291         $(DTI_EXCS_OBJS)        $(DYNHASH_OBJS) \
292         $(HMPHF_OBJS)           $(INDEX_OBJS) \
293         $(MGRS_OBJS)            $(MISC_OBJS) \
294         $(OBJECT_OBJS)          $(OLIASDB_OBJS) \
295         $(SCHEMA_OBJS)          $(STORAGE_OBJS) \
296         $(UTILITY_OBJS)         $(MMDB_OBJS)
297 #endif
298
299 #ifdef AIXArchitecture
300 Libs=$(OTHEROBJS) $(OLIASLIBS) $(UAS_TEMPLATES) $(SEARCH_LIB) $(ALL_MMDB_OBJS) $(WWL_LIBS) $(WCHAR_LIB) $(MTF_LIBRARIES) $(DTHELP_LIBRARY) $(DTPRINTLIB) $(DTSVC_LIBRARY) $(TTLIB) $(X11_LIBRARIES) $(LICENSELIBS) $(EXTRALIBS)
301 #else
302 Libs=$(OTHEROBJS) $(OLIASLIBS) $(UAS_TEMPLATES) $(SEARCH_LIB) $(MMDB_LIBS) $(WWL_LIBS) $(WCHAR_LIB) $(MTF_LIBRARIES) $(DTHELP_LIBRARY) $(DTPRINTLIB) $(DTSVC_LIBRARY) $(TTLIB) $(X11_LIBRARIES) $(LICENSELIBS) $(EXTRALIBS)
303 #endif
304
305 SRCS = main.C
306
307 OBJS = $(SRCS:.C=.o)
308
309 XCOMM first rule
310 all:: Prelude.h dfiles messages Dtinfo
311
312 includes:: Prelude.h dfiles messages
313
314 #if defined(HPArchitecture) ||defined (AIXArchitecture) || defined(UXPArchitecture) || (defined(SunArchitecture) && CplusplusCompilerMajorVersion < 4) || defined(AlphaArchitecture) || defined(USLArchitecture) || defined(FreeBSDArchitecture)
315 # ifndef Dont_Use_Templates_Repository
316 #  define Dont_Use_Templates_Repository
317 UAS_INCLUDES=-I./UAS/Base
318 SUBDIR_TEMPL_INCLUDES=$(UAS_INCLUDES) $(DTSEARCH_INCLUDES) $(COMMON_CLASS_INCLUDES)
319 # endif
320 #endif
321  
322 #if defined(HPArchitecture)
323 SpecialCPlusPlusObjectRule(Templates.o,,+pti all_tmpls $(SUBDIR_TEMPL_INCLUDES))
324 #elif defined(USLArchitecture)
325 SpecialCPlusPlusObjectRule(Templates.o,,+Tall $(SUBDIR_TEMPL_INCLUDES))
326 SpecialCPlusPlusObjectRule(Templates2.o,,+Tall $(SUBDIR_TEMPL_INCLUDES))
327 SpecialCPlusPlusObjectRule(Templates3.o,,+Tall $(SUBDIR_TEMPL_INCLUDES))
328 #elif defined(UXPArchitecture) || (defined(SunArchitecture) && CplusplusCompilerMajorVersion < 4) 
329 SpecialCPlusPlusObjectRule(Templates.o,,+Tall_tmpls $(SUBDIR_TEMPL_INCLUDES))
330 #elif defined(AlphaArchitecture) 
331 SpecialCPlusPlusObjectRule(Templates.o,,-ptf $(SUBDIR_TEMPL_INCLUDES))
332 SpecialCPlusPlusObjectRule(Templates2.o,,-ptf $(SUBDIR_TEMPL_INCLUDES))
333 SpecialCPlusPlusObjectRule(Templates3.o,,-ptf $(SUBDIR_TEMPL_INCLUDES))
334 #elif defined(AIXArchitecture) 
335 SpecialCPlusPlusObjectRule(Templates.o,,-ptf $(SUBDIR_TEMPL_INCLUDES))
336 SpecialCPlusPlusExpandRule(Templates..c,,-ptf -DMakeOperatorNewPublic)
337 #elif defined(DoLicenseManagement)
338 SpecialCPlusPlusObjectRule(Templates.o,,-ptf $(LICENSE_L_INCLUDES))
339 #elif defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
340 SpecialCPlusPlusObjectRule(Templates.o,,$(SUBDIR_TEMPL_INCLUDES))
341 SpecialCPlusPlusExpandRule(Templates..c,,-DMakeOperatorNewPublic)
342 #else
343 SpecialCPlusPlusObjectRule(Templates.o,,-ptf $(SUBDIR_TEMPL_INCLUDES))
344 SpecialCPlusPlusExpandRule(Templates..c,,-ptf -DMakeOperatorNewPublic)
345 #endif
346
347 classlist:
348         @echo $(CLASSLIBS)
349
350
351 makelibT(Query)
352 makelib(Widgets)
353 makelibT(Basic)
354 makelibT(Graphics)
355 makelib(Preferences)
356 makelibT(Managers)
357 makelib(Other)
358 makelibT(Agents)
359 #if defined(SunArchitecture) && CplusplusCompilerMajorVersion > 3
360 makelibsubsubdir(UAS,Base)
361 makelibsubsubdir(UAS,DtSR)
362 makelibsubsubdir(UAS,MMDB)
363 #else
364 makelib(UAS)
365 #endif
366 makelibT(Support)
367 makelibT(Marks)
368 makelibT(OnlineRender)
369 makelibT(OliasSearch)
370 makelib(cgm)
371 #if defined(SunArchitecture) && CplusplusCompilerMajorVersion > 3
372 makelibTsubsubdir(UAS,Base)
373 makelibTsubsubdir(UAS,DtSR)
374 makelibTsubsubdir(UAS,MMDB)
375 #endif
376
377
378 #if defined(Dont_Use_Templates_Repository) && (defined(AlphaArchitecture) || defined(USLArchitecture))
379 DEPLIBS=$(OLIASLIBS) $(UAS_TEMPLATES) $(OLIAS)/mmdb/libMMDB.a Templates.o Templates2.o Templates3.o
380 LOCAL_LIBRARIES=$(Libs) Templates.o Templates2.o Templates3.o
381 #elif defined (AIXArchitecture)
382 DEPLIBS=$(OLIASLIBS) $(UAS_TEMPLATES) $(OLIAS)/mmdb/libMMDB.a Templates.o
383 LOCAL_LIBRARIES=$(Libs) Templates.o
384 #elif defined(Dont_Use_Templates_Repository)
385 DEPLIBS=$(OLIASLIBS) $(UAS_TEMPLATES) $(OLIAS)/mmdb/libMMDB.a Templates.o
386 LOCAL_LIBRARIES=$(Libs) Templates.o
387 #else
388 DEPLIBS=$(OLIASLIBS) $(UAS_TEMPLATES) $(OLIAS)/mmdb/libMMDB.a 
389 LOCAL_LIBRARIES=$(Libs)
390 #endif
391 LOCAL_LDFLAGS=$(EXTRALIBDIRS)
392
393 XCOMM Eventually could replace the following rule with r6 rule:
394 XCOMM "ComplexCplusplusProgramTarget"
395 XCOMM for the time being, i added the below hack - rCs
396
397 #if defined(UXPArchitecture)
398 PRE_LD = LD_RUN_PATH=/usr/dt/lib:/X11/lib
399 #endif
400
401 ComplexCPlusPlusProgram($(PROGRAM_NAME))
402
403 RESFILES = Macros.res Strings.res \
404 Messages.res \
405 Query/QueryEditor.res \
406 Agents/BookmarkEdit.res \
407 Agents/MapAgent.res \
408 Agents/MarkList.res \
409 Agents/PrintPanelAgent.res \
410 Agents/Preferences.res \
411 Agents/SearchResultsAgent.res \
412 Agents/NodeHistoryAgent.res \
413 Agents/NodeWindowAgent.res \
414 Agents/GraphicAgent.res \
415 Query/QueryTermView.res
416
417 XCOMM Only the English version of the resource file is generated from
418 XCOMM .res files in the source tree. Other locales must copy this
419 XCOMM instance and maintain the output. See src/locale/ja subdir.
420
421 Dtinfo: Dtinfo.res $(RESFILES)
422         $(RM) Dtinfo
423         $(CPP) -C Dtinfo.res | $(TREERES) > Dtinfo
424
425 includes:: Dtinfo
426
427 clean::
428         $(RM) Dtinfo
429         $(RM) Prelude.h
430
431 dfiles::
432         foreach_subdirs(dfiles, $(CLASSLIBS))
433
434 #if defined(UXPArchitecture) || defined(USLArchitecture)
435 GENCAT=gencat -m
436 #else
437 GENCAT=gencat
438 #endif
439
440 messages:: 
441         foreach_subdirs(messages, $(MSGS))
442         @echo "### Making msgs in src ###"
443         @$(RM) $(PROGRAM_NAME).msg.updated
444         @(messages=;    \
445                 for i in $(MSGS) ; \
446                 do \
447                         messages="$$messages $$i/$$i.msg"; \
448                 done; \
449                 cat $$messages > $(PROGRAM_NAME).cpp )
450         $(CPP) -P -C $(PROGRAM_NAME)_msg.tmpl | $(TOOLS)/misc/msgsets > $(PROGRAM_NAME).msg.updated
451         @$(RM) $(PROGRAM_NAME).cpp
452
453 clean::
454         RemoveFiles($(PROGRAM_NAME).cat $(PROGRAM_NAME).msg.updated)
455
456 make_prelude($(CLASSLIBS), Classlist.mk)
457
458
459 InstallProgram($(PROGRAM_NAME),$(INSTALL_PLATFORM_BIN_DIR))
460 #ifdef HPArchitecture
461 HPchatr($(DESTDIR)$(INSTALL_PLATFORM_BIN_DIR)/$(PROGRAM_NAME))
462 #endif
463
464 XCOMM Must add additional installs for any non-C localizations in build
465 XCOMM tree, as available, for resource file, message cat, help vol., etc.
466 InstallNonExecFile(Dtinfo,$(INSTALL_XRESOURCES_DIR)/C)
467 #ifdef CdeDesktop
468 XCOMM For now, leave name as Olias.hlp, until CDE DtHelp actually used,
469 XCOMM since this is not an SDL volume, and really is help data for
470 XCOMM olias temporarily in use for dtinfo
471 XCOMM Install-Non-Exec-File(Dtinfo.sdl,$(INSTALL_HELP_DIR)/C)
472 InstallNonExecFile(Olias.hlp,$(INSTALL_HELP_DIR)/C)
473 #else
474 InstallNonExecFile(Olias.hlp,$(INSTALL_HELP_DIR)/C)
475 #endif
476 InstallNonExecFile($(PROGRAM_NAME).cat,$(INSTALL_MSG_CAT_DIR)/C)
477
478 XCOMM Variables to switch on debug mode temporarily
479 XCOMM CDEBUGFLAGS = -g -DDEBUG
480 XCOMM CXXDEBUGFLAGS = -g -DDEBUG
481
482 DependTarget()