Annotation of Amaya/Makefile.in, revision 1.49

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: 
1.6       cvs        26: srcdir = $(THOTDIR)
1.1       cvs        27: 
                     28: @SET_MAKE@
                     29: 
1.49    ! cvs        30: default : tools thotlib tablelib batch amaya_prog thot_prog print_prog
1.31      cvs        31: 
                     32: thot : tools thotlib tablelib thot_prog
                     33: 
                     34: amaya : tools thotlib tablelib amaya_prog
1.1       cvs        35: 
1.49    ! cvs        36: print : tools thotlib tablelib print_prog
        !            37: 
1.4       cvs        38: Options:
                     39:        @CP@ Options.orig Options
                     40: 
1.1       cvs        41: force :
1.30      cvs        42: 
                     43: batch: rebuild force
                     44:        @(if test -d batch ; then cd batch ; \
                     45:          $(MAKE) CC="$(CC)" CFLAGS="-O" ; fi)
1.9       cvs        46: 
                     47: tools: rebuild force
                     48:        @(if test -d tools ; then cd tools ; \
1.23      cvs        49:          $(MAKE) CC="$(CC)" CFLAGS="-O" all ; fi)
1.9       cvs        50: 
                     51: thotlib: rebuild force
                     52:        @(if test -d thotlib ; then cd thotlib ; \
                     53:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
1.1       cvs        54: 
1.31      cvs        55: thot_prog: rebuild force
1.1       cvs        56:        @(if test -d thot ; then cd thot ; \
                     57:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" thot ; fi)
1.24      cvs        58: 
                     59: annotations: rebuild force
                     60:        @(if test -d misc/annotations ; then cd misc/annotations ; \
                     61:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" annotations ; fi)
                     62: 
1.1       cvs        63: 
1.23      cvs        64: html2piv: rebuild force
                     65:        @(if test -d amaya ; then cd amaya ; \
                     66:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" html2piv ; fi)
                     67: 
1.31      cvs        68: amaya_prog: rebuild force bin/str
1.1       cvs        69:        @(if test -d amaya ; then cd amaya ; \
                     70:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
1.49    ! cvs        71: 
        !            72: print_prog: rebuild force bin/str
        !            73:        @(if test -d thotlib ; then cd thotlib ; \
        !            74:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" print ; fi)
1.1       cvs        75: 
1.5       cvs        76: misc: rebuild force
                     77:        @(if test -d misc ; then cd misc ; \
                     78:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
                     79: 
1.1       cvs        80: all : rebuild
                     81:        @(for dir in $(SUBDIRS) ;\
                     82:          do if test -d $$dir ; then cd $$dir ; \
                     83:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; \
                     84:          cd .. ; fi ;done )
                     85: 
                     86: clean : rebuild
1.5       cvs        87:        @(for dir in $(SUBDIRS) $(EXTRA_SUBDIRS) ;\
1.1       cvs        88:          do if test -d $$dir ; then cd $$dir ; \
                     89:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" clean ; \
                     90:          cd .. ; fi ;done )
                     91: 
                     92: install : rebuild
                     93:        @(for dir in $(SUBDIRS) ;\
                     94:          do if test -d $$dir ; then cd $$dir ; \
                     95:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
                     96:          cd .. ; fi ;done )
1.8       cvs        97: 
                     98: uninstall : 
                     99:        @(for dir in $(SUBDIRS) ;\
                    100:          do if test -d $$dir ; then cd $$dir ; \
                    101:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" uninstall ; \
                    102:          cd .. ; fi ;done )
1.1       cvs       103: 
1.6       cvs       104: update :
                    105:        @(cd $(THOTDIR) ; cvs update)
                    106: 
                    107: commit :
                    108:        @(cd $(THOTDIR) ; cvs commit)
                    109: 
                    110: stubs:
1.21      cvs       111:        @(cd javalib ; $(MAKE) stubs)
1.6       cvs       112: 
                    113: classes: force
                    114:        @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
                    115:          if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
                    116:          else CLASSES=$(THOTDIR)/classes ; fi ; \
1.10      cvs       117:          CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:$$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
1.11      cvs       118:          cd $(THOTDIR)/classes ; $(MAKE) )
1.6       cvs       119: 
                    120: zips: force
1.21      cvs       121:        @(cd javalib ;  $(MAKE) zips);
1.20      cvs       122: 
                    123: #      @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
                    124: #        if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
                    125: #        else CLASSES=$(THOTDIR)/classes ; fi ; \
                    126: #        CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:\
                    127: # $$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
                    128: #        cd $(THOTDIR)/classes ; $(MAKE) zips)
1.6       cvs       129: 
1.3       cvs       130: tools/mkdep/mkdep :
1.23      cvs       131:        @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="-O" mkdep)
1.3       cvs       132: 
                    133: depend depends : rebuild tools/mkdep/mkdep
1.1       cvs       134:        @(for dir in $(SUBDIRS) ;\
                    135:          do if test -d $$dir ; then cd $$dir ; \
                    136:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" depend ; \
                    137:          cd .. ; fi ;done )
                    138: 
1.7       cvs       139: bin/cextract :
1.27      cvs       140:        @(cd tools/cextract-$(CEXTRACT_VER) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" cextract)
1.7       cvs       141: 
                    142: proto : rebuild bin/cextract
                    143:        @(for dir in $(SUBDIRS) ;\
                    144:          do if test -d $$dir ; then cd $$dir ; \
                    145:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" proto ; \
                    146:          cd .. ; fi ;done )
1.11      cvs       147: 
                    148: mkid : 
                    149:        @(echo rebuilding $(THOTDIR)/ID reference file)
1.26      cvs       150:        @(cd $(THOTDIR); mkid --lang-map=makes/id-lang.map . classes/org/w3c/*)
1.7       cvs       151: 
1.1       cvs       152: #
                    153: # Rule du rebuild the Thot schemas
                    154: #
                    155: 
                    156: bin/str : force
                    157:        @(cd batch ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" str prs tra printstr)
                    158: 
                    159: schemas : rebuild bin/str
1.6       cvs       160:        @(bindir=`pwd`/bin ; cd $(THOTDIR)/schemas ; \
1.1       cvs       161:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" THOTDIR=".." THOTSCH="../schemas:../schemasOPERA" \
                    162:          COMPSCH="."  COMPSTR="$$bindir/str" COMPPRS="$$bindir/prs" \
                    163:          COMPTRA="$$bindir/tra" PRINTSTR="$$bindir/printstr" all)
                    164: 
                    165: #
                    166: # Rules to rebuild the libWWW package
                    167: #
1.48      cvs       168: libwww \
                    169: libwwwapp.la \
                    170: libwwwhttp.la \
                    171: libwwwhtml.la \
                    172: libwwwmime.la \
                    173: libwwwcache.la \
                    174: libwwwstream.la \
                    175: libwwwfile.la \
                    176: libwwwdir.la \
                    177: libwwwtrans.la \
                    178: libwwwcore.la \
                    179: libwwwutils.la \
                    180: libwwwzip.la : force
1.42      cvs       181:        @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; \
1.1       cvs       182:          then \
1.42      cvs       183:              cd $(THOTDIR)/.. ; cvs update -d $(LIBWWW) ; \
1.1       cvs       184:          fi)
1.45      cvs       185:        @(if [ ! -d $(LIBWWW) ] ; then \
                    186:                        $(MKDIR) $(LIBWWW) ; \
                    187:           fi)
                    188:        @(localdir=`pwd` ; libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
                    189:                cd $(LIBWWW) ; unset LANG; \
1.42      cvs       190:          if [ ! -f Makefile ] ; then \
1.45      cvs       191:                ../$$libwwwdir/configure --disable-shared \
1.48      cvs       192:                        --without-expat -with-zlib="$$localdir/libz.a"; \
1.1       cvs       193:          fi)
1.45      cvs       194:        @(cd $(LIBWWW)/modules/md5 ; $(MAKE) CC="$(CC)" \
                    195:                CFLAGS="$(CFLAGS)")
1.44      cvs       196:        @(cd $(LIBWWW)/Library/src ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \
1.48      cvs       197:                -I$(THOTDIR)/libpng/zlib \
                    198:                libwwwapp.la \
                    199:                libwwwhttp.la \
                    200:                libwwwhtml.la \
                    201:                libwwwmime.la \
                    202:                libwwwcache.la \
                    203:                libwwwstream.la \
                    204:                libwwwfile.la \
                    205:                libwwwdir.la \
                    206:                libwwwtrans.la \
                    207:                libwwwcore.la \
                    208:                libwwwutils.la \
                    209:                libwwwzip.la)
                    210:        @($(CP) $(LIBWWW)/modules/md5/.libs/libmd5.a libmd5.a)
                    211:        @($(CP) $(LIBWWW)/Library/src/.libs/*.a .)
1.45      cvs       212:        @echo libwww reinstalled
1.1       cvs       213: 
                    214: #
                    215: # Rules to rebuild the libjpeg package
                    216: #
                    217: 
                    218: libjpeg libjpeg.a : force
1.6       cvs       219:        @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23      cvs       220:        @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       221: 
                    222: #
                    223: # Rules to rebuild the libpng package
                    224: #
                    225: 
                    226: libpng libpng.a : force
1.6       cvs       227:        @($(RM) $(THOTDIR)/libpng/*.o)
1.23      cvs       228:        @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       229: 
                    230: #
                    231: # Rules to rebuild the libpng package
                    232: #
                    233: 
                    234: libz libz.a : force
1.6       cvs       235:        @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.23      cvs       236:        @(cd libpng/libz ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       237: 
                    238: #
                    239: # Rules to rebuild the Kaffe package
                    240: #
                    241: 
                    242: kaffe_get :
1.6       cvs       243:        @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1       cvs       244:          then \
1.35      cvs       245:              if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33      cvs       246:              then \
                    247:                  cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
                    248:              else \
                    249:                  cd $(THOTDIR) ; cvs get $(KAFFE) ; \
                    250:              fi \
1.1       cvs       251:          fi)
1.6       cvs       252:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       253:          then \
1.6       cvs       254:              cd $(THOTDIR) ; cvs get classes ; \
1.1       cvs       255:          fi)
1.6       cvs       256:        @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1       cvs       257:          then \
1.6       cvs       258:              cd $(THOTDIR) ; cvs get javalib ; \
1.1       cvs       259:          fi)
                    260:        @(if [ ! -d $(KAFFE) ] ; \
                    261:          then \
                    262:              mkdir $(KAFFE) ; \
                    263:          fi)
                    264: 
                    265: kaffe_clean :
                    266:        @($(RM) -f libkaffe*)
                    267: 
                    268: kaffe_config :
1.6       cvs       269:        @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17      cvs       270:          unset LANG; unset CC; unset CFLAGS; \
                    271:          if [ -x $$kaffedir/configure ] ; then \
1.1       cvs       272:              $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       273:              --bindir=$$localdir/bin --with-staticlib \
                    274:              --with-threads=unix-internal \
1.12      cvs       275:              @KAFFE_ENGINE@ ; \
1.3       cvs       276:          else \
1.1       cvs       277:              ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       278:              --bindir=$$localdir/bin --with-staticlib \
                    279:              --with-threads=unix-internal \
1.12      cvs       280:              @KAFFE_ENGINE@ ; \
1.1       cvs       281:          fi)
                    282: 
                    283: kaffe_make :
1.17      cvs       284:        @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1       cvs       285: 
                    286: kaffe_install:
1.15      cvs       287:        @(cd $(KAFFE) ; $(MAKE) install)
1.6       cvs       288:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       289:          then \
1.6       cvs       290:              $(MKDIR) $(THOTDIR)/classes ; \
1.1       cvs       291:          fi)
1.6       cvs       292:        @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1       cvs       293:          then \
1.6       cvs       294:              $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1       cvs       295:          fi)
1.6       cvs       296:        @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1       cvs       297:        @$(ECHO) Cleaning temp $(KAFFE) files
1.32      cvs       298:        @($(RM) -r man )
1.1       cvs       299: 
1.22      cvs       300: #      @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
                    301: #      @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
                    302: 
1.1       cvs       303: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
                    304:        @(echo $(KAFFE) reinstalled)
                    305: 
                    306: #
                    307: # This section try to maintain the Makefile(s) up-to-date in
                    308: # case the autoconf sources are modified.
                    309: #
                    310: 
                    311: MAKEFILE_IN= \
                    312: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       313: $(THOTDIR)/Options.in \
                    314: $(THOTDIR)/configure.in \
                    315: $(THOTDIR)/Makefile.in \
                    316: $(THOTDIR)/libjpeg/Makefile.in \
                    317: $(THOTDIR)/batch/Makefile.in \
                    318: $(THOTDIR)/libjpeg/Makefile.in \
                    319: $(THOTDIR)/libpng/Makefile.in \
                    320: $(THOTDIR)/libpng/zlib/Makefile.in \
                    321: $(THOTDIR)/tablelib/Makefile.in \
                    322: $(THOTDIR)/thotlib/Makefile.in \
                    323: $(THOTDIR)/thotlib/include/Makefile.in \
                    324: $(THOTDIR)/tools/Makefile.in \
                    325: $(THOTDIR)/tools/mkdep/Makefile.in \
                    326: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       327: 
1.3       cvs       328: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       329: 
                    330: ${srcdir}/config.h.in: stamp-h.in
                    331: 
                    332: ${srcdir}/stamp-h.in: configure.in config.h.in
                    333:        cd ${srcdir} && autoheader
                    334:        echo timestamp > ${srcdir}/stamp-h.in
                    335: 
                    336: stamp.h: config.h.in config.status
                    337:        ./config.status
                    338: 
                    339: Makefile: $(MAKEFILE_IN) config.status
                    340:        ./config.status
                    341: 
                    342: config.status: configure
                    343:        ./config.status --recheck
                    344: 

Webmaster