Annotation of Amaya/thotlib/Makefile.in, revision 1.25
1.1 cvs 1: #
2: # Makefile for thotlib directory
3: # Generated from thotlib/Makefile.in
4: # Daniel Veillard, 1997
5: #
6:
7: .SUFFIXES: .c .o ND.o
8:
9: @VPATHOPT@= @srcdir@
10: THOTDIR = @top_srcdir@
1.3 cvs 11:
12: include ../Options
13:
1.21 cvs 14: INCLUDES= -DHAVE_CONFIG_H -I.. -I@top_srcdir@/tablelib/f @THOTINCLUDES@ $(X_FLAGS)
1.9 cvs 15: LIBS = -L../tablelib -L. -L.. $(IMGLIBS) $(X_LIBS) -lXext $(X_PRE_LIBS) \
16: -lX11 $(X_EXTRA_LIBS) @LIBS@ $(EXTRA_LIBS) -lm
1.1 cvs 17:
18: prefix = @prefix@
19: exec_prefix = @exec_prefix@
20: libdir = @libdir@
1.7 cvs 21: bindir = @bindir@
1.8 cvs 22: MACHINE= @target@
1.1 cvs 23:
24: SUBDIRS = include
1.19 cvs 25: OBJDIRS = base content dialogue document editing image presentation tree unicode view xml
1.1 cvs 26:
27: @SET_MAKE@
28:
29: #
30: # Rule to build standard objects
31: #
32: .c.o :
1.25 ! cvs 33: $(CC) $(CFLAGS) $(THOT_OPTIONS) $(INCLUDES) -c $< -o $@
1.1 cvs 34:
35: #
36: # Rule to build specific objects for libThotKernel.a
37: #
38: .cND.o :
39: $(CC) $(CFLAGS) $(INCLUDES) -DNODISPLAY -c $< -o $@
40:
41: all : directories libThotKernel.a libThotEditor.a print
42:
43: clean :
44: $(RM) libThotKernel.a libThotEditor.a
1.9 cvs 45: (for dir in $(OBJDIRS) ; do $(RM) -r $$dir/*.o ; done)
1.1 cvs 46:
1.12 cvs 47: install :
1.7 cvs 48:
49: uninstall:
1.1 cvs 50:
51: directories :
52: @(for dir in $(OBJDIRS) ; \
53: do if test ! -d $$dir ; then $(MKDIR) $$dir ; fi ; done)
54:
55: force :
56:
57: ../tablelib/libThotTable.a : force
1.5 cvs 58: @(cd ../tablelib ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" libThotTable)
1.1 cvs 59:
60: ../libjpeg.a :
61: @(cd ../libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")
62:
63: ../libpng.a :
64: @(cd ../libpng ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")
65:
66: ../libz.a :
67: @(cd ../libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")
68:
69: include .depends
70:
71: ../tools/mkdep/mkdep :
72: @(cd ../tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")
73:
74: .depends depend : ../tools/mkdep/mkdep
75: ../tools/mkdep/mkdep -relative -vpath $(VPATH) $(INCLUDES) $(VPATH)/*/*.c > .depends
76:
77: #########################################################################
78: # #
79: # Rules to build the main libraries #
80: # #
81: #########################################################################
82:
83: THOTK_OBJ = \
84: base/fileaccess.o \
85: base/memory.o \
86: base/message.o \
87: base/platform.o \
88: base/registry.o \
89: base/structlist.o \
90: base/actions.o \
91: base/units.o \
92: document/externalref.o \
93: document/language.o \
94: document/pivot.o \
95: document/readprs.o \
96: document/readstr.o \
97: document/readtra.o \
98: document/schtrad.o \
99: document/translation.o \
100: tree/draw.o \
1.11 cvs 101: tree/res.o \
102: tree/resmatch.o \
103: tree/resgen.o \
1.1 cvs 104: tree/exceptions.o \
105: tree/references.o \
106: tree/structschema.o \
107: tree/tree.o \
108: tree/checkaccess.o \
1.15 cvs 109: tree/labelalloc.o \
1.19 cvs 110: unicode/uaccess.o \
111: unicode/uconvert.o \
112: unicode/ustring.o \
1.15 cvs 113: xml/writexml.o \
114: xml/savexml.o \
115: xml/translatexml.o \
116: xml/parsexml.o \
117: xml/xmlmodule.o \
118: xml/thotmodule.o
1.1 cvs 119:
120: KERNEL_OBJ = \
121: base/batchmessage.o \
122: content/contentapiND.o \
123: content/contentND.o \
124: dialogue/nodisplay.o \
125: document/documentapiND.o \
126: document/readpivot.o \
127: document/schemastr.o \
128: document/writepivotND.o \
129: editing/applicationapiND.o \
130: presentation/presentationapiND.o \
131: tree/attributeapiND.o \
132: tree/referenceapiND.o \
1.15 cvs 133: tree/treeapiND.o
1.1 cvs 134:
135: EDITOR_OBJ = \
136: image/xbmhandler.o \
137: image/epshandler.o \
138: image/gifhandler.o \
139: image/jpeghandler.o \
140: image/picture.o \
141: image/picturebase.o \
142: image/xpmhandler.o \
143: image/pnghandler.o \
1.13 cvs 144: image/xpmattrib.o\
1.1 cvs 145: image/xpmcreate.o\
146: image/xpmcrifrdata.o\
147: image/xpmcrpfrdata.o\
1.13 cvs 148: image/xpmcrpfri.o\
1.1 cvs 149: image/xpmdata.o\
1.13 cvs 150: image/xpmhashtab.o\
151: image/xpmimage.o\
152: image/xpminfo.o\
1.1 cvs 153: image/xpmmisc.o\
154: image/xpmparse.o\
155: image/xpmrdftoi.o\
156: image/xpmrdftop.o\
157: base/alloca.o \
158: base/config.o \
159: base/thotmsg.o \
160: content/contentapi.o \
161: content/content.o \
162: content/dictionary.o \
163: content/search.o \
164: content/searchref.o \
165: content/word.o \
166: dialogue/callback.o\
167: dialogue/callbackinit.o \
168: dialogue/font.o \
169: dialogue/geom.o \
170: editing/scroll.o \
171: editing/spellchecker.o \
172: image/abspictures.o \
173: image/pictureapi.o \
1.24 cvs 174: presentation/attrpresent.o \
1.1 cvs 175: presentation/changepresent.o \
176: presentation/presentationapi.o \
177: presentation/presvariables.o \
178: presentation/pschemaapi.o \
1.24 cvs 179: presentation/style.o \
1.1 cvs 180: tree/attributeapi.o \
181: tree/pagecommands.o \
182: tree/paginate.o \
183: tree/referenceapi.o \
184: tree/treeapi.o \
185: view/absboxes.o \
186: view/boxmoves.o \
187: view/boxparams.o \
188: view/boxpositions.o \
189: view/boxrelations.o \
190: view/buildboxes.o \
191: view/buildlines.o \
192: view/changeabsbox.o \
193: view/createabsbox.o \
194: view/createpages.o \
195: view/frame.o \
196: view/hyphen.o \
197: view/inites.o \
198: view/windowdisplay.o
199:
200: DIALOGUE_OBJ = \
201: dialogue/LiteClue.o \
202: dialogue/appdialogue.o \
203: dialogue/appli.o \
204: dialogue/attrmenu.o \
205: dialogue/browser.o \
206: dialogue/closedoc.o \
207: dialogue/colors.o \
208: dialogue/context.o \
209: dialogue/createdoc.o \
210: dialogue/creationmenu.o \
211: dialogue/dialogapi.o \
212: dialogue/input.o \
213: dialogue/interface.o \
214: dialogue/keyboards.o \
215: dialogue/lookup.o \
216: dialogue/modiftype.o \
217: dialogue/opendoc.o \
218: dialogue/openview.o \
219: dialogue/picturemenu.o \
220: dialogue/presentmenu.o \
221: dialogue/printmenu.o \
222: dialogue/extprintmenu.o \
223: dialogue/quit.o \
224: dialogue/savedoc.o \
225: dialogue/searchmenu.o \
226: dialogue/searchmenustr.o \
227: dialogue/selectmenu.o \
228: dialogue/visibility.o \
229: dialogue/zoom.o \
230: document/documentapi.o \
231: document/readpivot.o \
232: document/schemas.o \
233: document/views.o \
234: document/docs.o \
1.15 cvs 235: document/writedoc.o \
1.1 cvs 236: document/writepivot.o \
237: editing/applicationapi.o \
238: editing/checkermenu.o \
239: editing/editcommands.o \
240: editing/selectionapi.o \
241: editing/structchange.o\
242: editing/structcommands.o \
1.18 cvs 243: editing/undo.o \
1.20 cvs 244: editing/undoapi.o \
1.1 cvs 245: editing/structcreation.o \
246: editing/structmodif.o \
247: editing/structselect.o \
248: editing/textcommands.o \
249: editing/unstructchange.o\
250: editing/viewcommands.o \
251: presentation/presrules.o \
252: tree/attributes.o \
253: view/boxlocate.o \
254: view/boxselection.o \
255: view/displaybox.o \
256: view/displayselect.o \
257: view/structlocate.o\
258: view/unstructlocate.o\
1.15 cvs 259: view/viewapi.o
1.1 cvs 260:
261: base/registry.o : @srcdir@/base/registry.c
262: $(CC) $(CFLAGS) $(INCLUDES) -DCOMPILED_IN_THOTDIR=\"@top_srcdir@\" \
1.17 cvs 263: -DCOMPILED_IN_THOTDIR2=\"@prefix@/thot\" \
1.8 cvs 264: -DMACHINE=\"$(MACHINE)\" -c @srcdir@/base/registry.c -o $@
1.1 cvs 265:
1.4 cvs 266: libThotKernel : directories libThotKernel.a
267:
268: libThotKernel.a : $(THOTK_OBJ) $(KERNEL_OBJ)
1.1 cvs 269: $(AR) libThotKernel.a $(THOTK_OBJ) $(KERNEL_OBJ)
270: $(RANLIB) libThotKernel.a
271: @$(ECHO) "====>" libThotKernel is done
272:
1.4 cvs 273: libThotEditor : directories libThotEditor.a
274:
275: libThotEditor.a : $(THOTK_OBJ) $(EDITOR_OBJ) $(DIALOGUE_OBJ)
1.1 cvs 276: $(AR) libThotEditor.a $(THOTK_OBJ) $(EDITOR_OBJ) $(DIALOGUE_OBJ)
277: $(RANLIB) libThotEditor.a
278: @$(ECHO) "====>" libThotEditor is done
279:
280: #
281: # Rules for producing the print binary
282: #
283:
284: PRINT_OBJ= \
285: dialogue/nodialog.o \
286: tree/paginatePP.o \
287: view/initpses.o \
288: view/psdisplay.o \
289: editing/print.o
290:
1.22 cvs 291: tree/paginatePP.o : @srcdir@/tree/paginate.c @srcdir@/include/thot_sys.h
1.1 cvs 292: $(CC) $(CFLAGS) $(INCLUDES) -DPAGINEETIMPRIME -c @srcdir@/tree/paginate.c -o $@
293:
1.14 cvs 294: print : ../bin ../bin/print
295:
296: ../bin :
297: @(mkdir ../bin)
1.1 cvs 298:
299: ../bin/print : $(PRINT_OBJ) libThotEditor.a ../tablelib/libThotTable.a ../libpng.a ../libz.a ../libjpeg.a
300: $(CC) $(LDFLAGS) -o $@ $(PRINT_OBJ) -lThotTable -lThotEditor $(LIBS)
301: @$(ECHO) "====>" print is done
302:
1.6 cvs 303: CEXTRACT= ../bin/cextract
304:
305: $(CEXTRACT) :
1.10 cvs 306: @(cd ../tools/cextract-$(CEXTRACT_VER) ; $(MAKE) )
1.6 cvs 307:
308: proto : ../bin/cextract
309: @(for i in @srcdir@/*/*.c ; \
310: do \
311: dir=`dirname $$i`;base=`basename $$i .c`; \
312: dir="$$dir/../internals" ; \
313: if [ ! -d $$dir/f ] ; then $(MKDIR) $$dir/f ;fi;\
314: $(CEXTRACT) $(CEXTRACT_FLAGS) -o /tmp/cextract.$$base.$$$$ $$i 2> /dev/null ; \
315: if [ -f $$dir/f/"$$base"_f.h ] ; \
316: then \
317: delta=`$(DIFF) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h` ; \
318: if [ "$$delta" != "" ] ; \
319: then \
320: echo " $$i proto changed" ; \
321: $(MV) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h ; \
322: else \
323: $(RM) /tmp/cextract.$$base.$$$$ ; \
324: fi ; \
325: else \
326: echo " $$i proto added" ; \
327: $(MV) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h ; \
328: fi ; \
329: done)
330:
Webmaster