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