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