Annotation of Amaya/Makefile.in, revision 1.56

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.50      cvs        19: EXTRA_SUBDIRS= misc classes javalib pluginlib annotlib
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 ; \
1.55      cvs        45:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" ; 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.51      cvs       168: 
                    169: AMAYA_LIBWWW_STANDARD_LIBS = \
                    170:        libwwwapp \
                    171:        libwwwhttp \
                    172:        libwwwhtml \
                    173:        libwwwmime \
                    174:        libwwwcache \
                    175:        libwwwstream \
                    176:        libwwwfile \
                    177:        libwwwdir \
                    178:        libwwwtrans \
                    179:        libwwwcore \
                    180:        libwwwutils \
1.56    ! kahan     181:        libwwwftp \
1.51      cvs       182:        libwwwzip
                    183: 
                    184: libwww_config : force
                    185:        @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
                    186:              $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1       cvs       187:          fi)
1.45      cvs       188:        @(if [ ! -d $(LIBWWW) ] ; then \
1.51      cvs       189:                $(MKDIR) $(LIBWWW) ; \
1.45      cvs       190:           fi)
                    191:        @(localdir=`pwd` ; libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
1.56    ! kahan     192:          cd $(LIBWWW) ; unset LANG; \
1.51      cvs       193:          if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.56    ! kahan     194:                ../$$libwwwdir/configure \
        !           195:                        --disable-shared \
        !           196:                        --without-expat \
        !           197:                        --with-zlib="$$localdir/libz.a"; \
1.51      cvs       198:                $(ECHO) "libwww is configured" ; \
1.1       cvs       199:          fi)
1.51      cvs       200: 
                    201: libwww_make_module_md5 \
                    202: libmd5 : force
1.56    ! kahan     203:                @(localdir=`pwd`; \
        !           204:                 zlibsrcdir="$$localdir/../libpng/zlib"; \
        !           205:                 cd $(LIBWWW)/modules/md5 ; \
1.51      cvs       206:                 $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \
1.56    ! kahan     207:                 CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
        !           208:                            libmd5.la)
1.51      cvs       209: 
                    210: libwww_install_module_md5 : force
                    211:                @(if [ -e libmd5.a -a ! -L libmd5.a ] ; then \
                    212:                        $(RM) libmd5.a ; \
                    213:                  fi ; \
                    214:                  if [ ! -L libmd5.a ] ; then \
                    215:                        $(LN_S) $(LIBWWW)/modules/md5/.libs/libmd5.a ./libmd5.a ; \
                    216:                  fi)
                    217: 
                    218: libwww_make_standard_libs \
                    219: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56    ! kahan     220:                @(localdir=`pwd`; \
        !           221:                  zlibsrcdir="$$localdir/../libpng/zlib"; \
        !           222:                  all_libs="" ; \
1.51      cvs       223:                  for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    224:                      all_libs="$$all_libs $$lib.la" ; \
                    225:                   done ; \
                    226:                  cd $(LIBWWW)/Library/src ; \
                    227:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \
1.56    ! kahan     228:                  CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
        !           229:                             $$all_libs)
1.51      cvs       230: 
                    231: libwww_install_standard : force
                    232:                @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    233:                    if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
                    234:                        $(RM) $$lib.a ;  \
                    235:                    fi ; \
                    236:                    if [ ! -L $$lib.a ] ; then \
                    237:                        $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
                    238:                    fi ; \
                    239:                done)
                    240: 
                    241: libwww_make_module_libs : libwww_make_module_md5
                    242: libwww_make : libwww_make_module_libs libwww_make_standard_libs
                    243: libwww_install_modules : libwww_install_module_md5
                    244: libwww_install : libwww_install_modules libwww_install_standard 
                    245: 
                    246: libwww : libwww_config libwww_make
                    247:                @($(ECHO) "libwww is installed")
1.1       cvs       248: 
                    249: #
                    250: # Rules to rebuild the libjpeg package
                    251: #
                    252: 
                    253: libjpeg libjpeg.a : force
1.6       cvs       254:        @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23      cvs       255:        @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       256: 
                    257: #
                    258: # Rules to rebuild the libpng package
                    259: #
                    260: 
                    261: libpng libpng.a : force
