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