libDtSearch: Remove optional code for NO_DBN which is not used on CDE
[oweals/cde.git] / cde / programs / nsgmls / Imakefile
1 XCOMM $TOG: Imakefile /main/13 1998/04/06 13:38:18 mgreess $
2
3 DEPEND_DEFINES = $(CXXDEPENDINCLUDES) $(DEPENDDEFINES)
4
5 #include <Library.tmpl>
6
7 #ifdef AlphaArchitecture
8
9 /*
10  * The OSF 3.2 compiler has a bug which prevents the use of
11  * template class destructors (see Vector.c)
12  */
13 #if OSMajorVersion < 4
14 CXX_COMPILER_BUG_OPTION = -DSP_TEMPLATE_DESTRUCTOR_COMPILER_BUG
15 #else
16 CXX_COMPILER_BUG_OPTION =
17 #endif
18
19 /*
20  * put cpp directives here rather than in CXXDEFINES because
21  * for some reason the CXXDEFINES aren't passed to the link phase
22  * but they are needed there to instantiate templates
23  */
24 CXXOPTIONS = \
25   -DSP_VOLATILE= -DSP_CONST= $(CXX_COMPILER_BUG_OPTION) \
26   -DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_MANUAL_INST
27
28 /*
29  * Flags passed into compile step when doing manual template instantiation.
30  */
31 CXXTEMPLATEFLAGS = -ptf
32
33 M4 = /bin/m4
34 #endif
35
36 #ifdef HPArchitecture
37 /*
38  * make null pointer use invalid
39  *
40  * also, put cpp directives here rather than in CXXDEFINES because
41  * for some reason the CXXDEFINES aren't passed to the link phase
42  * but they are needed there to instantiate templates
43  */
44 CXXOPTIONS = +a1 -z \
45   -DSP_VOLATILE= -DSP_CONST= \
46   -DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_ANSI_CLASS_INST
47 EXTRA_INCLUDES = -I/opt/CC/include/CC
48
49 /*
50  * Flags passed into compile step when doing manual template instantiation.
51  */
52 CXXTEMPLATEFLAGS =
53
54 /*
55  * using /usr/lib/libC.a on HPUX cause nsgmls to core dump.
56  * use the default.
57  */
58 STLIBCENV =
59
60 M4 = /bin/m4
61 #endif
62
63 #if defined(LinuxArchitecture) || defined(BSDArchitecture)
64
65 /*
66  * put cpp directives here rather than in CXXDEFINES because
67  * for some reason the CXXDEFINES aren't passed to the link phase
68  * but they are needed there to instantiate templates
69  */
70 CXXOPTIONS = \
71   -DSP_VOLATILE=volatile -DSP_CONST=const -DSP_ANSI_CLASS_INST \
72   -DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_MANUAL_INST -fno-implicit-templates
73
74 /*
75  * Flags passed into compile step when doing manual template instantiation.
76  */
77 CXXTEMPLATEFLAGS = -fno-implicit-templates
78
79 M4 = /usr/bin/m4
80
81 #endif
82
83 #if defined(RsArchitecture)
84 /* put cpp directives here rather than in CXXDEFINES because
85  * for some reason the CXXDEFINES aren't passed to the link phase
86  * but they are needed there to instantiate templates
87  */
88 CXXOPTIONS = \
89   -DSP_VOLATILE=volatile -DSP_CONST=const \
90   -DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_MANUAL_INST
91
92 /*
93  * Flags passed into compile step when doing manual template instantiation.
94  */
95 CXXTEMPLATEFLAGS =
96
97 M4 = /bin/m4
98 #endif
99
100 #if defined(SunArchitecture)
101 /* put cpp directives here rather than in CXXDEFINES because
102  * for some reason the CXXDEFINES aren't passed to the link phase
103  * but they are needed there to instantiate templates
104  */
105 CXXOPTIONS = \
106   -DSP_VOLATILE= -DSP_CONST= \
107   -DSP_HAVE_LOCALE -DSP_MULTI_BYTE -DSP_ANSI_CLASS_INST
108
109 /*
110  * Flags passed into compile step when doing manual template instantiation.
111  */
112 CXXTEMPLATEFLAGS =
113
114 M4 = /usr/ccs/bin/m4
115 #endif /* SunArchitecture */
116
117 .SUFFIXES: .m4
118 .m4.C:
119         rm -f $@
120         $(M4) instmac.m4 $< >$@
121
122 PROGRAMS=nsgmls
123
124
125 INSTALLFLAGS = $(INSTINCFLAGS)
126
127 SRCS =                           \
128     Allocator.C                  \
129     ArcEngine.C                  \
130     Attribute.C                  \
131     CharsetDecl.C                \
132     CharsetInfo.C                \
133     CharsetRegistry.C            \
134     CmdLineApp.C                 \
135     CodingSystem.C               \
136     ConsoleOutput.C              \
137     ContentState.C               \
138     ContentToken.C               \
139     DescriptorManager.C          \
140     Dtd.C                        \
141     EUCJPCodingSystem.C          \
142     ElementType.C                \
143     Entity.C                     \
144     EntityApp.C                  \
145     EntityCatalog.C              \
146     EntityDecl.C                 \
147     EntityManager.C              \
148     ErrnoMessageArg.C            \
149     ErrorCountEventHandler.C     \
150     Event.C                      \
151     EventGenerator.C             \
152     ExtendEntityManager.C        \
153     ExternalId.C                 \
154     Fixed2CodingSystem.C         \
155     GenericEventHandler.C        \
156     Group.C                      \
157     Hash.C                       \
158     IListBase.C                  \
159     ISO8859InputCodingSystem.C   \
160     Id.C                         \
161     IdentityCodingSystem.C       \
162     InputSource.C                \
163     InternalInputSource.C        \
164     Link.C                       \
165     LinkProcess.C                \
166     LiteralStorage.C             \
167     Location.C                   \
168     Lpd.C                        \
169     Markup.C                     \
170     Message.C                    \
171     MessageArg.C                 \
172     MessageEventHandler.C        \
173     MessageReporter.C            \
174     MessageTable.C               \
175     ModeInfo.C                   \
176     Notation.C                   \
177     NumericCharRefOrigin.C       \
178     OffsetOrderedList.C          \
179     OpenElement.C                \
180     OutputCharStream.C           \
181     OutputState.C                \
182     Parser.C                     \
183     Param.C                      \
184     ParserApp.C                  \
185     ParserEventGeneratorKit.C    \
186     ParserOptions.C              \
187     ParserState.C                \
188     Partition.C                  \
189     PosixStorage.C               \
190     RastEventHandler.C           \
191     Recognizer.C                 \
192     RewindStorageObject.C        \
193     SGMLApplication.C            \
194     SJISCodingSystem.C           \
195     SOEntityCatalog.C            \
196     Sd.C                         \
197     SdText.C                     \
198     SearchResultMessageArg.C     \
199     SgmlParser.C                 \
200     SgmlsEventHandler.C          \
201     ShortReferenceMap.C          \
202     StdioStorage.C               \
203     StorageManager.C             \
204     StringSet.C                  \
205     StringVectorMessageArg.C     \
206     Syntax.C                     \
207     Text.C                       \
208     TokenMessageArg.C            \
209     TranslateInputCodingSystem.C \
210     TrieBuilder.C                \
211     TypeId.C                     \
212     URLStorage.C                 \
213     UTF8CodingSystem.C           \
214     Undo.C                       \
215     UnicodeCodingSystem.C        \
216     UnivCharsetDesc.C            \
217     assert.C                     \
218     nsgmls.C                     \
219     parseAttribute.C             \
220     parseCommon.C                \
221     parseDecl.C                  \
222     parseInstance.C              \
223     parseMode.C                  \
224     parseParam.C                 \
225     parseSd.C                    \
226     splib.C                      \
227     $(GENERATED_SRCS)
228
229 GENERATED_SRCS =                 \
230     app_inst.C                   \
231     arc_inst.C                   \
232     entmgr_inst.C                \
233     nsgmls_inst.C                \
234     parser_inst.C                \
235     xentmgr_inst.C
236
237 EXTRA_SRCS = \
238     CopyOwner.C                  \
239     HashTable.C                  \
240     HashTableItemBase.C          \
241     IQueue.C                     \
242     ISet.C                       \
243     List.C                       \
244     NCVector.C                   \
245     Options.C                    \
246     Owner.C                      \
247     OwnerTable.C                 \
248     ParserMessages.C             \
249     PointerTable.C               \
250     Ptr.C                        \
251     RangeMap.C                   \
252     StringOf.C                   \
253     SubstTable.C                 \
254     Vector.C                     \
255     XcharMap.C
256
257 OBJS =                           \
258     Allocator.o                  \
259     ArcEngine.o                  \
260     Attribute.o                  \
261     CharsetDecl.o                \
262     CharsetInfo.o                \
263     CharsetRegistry.o            \
264     CmdLineApp.o                 \
265     CodingSystem.o               \
266     ConsoleOutput.o              \
267     ContentState.o               \
268     ContentToken.o               \
269     DescriptorManager.o          \
270     Dtd.o                        \
271     EUCJPCodingSystem.o          \
272     ElementType.o                \
273     Entity.o                     \
274     EntityApp.o                  \
275     EntityCatalog.o              \
276     EntityDecl.o                 \
277     EntityManager.o              \
278     ErrnoMessageArg.o            \
279     ErrorCountEventHandler.o     \
280     Event.o                      \
281     EventGenerator.o             \
282     ExtendEntityManager.o        \
283     ExternalId.o                 \
284     Fixed2CodingSystem.o         \
285     GenericEventHandler.o        \
286     Group.o                      \
287     Hash.o                       \
288     IListBase.o                  \
289     ISO8859InputCodingSystem.o   \
290     Id.o                         \
291     IdentityCodingSystem.o       \
292     InputSource.o                \
293     InternalInputSource.o        \
294     Link.o                       \
295     LinkProcess.o                \
296     LiteralStorage.o             \
297     Location.o                   \
298     Lpd.o                        \
299     Markup.o                     \
300     Message.o                    \
301     MessageArg.o                 \
302     MessageEventHandler.o        \
303     MessageReporter.o            \
304     MessageTable.o               \
305     ModeInfo.o                   \
306     Notation.o                   \
307     NumericCharRefOrigin.o       \
308     OffsetOrderedList.o          \
309     OpenElement.o                \
310     OutputCharStream.o           \
311     OutputState.o                \
312     Param.o                      \
313     Parser.o                     \
314     ParserApp.o                  \
315     ParserEventGeneratorKit.o    \
316     ParserOptions.o              \
317     ParserState.o                \
318     Partition.o                  \
319     PosixStorage.o               \
320     RastEventHandler.o           \
321     Recognizer.o                 \
322     RewindStorageObject.o        \
323     SGMLApplication.o            \
324     SJISCodingSystem.o           \
325     SOEntityCatalog.o            \
326     Sd.o                         \
327     SdText.o                     \
328     SearchResultMessageArg.o     \
329     SgmlParser.o                 \
330     SgmlsEventHandler.o          \
331     ShortReferenceMap.o          \
332     StdioStorage.o               \
333     StorageManager.o             \
334     StringSet.o                  \
335     StringVectorMessageArg.o     \
336     Syntax.o                     \
337     Text.o                       \
338     TokenMessageArg.o            \
339     TranslateInputCodingSystem.o \
340     TrieBuilder.o                \
341     TypeId.o                     \
342     URLStorage.o                 \
343     UTF8CodingSystem.o           \
344     Undo.o                       \
345     UnicodeCodingSystem.o        \
346     UnivCharsetDesc.o            \
347     assert.o                     \
348     nsgmls.o                     \
349     parseAttribute.o             \
350     parseCommon.o                \
351     parseDecl.o                  \
352     parseInstance.o              \
353     parseMode.o                  \
354     parseParam.o                 \
355     parseSd.o                    \
356     splib.o                      \
357     $(GENERATED_OBJS)
358
359 GENERATED_OBJS =                 \
360     app_inst.o                   \
361     arc_inst.o                   \
362     entmgr_inst.o                \
363     nsgmls_inst.o                \
364     parser_inst.o                \
365     xentmgr_inst.o
366
367 EXTRA_OBJS = \
368     CopyOwner.o                  \
369     HashTable.o                  \
370     HashTableItemBase.o          \
371     IQueue.o                     \
372     ISet.o                       \
373     List.o                       \
374     NCVector.o                   \
375     Options.o                    \
376     Owner.o                      \
377     OwnerTable.o                 \
378     ParserMessages.o             \
379     PointerTable.o               \
380     Ptr.o                        \
381     RangeMap.o                   \
382     StringOf.o                   \
383     SubstTable.o                 \
384     Vector.o                     \
385     XcharMap.o
386
387 #ifdef HPArchitecture
388 SpecialCplusplusObjectRule(Parser,Parser,+T)
389 #endif
390
391 SpecialCplusplusObjectRule(app_inst,app_inst,$(CXXTEMPLATEFLAGS))
392 SpecialCplusplusObjectRule(arc_inst,arc_inst,$(CXXTEMPLATEFLAGS))
393 SpecialCplusplusObjectRule(entmgr_inst,entmgr_inst,$(CXXTEMPLATEFLAGS))
394 SpecialCplusplusObjectRule(nsgmls_inst,nsgmls_inst,$(CXXTEMPLATEFLAGS))
395 SpecialCplusplusObjectRule(parser_inst,parser_inst,$(CXXTEMPLATEFLAGS))
396 SpecialCplusplusObjectRule(xentmgr_inst,xentmgr_inst,$(CXXTEMPLATEFLAGS))
397
398 includes::  $(GENERATED_SRCS)
399
400 NormalCplusplusObjectRule()
401 ComplexCplusplusProgramTarget($(PROGRAMS))
402
403 /* make sure the template repository is cleaned */
404 clean::
405         rm -rf ptrepository
406         rm -f $(GENERATED_SRCS)
407
408 /*
409  * Required to build .o files from .m4 files on Alpha
410  */
411 app_inst.C:     app_inst.m4
412 arc_inst.C:     arc_inst.m4
413 entmgr_inst.C:  entmgr_inst.m4
414 nsgmls_inst.C:  nsgmls_inst.m4
415 parser_inst.C:  parser_inst.m4
416 xentmgr_inst.C: xentmgr_inst.m4