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: 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.47 cheyroul 17: -lX11 $(X_EXTRA_LIBS) @LIBS@ $(EXTRA_LIBS) -lm $(GL_LIBRARIES) 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 : 1.45 kahan 40: $(CC) $(CFLAGS) $(THOT_OPTIONS) $(INCLUDES) -DNODISPLAY -c $< -o $@ 1.1 cvs 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 \ 1.42 cvs 97: unicode/ustring.o 1.1 cvs 98: 99: KERNEL_OBJ = \ 100: base/batchmessage.o \ 1.28 cvs 101: base/structlist.o \ 1.1 cvs 102: content/contentapiND.o \ 103: content/contentND.o \ 104: dialogue/nodisplay.o \ 105: document/documentapiND.o \ 1.28 cvs 106: document/pivot.o \ 1.1 cvs 107: document/readpivot.o \ 1.38 cvs 108: document/schemasND.o \ 1.1 cvs 109: document/writepivotND.o \ 110: editing/applicationapiND.o \ 111: presentation/presentationapiND.o \ 112: tree/attributeapiND.o \ 1.28 cvs 113: tree/references.o \ 1.1 cvs 114: tree/referenceapiND.o \ 1.28 cvs 115: tree/structschema.o \ 1.15 cvs 116: tree/treeapiND.o 1.1 cvs 117: 1.28 cvs 118: DISPLAY_OBJ = \ 119: content/content.o \ 120: content/dictionary.o \ 1.55 cheyroul 121: view/glgradient.o \ 1.49 cheyroul 122: view/glwindowdisplay.o \ 1.50 cheyroul 123: view/gldisplay.o \ 1.54 cheyroul 124: view/animbox.o \ 1.48 cheyroul 125: dialogue/openglfont.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.28 cvs 179: view/hyphen.o 1.1 cvs 180: 1.28 cvs 181: EDITOR_OBJ = \ 182: base/alloca.o \ 183: base/config.o \ 184: base/thotmsg.o \ 185: base/structlist.o \ 186: content/contentapi.o \ 187: content/search.o \ 188: content/searchref.o \ 189: content/word.o \ 190: dialogue/callback.o\ 191: dialogue/callbackinit.o \ 1.1 cvs 192: dialogue/LiteClue.o \ 193: dialogue/appdialogue.o \ 194: dialogue/appli.o \ 195: dialogue/attrmenu.o \ 196: dialogue/browser.o \ 197: dialogue/closedoc.o \ 198: dialogue/colors.o \ 199: dialogue/context.o \ 200: dialogue/creationmenu.o \ 201: dialogue/dialogapi.o \ 1.28 cvs 202: dialogue/geom.o \ 1.1 cvs 203: dialogue/input.o \ 204: dialogue/interface.o \ 205: dialogue/keyboards.o \ 206: dialogue/modiftype.o \ 1.27 cvs 207: dialogue/profiles.o \ 1.1 cvs 208: dialogue/presentmenu.o \ 209: dialogue/printmenu.o \ 210: dialogue/quit.o \ 211: dialogue/searchmenu.o \ 212: dialogue/selectmenu.o \ 1.28 cvs 213: document/pivot.o \ 214: document/docs.o \ 1.1 cvs 215: document/views.o \ 1.15 cvs 216: document/writedoc.o \ 1.1 cvs 217: document/writepivot.o \ 218: editing/checkermenu.o \ 219: editing/editcommands.o \ 1.28 cvs 220: editing/scroll.o \ 221: editing/spellchecker.o \ 1.1 cvs 222: editing/selectionapi.o \ 223: editing/structcommands.o \ 224: editing/structcreation.o \ 225: editing/structmodif.o \ 226: editing/structselect.o \ 227: editing/textcommands.o \ 1.28 cvs 228: editing/undo.o \ 229: editing/undoapi.o \ 1.1 cvs 230: editing/unstructchange.o\ 1.28 cvs 231: image/pictureapi.o \ 232: presentation/presentationapi.o \ 233: tree/attributeapi.o \ 234: tree/paginate.o \ 235: tree/referenceapi.o \ 236: tree/res.o \ 237: tree/resmatch.o \ 238: tree/resgen.o \ 239: tree/treeapi.o \ 1.1 cvs 240: view/boxlocate.o \ 1.28 cvs 241: view/boxparams.o \ 1.1 cvs 242: view/boxselection.o \ 243: view/displayselect.o \ 1.28 cvs 244: view/inites.o \ 1.1 cvs 245: view/unstructlocate.o\ 1.28 cvs 246: view/viewapi.o \ 1.31 cvs 247: view/xwindowdisplay.o 1.1 cvs 248: 249: base/registry.o : @srcdir@/base/registry.c 1.45 kahan 250: $(CC) $(CFLAGS) $(THOT_OPTIONS) $(INCLUDES) \ 251: -DCOMPILED_IN_THOTDIR=\"@top_srcdir@\" \ 1.17 cvs 252: -DCOMPILED_IN_THOTDIR2=\"@prefix@/thot\" \ 1.46 kahan 253: -DNODISPLAY \ 1.8 cvs 254: -DMACHINE=\"$(MACHINE)\" -c @srcdir@/base/registry.c -o $@ 1.1 cvs 255: 1.4 cvs 256: libThotKernel : directories libThotKernel.a 257: 258: libThotKernel.a : $(THOTK_OBJ) $(KERNEL_OBJ) 1.1 cvs 259: $(AR) libThotKernel.a $(THOTK_OBJ) $(KERNEL_OBJ) 260: $(RANLIB) libThotKernel.a 261: @$(ECHO) "====>" libThotKernel is done 262: 1.4 cvs 263: libThotEditor : directories libThotEditor.a 264: 1.28 cvs 265: libThotEditor.a : $(THOTK_OBJ) $(DISPLAY_OBJ) $(EDITOR_OBJ) 266: $(AR) libThotEditor.a $(THOTK_OBJ) $(DISPLAY_OBJ) $(EDITOR_OBJ) 1.1 cvs 267: $(RANLIB) libThotEditor.a 268: @$(ECHO) "====>" libThotEditor is done 269: 270: # 271: # Rules for producing the print binary 272: # 273: 274: PRINT_OBJ= \ 275: dialogue/nodialog.o \ 276: tree/paginatePP.o \ 277: view/initpses.o \ 278: view/psdisplay.o \ 279: editing/print.o 280: 1.22 cvs 281: tree/paginatePP.o : @srcdir@/tree/paginate.c @srcdir@/include/thot_sys.h 1.34 cvs 282: $(CC) $(CFLAGS) $(THOT_OPTIONS) $(INCLUDES) -DPAGINEETIMPRIME -c @srcdir@/tree/paginate.c -o $@ 1.1 cvs 283: 1.14 cvs 284: print : ../bin ../bin/print 285: 286: ../bin : 287: @(mkdir ../bin) 1.1 cvs 288: 1.28 cvs 289: ../bin/print : $(THOTK_OBJ) $(DISPLAY_OBJ) $(PRINT_OBJ) ../tablelib/libThotTable.a \ 1.35 cvs 290: ../amaya/libCSS.a 1.28 cvs 291: $(CC) $(LDFLAGS) -o $@ $(THOTK_OBJ) $(DISPLAY_OBJ) $(PRINT_OBJ) ../amaya/libCSS.a -lThotTable $(LIBS) 1.1 cvs 292: @$(ECHO) "====>" print is done 293: 1.6 cvs 294: CEXTRACT= ../bin/cextract 295: 296: $(CEXTRACT) : 1.10 cvs 297: @(cd ../tools/cextract-$(CEXTRACT_VER) ; $(MAKE) ) 1.6 cvs 298: 299: proto : ../bin/cextract 300: @(for i in @srcdir@/*/*.c ; \ 301: do \ 302: dir=`dirname $$i`;base=`basename $$i .c`; \ 303: dir="$$dir/../internals" ; \ 304: if [ ! -d $$dir/f ] ; then $(MKDIR) $$dir/f ;fi;\ 305: $(CEXTRACT) $(CEXTRACT_FLAGS) -o /tmp/cextract.$$base.$$$$ $$i 2> /dev/null ; \ 306: if [ -f $$dir/f/"$$base"_f.h ] ; \ 307: then \ 308: delta=`$(DIFF) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h` ; \ 309: if [ "$$delta" != "" ] ; \ 310: then \ 311: echo " $$i proto changed" ; \ 312: $(MV) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h ; \ 313: else \ 314: $(RM) /tmp/cextract.$$base.$$$$ ; \ 315: fi ; \ 316: else \ 317: echo " $$i proto added" ; \ 318: $(MV) /tmp/cextract.$$base.$$$$ $$dir/f/"$$base"_f.h ; \ 319: fi ; \ 320: done) 321: