Annotation of Amaya/Makefile.in, revision 1.31

1.1       cvs         1: #
                      2: # Main Makefile for Thot/Amaya source tree
                      3: # Generated from Makefile.in
                      4: # Daniel Veillard, 1997
                      5: #
                      6: 
                      7: @VPATHOPT@= @srcdir@
                      8: THOTDIR = @top_srcdir@
                      9: 
1.4       cvs        10: include Options
1.1       cvs        11: 
1.29      cvs        12: LIBWWW = libwww
1.4       cvs        13: KAFFE  = kaffe-$(KAFFE_VER)
1.1       cvs        14: LIBJPEG        = libjpeg
                     15: LIBPNG = libpng
                     16: LIBZ   = libz
                     17: 
1.30      cvs        18: SUBDIRS        = tools thotlib tablelib batch drawlib indexlib amaya thot misc/annotations
1.15      cvs        19: EXTRA_SUBDIRS= misc classes javalib
1.1       cvs        20: 
1.8       cvs        21: prefix = @prefix@
                     22: exec_prefix = @exec_prefix@
                     23: libdir = @libdir@
                     24: bindir = @bindir@
                     25: datadir = @datadir@
                     26: 
1.6       cvs        27: srcdir = $(THOTDIR)
1.1       cvs        28: 
                     29: @SET_MAKE@
                     30: 
1.31    ! cvs        31: default : tools thotlib tablelib batch amaya_prog thot_prog
        !            32: 
        !            33: thot : tools thotlib tablelib thot_prog
        !            34: 
        !            35: amaya : tools thotlib tablelib amaya_prog
1.1       cvs        36: 
1.4       cvs        37: Options:
                     38:        @CP@ Options.orig Options
                     39: 
1.1       cvs        40: force :
1.30      cvs        41: 
                     42: batch: rebuild force
                     43:        @(if test -d batch ; then cd batch ; \
                     44:          $(MAKE) CC="$(CC)" CFLAGS="-O" ; fi)
