Annotation of Amaya/Makefile.in, revision 1.33

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.33    ! cvs       214:              if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] \
        !           215:              then \
        !           216:                  cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
        !           217:              else \
        !           218:                  cd $(THOTDIR) ; cvs get $(KAFFE) ; \
        !           219:              fi \
1.1       cvs       220:          fi)
1.6       cvs       221:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       222:          then \
1.6       cvs       223:              cd $(THOTDIR) ; cvs get classes ; \
1.1       cvs       224:          fi)
1.6       cvs       225:        @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1       cvs       226:          then \
1.6       cvs       227:              cd $(THOTDIR) ; cvs get javalib ; \
1.1       cvs       228:          fi)
                    229:        @(if [ ! -d $(KAFFE) ] ; \
                    230:          then \
                    231:              mkdir $(KAFFE) ; \
                    232:          fi)
                    233: 
                    234: kaffe_clean :
                    235:        @($(RM) -f libkaffe*)
                    236: 
                    237: kaffe_config :
1.6       cvs       238:        @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17      cvs       239:          unset LANG; unset CC; unset CFLAGS; \
                    240:          if [ -x $$kaffedir/configure ] ; then \
1.1       cvs       241:              $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       242:              --bindir=$$localdir/bin --with-staticlib \
                    243:              --with-threads=unix-internal \
1.12      cvs       244:              @KAFFE_ENGINE@ ; \
1.3       cvs       245:          else \
1.1       cvs       246:              ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       247:              --bindir=$$localdir/bin --with-staticlib \
                    248:              --with-threads=unix-internal \
1.12      cvs       249:              @KAFFE_ENGINE@ ; \
1.1       cvs       250:          fi)
                    251: 
                    252: kaffe_make :
1.17      cvs       253:        @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1       cvs       254: 
                    255: kaffe_install:
1.15      cvs       256:        @(cd $(KAFFE) ; $(MAKE) install)
1.6       cvs       257:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       258:          then \
1.6       cvs       259:              $(MKDIR) $(THOTDIR)/classes ; \
1.1       cvs       260:          fi)
1.6       cvs       261:        @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1       cvs       262:          then \
1.6       cvs       263:              $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1       cvs       264:          fi)
1.6       cvs       265:        @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1       cvs       266:        @$(ECHO) Cleaning temp $(KAFFE) files
1.32      cvs       267:        @($(RM) -r man )
1.1       cvs       268: 
1.22      cvs       269: #      @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
                    270: #      @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
                    271: 
1.1       cvs       272: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
                    273:        @(echo $(KAFFE) reinstalled)
                    274: 
                    275: #
                    276: # This section try to maintain the Makefile(s) up-to-date in
                    277: # case the autoconf sources are modified.
                    278: #
                    279: 
                    280: MAKEFILE_IN= \
                    281: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       282: $(THOTDIR)/Options.in \
                    283: $(THOTDIR)/configure.in \
                    284: $(THOTDIR)/Makefile.in \
                    285: $(THOTDIR)/libjpeg/Makefile.in \
                    286: $(THOTDIR)/batch/Makefile.in \
                    287: $(THOTDIR)/libjpeg/Makefile.in \
                    288: $(THOTDIR)/libpng/Makefile.in \
                    289: $(THOTDIR)/libpng/zlib/Makefile.in \
                    290: $(THOTDIR)/tablelib/Makefile.in \
                    291: $(THOTDIR)/thotlib/Makefile.in \
                    292: $(THOTDIR)/thotlib/include/Makefile.in \
                    293: $(THOTDIR)/tools/Makefile.in \
                    294: $(THOTDIR)/tools/mkdep/Makefile.in \
                    295: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       296: 
1.3       cvs       297: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       298: 
                    299: ${srcdir}/config.h.in: stamp-h.in
                    300: 
                    301: ${srcdir}/stamp-h.in: configure.in config.h.in
                    302:        cd ${srcdir} && autoheader
                    303:        echo timestamp > ${srcdir}/stamp-h.in
                    304: 
                    305: stamp.h: config.h.in config.status
                    306:        ./config.status
                    307: 
                    308: Makefile: $(MAKEFILE_IN) config.status
                    309:        ./config.status
                    310: 
                    311: config.status: configure
                    312:        ./config.status --recheck
                    313: 

Webmaster