Annotation of Amaya/thotlib/Makefile.in, revision 1.7

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

Webmaster