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