1.9       cvs        45: 
                     46: tools: rebuild force
                     47:        @(if test -d tools ; then cd tools ; \
1.23      cvs        48:          $(MAKE) CC="$(CC)" CFLAGS="-O" all ; fi)
1.9       cvs        49: 
                     50: thotlib: rebuild force
                     51:        @(if test -d thotlib ; then cd thotlib ; \
                     52:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
1.1       cvs        53: 
1.31    ! cvs        54: thot_prog: rebuild force
1.1       cvs        55:        @(if test -d thot ; then cd thot ; \
                     56:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" thot ; fi)
1.24      cvs        57: 
                     58: annotations: rebuild force
                     59:        @(if test -d misc/annotations ; then cd misc/annotations ; \
                     60:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" annotations ; fi)
                     61: 
1.1       cvs        62: 
1.23      cvs        63: html2piv: rebuild force
                     64:        @(if test -d amaya ; then cd amaya ; \
                     65:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" html2piv ; fi)
                     66: 
1.31    ! cvs        67: amaya_prog: rebuild force bin/str
1.1       cvs        68:        @(if test -d amaya ; then cd amaya ; \
                     69:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
                     70: 
1.5       cvs        71: misc: rebuild force
                     72:        @(if test -d misc ; then cd misc ; \
                     73:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
                     74: 
1.1       cvs        75: all : rebuild
                     76:        @(for dir in $(SUBDIRS) ;\
                     77:          do if test -d $$dir ; then cd $$dir ; \
                     78:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; \
                     79:          cd .. ; fi ;done )
                     80: 
                     81: clean : rebuild
1.5       cvs        82:        @(for dir in $(SUBDIRS) $(EXTRA_SUBDIRS) ;\
1.1       cvs        83:          do if test -d $$dir ; then cd $$dir ; \
                     84:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" clean ; \
                     85:          cd .. ; fi ;done )
                     86: 
                     87: install : rebuild
                     88:        @(for dir in $(SUBDIRS) ;\
                     89:          do if test -d $$dir ; then cd $$dir ; \
                     90:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
                     91:          cd .. ; fi ;done )
1.8       cvs        92: 
                     93: uninstall : 
                     94:        @(for dir in $(SUBDIRS) ;\
                     95:          do if test -d $$dir ; then cd $$dir ; \
                     96:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" uninstall ; \
                     97:          cd .. ; fi ;done )
                     98:        $(RM) -rf $(datadir)/thot
1.1       cvs        99: 
1.6       cvs       100: update :
                    101:        @(cd $(THOTDIR) ; cvs update)
                    102: 
                    103: commit :
                    104:        @(cd $(THOTDIR) ; cvs commit)
                    105: 
                    106: stubs:
1.21      cvs       107:        @(cd javalib ; $(MAKE) stubs)
1.6       cvs       108: 
                    109: classes: force
                    110:        @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
                    111:          if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
                    112:          else CLASSES=$(THOTDIR)/classes ; fi ; \
1.10      cvs       113:          CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:$$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
1.11      cvs       114:          cd $(THOTDIR)/classes ; $(MAKE) )
1.6       cvs       115: 
                    116: zips: force
1.21      cvs       117:        @(cd javalib ;  $(MAKE) zips);
1.20      cvs       118: 
                    119: #      @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
                    120: #        if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
                    121: #        else CLASSES=$(THOTDIR)/classes ; fi ; \
                    122: #        CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:\
                    123: # $$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
                    124: #        cd $(THOTDIR)/classes ; $(MAKE) zips)
1.6       cvs       125: 
1.3       cvs       126: tools/mkdep/mkdep :
1.23      cvs       127:        @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="-O" mkdep)
1.3       cvs       128: 
                    129: depend depends : rebuild tools/mkdep/mkdep
1.1       cvs       130:        @(for dir in $(SUBDIRS) ;\
                    131:          do if test -d $$dir ; then cd $$dir ; \
                    132:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" depend ; \
                    133:          cd .. ; fi ;done )
                    134: 
1.7       cvs       135: bin/cextract :
1.27      cvs       136:        @(cd tools/cextract-$(CEXTRACT_VER) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" cextract)
1.7       cvs       137: 
                    138: proto : rebuild bin/cextract
                    139:        @(for dir in $(SUBDIRS) ;\
                    140:          do if test -d $$dir ; then cd $$dir ; \
                    141:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" proto ; \
                    142:          cd .. ; fi ;done )
1.11      cvs       143: 
                    144: mkid : 
                    145:        @(echo rebuilding $(THOTDIR)/ID reference file)
1.26      cvs       146:        @(cd $(THOTDIR); mkid --lang-map=makes/id-lang.map . classes/org/w3c/*)
1.7       cvs       147: 
1.1       cvs       148: #
                    149: # Rule du rebuild the Thot schemas
                    150: #
                    151: 
                    152: bin/str : force
                    153:        @(cd batch ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" str prs tra printstr)
                    154: 
                    155: schemas : rebuild bin/str
1.6       cvs       156:        @(bindir=`pwd`/bin ; cd $(THOTDIR)/schemas ; \
1.1       cvs       157:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" THOTDIR=".." THOTSCH="../schemas:../schemasOPERA" \
                    158:          COMPSCH="."  COMPSTR="$$bindir/str" COMPPRS="$$bindir/prs" \
                    159:          COMPTRA="$$bindir/tra" PRINTSTR="$$bindir/printstr" all)
                    160: 
                    161: #
                    162: # Rules to rebuild the libWWW package
                    163: #
                    164: 
                    165: libwww libwww.a :
1.6       cvs       166:        @(if [ ! -d $(THOTDIR)/$(LIBWWW) ] ; \
1.1       cvs       167:          then \
1.6       cvs       168:              cd $(THOTDIR) ; cvs update -d $(LIBWWW) ; \
1.1       cvs       169:          fi)
                    170:        @(if test ! -d $(LIBWWW) ; then $(MKDIR) $(LIBWWW) ;  fi)
1.6       cvs       171:        @(localdir=`pwd` ; libwwwdir="$(THOTDIR)/$(LIBWWW)" ; cd $(LIBWWW) ; \
1.1       cvs       172:          unset LANG; if [ -x $$libwwwdir/configure ] ; then \
1.28      cvs       173:              $$libwwwdir/configure --disable-shared; \
1.1       cvs       174:          else \
1.28      cvs       175:              ../$$libwwwdir/configure --disable-shared; \
1.1       cvs       176:          fi)
1.6       cvs       177:        -@(cd $(THOTDIR)/$(LIBWWW)/Library/src ; \
1.1       cvs       178:           touch *.html ; touch *.h ; touch *.c)
1.28      cvs       179:        @(cd $(LIBWWW)/Library/src ; $(MAKE) CC=$(CC) CFLAGS="-O")
                    180:        @($(CP) $(LIBWWW)/Library/src/.libs/libwww.a libwww.a)
1.1       cvs       181:        @echo libwww.a reinstalled
                    182: 
                    183: #
                    184: # Rules to rebuild the libjpeg package
                    185: #
                    186: 
                    187: libjpeg libjpeg.a : force
1.6       cvs       188:        @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23      cvs       189:        @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       190: 
                    191: #
                    192: # Rules to rebuild the libpng package
                    193: #
                    194: 
                    195: libpng libpng.a : force
1.6       cvs       196:        @($(RM) $(THOTDIR)/libpng/*.o)
1.23      cvs       197:        @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       198: 
                    199: #
                    200: # Rules to rebuild the libpng package
                    201: #
                    202: 
                    203: libz libz.a : force
1.6       cvs       204:        @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.23      cvs       205:        @(cd libpng/libz ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       206: 
                    207: #
                    208: # Rules to rebuild the Kaffe package
                    209: #
                    210: 
                    211: kaffe_get :
1.6       cvs       212:        @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1       cvs       213:          then \
1.6       cvs       214:              cd $(THOTDIR) ; cvs get $(KAFFE) ; \
1.1       cvs       215:          fi)
1.6       cvs       216:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       217:          then \
1.6       cvs       218:              cd $(THOTDIR) ; cvs get classes ; \
1.1       cvs       219:          fi)
1.6       cvs       220:        @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1       cvs       221:          then \
1.6       cvs       222:              cd $(THOTDIR) ; cvs get javalib ; \
1.1       cvs       223:          fi)
                    224:        @(if [ ! -d $(KAFFE) ] ; \
                    225:          then \
                    226:              mkdir $(KAFFE) ; \
                    227:          fi)
                    228: 
                    229: kaffe_clean :
                    230:        @($(RM) -f libkaffe*)
                    231: 
                    232: kaffe_config :
1.6       cvs       233:        @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17      cvs       234:          unset LANG; unset CC; unset CFLAGS; \
                    235:          if [ -x $$kaffedir/configure ] ; then \
1.1       cvs       236:              $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.12      cvs       237:              --bindir=$$localdir/bin --enable-staticlib --with-x \
                    238:              @KAFFE_ENGINE@ ; \
1.3       cvs       239:          else \
1.1       cvs       240:              ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.12      cvs       241:              --bindir=$$localdir/bin --enable-staticlib --with-x \
                    242:              @KAFFE_ENGINE@ ; \
1.1       cvs       243:          fi)
                    244: 
                    245: kaffe_make :
1.17      cvs       246:        @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1       cvs       247: 
                    248: kaffe_install:
1.15      cvs       249:        @(cd $(KAFFE) ; $(MAKE) install)
1.6       cvs       250:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       251:          then \
1.6       cvs       252:              $(MKDIR) $(THOTDIR)/classes ; \
1.1       cvs       253:          fi)
1.6       cvs       254:        @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1       cvs       255:          then \
1.6       cvs       256:              $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1       cvs       257:          fi)
1.6       cvs       258:        @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1       cvs       259:        @$(ECHO) Cleaning temp $(KAFFE) files
1.13      cvs       260:        @($(RM) -r share man )
1.1       cvs       261: 
1.22      cvs       262: #      @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
                    263: #      @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
                    264: 
1.1       cvs       265: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
                    266:        @(echo $(KAFFE) reinstalled)
                    267: 
                    268: #
                    269: # This section try to maintain the Makefile(s) up-to-date in
                    270: # case the autoconf sources are modified.
                    271: #
                    272: 
                    273: MAKEFILE_IN= \
                    274: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       275: $(THOTDIR)/Options.in \
                    276: $(THOTDIR)/configure.in \
                    277: $(THOTDIR)/Makefile.in \
                    278: $(THOTDIR)/libjpeg/Makefile.in \
                    279: $(THOTDIR)/batch/Makefile.in \
                    280: $(THOTDIR)/libjpeg/Makefile.in \
                    281: $(THOTDIR)/libpng/Makefile.in \
                    282: $(THOTDIR)/libpng/zlib/Makefile.in \
                    283: $(THOTDIR)/tablelib/Makefile.in \
                    284: $(THOTDIR)/thotlib/Makefile.in \
                    285: $(THOTDIR)/thotlib/include/Makefile.in \
                    286: $(THOTDIR)/tools/Makefile.in \
                    287: $(THOTDIR)/tools/mkdep/Makefile.in \
                    288: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       289: 
1.3       cvs       290: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       291: 
                    292: ${srcdir}/config.h.in: stamp-h.in
                    293: 
                    294: ${srcdir}/stamp-h.in: configure.in config.h.in
                    295:        cd ${srcdir} && autoheader
                    296:        echo timestamp > ${srcdir}/stamp-h.in
                    297: 
                    298: stamp.h: config.h.in config.status
                    299:        ./config.status
                    300: 
                    301: Makefile: $(MAKEFILE_IN) config.status
                    302:        ./config.status
                    303: 
                    304: config.status: configure
                    305:        ./config.status --recheck
                    306: 

Webmaster