Annotation of Amaya/thotlib/Makefile.in, revision 1.21
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 :
33: $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
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 \
174: presentation/changepresent.o \
175: presentation/genericdriver.o \
176: presentation/presentationapi.o \
177: presentation/presentdriver.o \
178: presentation/presvariables.o \
179: presentation/pschemaapi.o \
180: presentation/specificdriver.o \
181: presentation/attrpresent.o \
182: tree/attributeapi.o \
183: tree/pagecommands.o \
184: tree/paginate.o \
185: tree/referenceapi.o \
186: tree/treeapi.o \
187: view/absboxes.o \
188: view/boxmoves.o \
189: view/boxparams.o \
190: view/boxpositions.o \
191: view/boxrelations.o \
192: view/buildboxes.o \
193: view/buildlines.o \
194: view/changeabsbox.o \
195: view/createabsbox.o \
196: view/createpages.o \
197: view/frame.o \
198: view/hyphen.o \
199: view/inites.o \
200: view/windowdisplay.o
201:
202: DIALOGUE_OBJ = \
203: dialogue/LiteClue.o \
204: dialogue/appdialogue.o \
205: dialogue/appli.o \
206: dialogue/attrmenu.o \
207: dialogue/browser.o \
208: dialogue/closedoc.o \
209: dialogue/colors.o \
210: dialogue/context.o \
211: dialogue/createdoc.o \
212: dialogue/creationmenu.o \
213: dialogue/dialogapi.o \
214: dialogue/input.o \
215: dialogue/interface.o \
216: dialogue/keyboards.o \
217: dialogue/lookup.o \
218: dialogue/modiftype.o \
219: dialogue/opendoc.o \
220: dialogue/openview.o \
221: dialogue/picturemenu.o \
222: dialogue/presentmenu.o \
223: dialogue/printmenu.o \
224: dialogue/extprintmenu.o \
225: dialogue/quit.o \
226: dialogue/savedoc.o \
227: dialogue/searchmenu.o \
228: dialogue/searchmenustr.o \
229: dialogue/selectmenu.o \
230: dialogue/visibility.o \
231: dialogue/zoom.o \
232: document/documentapi.o \
233: document/readpivot.o \
234: document/schemas.o \
235: document/views.o \
236: document/docs.o \
1.15 cvs 237: document/writedoc.o \
1.1 cvs 238: document/writepivot.o \
239: editing/applicationapi.o \
240: editing/checkermenu.o \
241: editing/editcommands.o \
242: editing/selectionapi.o \
243: editing/structchange.o\
244: editing/structcommands.o \
1.18 cvs 245: editing/undo.o \
1.20 cvs 246: editing/undoapi.o \
1.1 cvs 247: editing/structcreation.o \
248: editing/structmodif.o \
249: editing/structselect.o \
250: editing/textcommands.o \
251: editing/unstructchange.o\
252: editing/viewcommands.o \
253: presentation/presrules.o \
254: tree/attributes.o \
255: view/boxlocate.o \
256: view/boxselection.o \
257: view/displaybox.o \
258: view/displayselect.o \
259: view/structlocate.o\
260: view/unstructlocate.o\
1.15 cvs 261: view/viewapi.o
1.1 cvs 262:
263: base/registry.o : @srcdir@/base/registry.c
264: $(CC) $(CFLAGS) $(INCLUDES) -DCOMPILED_IN_THOTDIR=\"@top_srcdir@\" \
1.17 cvs 265: -DCOMPILED_IN_THOTDIR2=\"@prefix@/thot\" \
1.8 cvs 266: -DMACHINE=\"$(MACHINE)\" -c @srcdir@/base/registry.c -o $@
1.1 cvs 267:
1.4 cvs 268: libThotKernel : directories libThotKernel.a
269:
270: libThotKernel.a : $(THOTK_OBJ) $(KERNEL_OBJ)
1.1 cvs 271: $(AR) libThotKernel.a $(THOTK_OBJ) $(KERNEL_OBJ)
272: $(RANLIB) libThotKernel.a
273: @$(ECHO) "====>" libThotKernel is done
274:
1.4 cvs 275: libThotEditor : directories libThotEditor.a
276:
277: libThotEditor.a : $(THOTK_OBJ) $(EDITOR_OBJ) $(DIALOGUE_OBJ)
1.1 cvs 278: $(AR) libThotEditor.a $(THOTK_OBJ) $(EDITOR_OBJ) $(DIALOGUE_OBJ)
279: $(RANLIB) libThotEditor.a
280: @$(ECHO) "====>" libThotEditor is done
281:
282: #
283: # Rules for producing the print binary
284: #
285:
286: PRINT_OBJ= \
287: dialogue/nodialog.o \
288: tree/paginatePP.o \
289: view/initpses.o \
290: view/psdisplay.o \
291: editing/print.o
292:
293: tree/paginatePP.o : @srcdir@/tree/paginate.c
294: $(CC) $(CFLAGS) $(INCLUDES) -DPAGINEETIMPRIME -c @srcdir@/tree/paginate.c -o $@
295:
1.14 cvs 296: print : ../bin ../bin/print
297:
298: ../bin :
299: @(mkdir ../bin)
1.1 cvs 300:
301: ../bin/print : $(PRINT_OBJ) libThotEditor.a ../tablelib/libThotTable.a ../libpng.a ../libz.a ../libjpeg.a
302: $(CC) $(LDFLAGS) -o $@ $(PRINT_OBJ) -lThotTable -lThotEditor $(LIBS)
303: @$(ECHO) "====>" print is done
304:
1.6 cvs 305: CEXTRACT= ../bin/cextract
306:
307: $(CEXTRACT) :
1.10 cvs 308: @(cd ../tools/cextract-$(CEXTRACT_VER) ; $(MAKE) )
1.6 cvs 309:
310: proto : ../bin/cextract
311: @(for i in @srcdir@/*/*.c ; \
312: do \
313: dir=`dirname $$i`;base=`basename $$i .c`; \
314: dir="$$dir/../internals" ; \
315: if [ ! -d $$dir/f ] ; then $(MKDIR) $$dir/f ;fi;\
316: $(CEXTRACT) $(CEXTRACT_FLAGS) -o /tmp/cextract.$$base.$$$$ $$i 2> /dev/null ; \
317: if [ -f $$dir/f/"$$base"_f.h ] ; \
318: then \
319: delta=`$(DIFF) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h` ; \
320: if [ "$$delta" != "" ] ; \
321: then \
322: echo " $$i proto changed" ; \
323: $(MV) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h ; \
324: else \
325: $(RM) /tmp/cextract.$$base.$$$$ ; \
326: fi ; \
327: else \
328: echo " $$i proto added" ; \
329: $(MV) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h ; \
330: fi ; \
331: done)
332:
Webmaster