1.6       cvs       262:        @($(RM) $(THOTDIR)/libpng/*.o)
1.23      cvs       263:        @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       264: 
                    265: #
                    266: # Rules to rebuild the libpng package
                    267: #
                    268: 
                    269: libz libz.a : force
1.6       cvs       270:        @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53      cvs       271:        @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       272: 
                    273: #
                    274: # Rules to rebuild the Kaffe package
                    275: #
                    276: 
                    277: kaffe_get :
1.6       cvs       278:        @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1       cvs       279:          then \
1.35      cvs       280:              if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33      cvs       281:              then \
                    282:                  cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
                    283:              else \
                    284:                  cd $(THOTDIR) ; cvs get $(KAFFE) ; \
                    285:              fi \
1.1       cvs       286:          fi)
1.6       cvs       287:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       288:          then \
1.6       cvs       289:              cd $(THOTDIR) ; cvs get classes ; \
1.1       cvs       290:          fi)
1.6       cvs       291:        @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1       cvs       292:          then \
1.6       cvs       293:              cd $(THOTDIR) ; cvs get javalib ; \
1.1       cvs       294:          fi)
                    295:        @(if [ ! -d $(KAFFE) ] ; \
                    296:          then \
                    297:              mkdir $(KAFFE) ; \
                    298:          fi)
                    299: 
                    300: kaffe_clean :
                    301:        @($(RM) -f libkaffe*)
                    302: 
                    303: kaffe_config :
1.6       cvs       304:        @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17      cvs       305:          unset LANG; unset CC; unset CFLAGS; \
                    306:          if [ -x $$kaffedir/configure ] ; then \
1.1       cvs       307:              $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       308:              --bindir=$$localdir/bin --with-staticlib \
                    309:              --with-threads=unix-internal \
1.12      cvs       310:              @KAFFE_ENGINE@ ; \
1.3       cvs       311:          else \
1.1       cvs       312:              ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       313:              --bindir=$$localdir/bin --with-staticlib \
                    314:              --with-threads=unix-internal \
1.12      cvs       315:              @KAFFE_ENGINE@ ; \
1.1       cvs       316:          fi)
                    317: 
                    318: kaffe_make :
1.17      cvs       319:        @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1       cvs       320: 
                    321: kaffe_install:
1.15      cvs       322:        @(cd $(KAFFE) ; $(MAKE) install)
1.6       cvs       323:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       324:          then \
1.6       cvs       325:              $(MKDIR) $(THOTDIR)/classes ; \
1.1       cvs       326:          fi)
1.6       cvs       327:        @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1       cvs       328:          then \
1.6       cvs       329:              $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1       cvs       330:          fi)
1.6       cvs       331:        @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1       cvs       332:        @$(ECHO) Cleaning temp $(KAFFE) files
1.32      cvs       333:        @($(RM) -r man )
1.1       cvs       334: 
1.22      cvs       335: #      @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
                    336: #      @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
                    337: 
1.1       cvs       338: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
                    339:        @(echo $(KAFFE) reinstalled)
                    340: 
                    341: #
                    342: # This section try to maintain the Makefile(s) up-to-date in
                    343: # case the autoconf sources are modified.
                    344: #
                    345: 
                    346: MAKEFILE_IN= \
                    347: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       348: $(THOTDIR)/Options.in \
                    349: $(THOTDIR)/configure.in \
                    350: $(THOTDIR)/Makefile.in \
                    351: $(THOTDIR)/libjpeg/Makefile.in \
                    352: $(THOTDIR)/batch/Makefile.in \
                    353: $(THOTDIR)/libjpeg/Makefile.in \
                    354: $(THOTDIR)/libpng/Makefile.in \
                    355: $(THOTDIR)/libpng/zlib/Makefile.in \
                    356: $(THOTDIR)/tablelib/Makefile.in \
                    357: $(THOTDIR)/thotlib/Makefile.in \
                    358: $(THOTDIR)/thotlib/include/Makefile.in \
                    359: $(THOTDIR)/tools/Makefile.in \
                    360: $(THOTDIR)/tools/mkdep/Makefile.in \
                    361: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       362: 
1.3       cvs       363: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       364: 
                    365: ${srcdir}/config.h.in: stamp-h.in
                    366: 
                    367: ${srcdir}/stamp-h.in: configure.in config.h.in
                    368:        cd ${srcdir} && autoheader
                    369:        echo timestamp > ${srcdir}/stamp-h.in
                    370: 
                    371: stamp.h: config.h.in config.status
                    372:        ./config.status
                    373: 
                    374: Makefile: $(MAKEFILE_IN) config.status
                    375:        ./config.status
                    376: 
                    377: config.status: configure
                    378:        ./config.status --recheck
                    379: 

Webmaster