Annotation of Amaya/Makefile.in, revision 1.62

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.61      kahan      18: SUBDIRS        = tools thotlib tablelib batch drawlib indexlib annotlib amaya thot
                     19: EXTRA_SUBDIRS= misc pluginlib
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.23      cvs        58: 
1.31      cvs        59: amaya_prog: rebuild force bin/str
1.1       cvs        60:        @(if test -d amaya ; then cd amaya ; \
                     61:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
1.49      cvs        62: 
                     63: print_prog: rebuild force bin/str
                     64:        @(if test -d thotlib ; then cd thotlib ; \
                     65:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" print ; fi)
1.1       cvs        66: 
1.5       cvs        67: misc: rebuild force
                     68:        @(if test -d misc ; then cd misc ; \
                     69:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
                     70: 
1.1       cvs        71: all : rebuild
                     72:        @(for dir in $(SUBDIRS) ;\
                     73:          do if test -d $$dir ; then cd $$dir ; \
                     74:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; \
                     75:          cd .. ; fi ;done )
                     76: 
                     77: clean : rebuild
1.5       cvs        78:        @(for dir in $(SUBDIRS) $(EXTRA_SUBDIRS) ;\
1.1       cvs        79:          do if test -d $$dir ; then cd $$dir ; \
                     80:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" clean ; \
                     81:          cd .. ; fi ;done )
                     82: 
                     83: install : rebuild
                     84:        @(for dir in $(SUBDIRS) ;\
                     85:          do if test -d $$dir ; then cd $$dir ; \
                     86:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
                     87:          cd .. ; fi ;done )
1.8       cvs        88: 
                     89: uninstall : 
                     90:        @(for dir in $(SUBDIRS) ;\
                     91:          do if test -d $$dir ; then cd $$dir ; \
                     92:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" uninstall ; \
                     93:          cd .. ; fi ;done )
1.1       cvs        94: 
1.6       cvs        95: update :
                     96:        @(cd $(THOTDIR) ; cvs update)
1.62    ! cvs        97:        @(if [ -d $(THOTDIR)/../$(LIBWWW) ] ; then \
        !            98:          cd $(THODIR)/../$(LIBWWW) ; cvs update ; fi)
1.6       cvs        99: 
                    100: commit :
                    101:        @(cd $(THOTDIR) ; cvs commit)
                    102: 
                    103: stubs:
1.21      cvs       104:        @(cd javalib ; $(MAKE) stubs)
1.6       cvs       105: 
                    106: classes: force
                    107:        @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
                    108:          if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
                    109:          else CLASSES=$(THOTDIR)/classes ; fi ; \
1.10      cvs       110:          CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:$$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
1.11      cvs       111:          cd $(THOTDIR)/classes ; $(MAKE) )
1.6       cvs       112: 
                    113: zips: force
1.21      cvs       114:        @(cd javalib ;  $(MAKE) zips);
1.20      cvs       115: 
                    116: #      @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
                    117: #        if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
                    118: #        else CLASSES=$(THOTDIR)/classes ; fi ; \
                    119: #        CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:\
                    120: # $$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
                    121: #        cd $(THOTDIR)/classes ; $(MAKE) zips)
1.6       cvs       122: 
1.3       cvs       123: tools/mkdep/mkdep :
1.23      cvs       124:        @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="-O" mkdep)
1.3       cvs       125: 
                    126: depend depends : rebuild tools/mkdep/mkdep
1.1       cvs       127:        @(for dir in $(SUBDIRS) ;\
                    128:          do if test -d $$dir ; then cd $$dir ; \
                    129:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" depend ; \
                    130:          cd .. ; fi ;done )
                    131: 
1.7       cvs       132: bin/cextract :
1.27      cvs       133:        @(cd tools/cextract-$(CEXTRACT_VER) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" cextract)
1.7       cvs       134: 
                    135: proto : rebuild bin/cextract
                    136:        @(for dir in $(SUBDIRS) ;\
                    137:          do if test -d $$dir ; then cd $$dir ; \
                    138:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" proto ; \
                    139:          cd .. ; fi ;done )
1.11      cvs       140: 
                    141: mkid : 
                    142:        @(echo rebuilding $(THOTDIR)/ID reference file)
1.26      cvs       143:        @(cd $(THOTDIR); mkid --lang-map=makes/id-lang.map . classes/org/w3c/*)
1.7       cvs       144: 
1.1       cvs       145: #
                    146: # Rule du rebuild the Thot schemas
                    147: #
                    148: 
                    149: bin/str : force
                    150:        @(cd batch ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" str prs tra printstr)
                    151: 
                    152: schemas : rebuild bin/str
1.6       cvs       153:        @(bindir=`pwd`/bin ; cd $(THOTDIR)/schemas ; \
1.1       cvs       154:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" THOTDIR=".." THOTSCH="../schemas:../schemasOPERA" \
                    155:          COMPSCH="."  COMPSTR="$$bindir/str" COMPPRS="$$bindir/prs" \
                    156:          COMPTRA="$$bindir/tra" PRINTSTR="$$bindir/printstr" all)
                    157: 
                    158: #
                    159: # Rules to rebuild the libWWW package
                    160: #
1.51      cvs       161: 
                    162: AMAYA_LIBWWW_STANDARD_LIBS = \
                    163:        libwwwapp \
                    164:        libwwwhttp \
                    165:        libwwwhtml \
                    166:        libwwwmime \
                    167:        libwwwcache \
                    168:        libwwwstream \
                    169:        libwwwfile \
                    170:        libwwwdir \
                    171:        libwwwtrans \
                    172:        libwwwcore \
                    173:        libwwwutils \
1.56      kahan     174:        libwwwftp \
1.57      kahan     175:        libwwwxml \
1.51      cvs       176:        libwwwzip
                    177: 
                    178: libwww_config : force
                    179:        @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
                    180:              $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1       cvs       181:          fi)
1.45      cvs       182:        @(if [ ! -d $(LIBWWW) ] ; then \
1.51      cvs       183:                $(MKDIR) $(LIBWWW) ; \
1.45      cvs       184:           fi)
1.58      kahan     185:        @(localdir=`pwd` ; libwwwdir="$$localdir/../../$(LIBWWW)" ; \
1.56      kahan     186:          cd $(LIBWWW) ; unset LANG; \
1.51      cvs       187:          if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.58      kahan     188:                $$libwwwdir/configure \
1.56      kahan     189:                        --disable-shared \
                    190:                        --with-zlib="$$localdir/libz.a"; \
1.51      cvs       191:                $(ECHO) "libwww is configured" ; \
1.1       cvs       192:          fi)
1.51      cvs       193: 
                    194: libwww_make_module_md5 \
                    195: libmd5 : force
1.56      kahan     196:                @(localdir=`pwd`; \
                    197:                 zlibsrcdir="$$localdir/../libpng/zlib"; \
                    198:                 cd $(LIBWWW)/modules/md5 ; \
1.60      kahan     199:                 $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.56      kahan     200:                 CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
                    201:                            libmd5.la)
1.51      cvs       202: 
                    203: libwww_install_module_md5 : force
                    204:                @(if [ -e libmd5.a -a ! -L libmd5.a ] ; then \
                    205:                        $(RM) libmd5.a ; \
                    206:                  fi ; \
                    207:                  if [ ! -L libmd5.a ] ; then \
                    208:                        $(LN_S) $(LIBWWW)/modules/md5/.libs/libmd5.a ./libmd5.a ; \
                    209:                  fi)
                    210: 
1.57      kahan     211: libwww_make_module_expat \
                    212: libexpat : force
                    213:                @(localdir=`pwd`; \
                    214:                  cd $(LIBWWW)/modules/expat/ ; \
1.60      kahan     215:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.57      kahan     216:                  CPPFLAGS="$(CPPFLAGS)" \
                    217:                            )
                    218: 
                    219: libwww_install_module_expat : force
                    220:                @(if [ -e libxmlparse.a -a ! -L libxmlparse.a ] ; then \
                    221:                        $(RM) libxmlparse.a ; \
                    222:                  fi ; \
                    223:                  if [ ! -L libxmlparse.a ] ; then \
                    224:                        $(LN_S) $(LIBWWW)/modules/expat/xmlparse/.libs/libxmlparse.a ./libxmlparse.a ; \
                    225:                  fi)
                    226:                @(if [ -e libxmltok.a -a ! -L libxmltok.a ] ; then \
                    227:                        $(RM) libxmltok.a ; \
                    228:                  fi ; \
                    229:                  if [ ! -L libxmltok.a ] ; then \
                    230:                        $(LN_S) $(LIBWWW)/modules/expat/xmltok/.libs/libxmltok.a ./libxmltok.a ; \
                    231:                  fi)
                    232: 
                    233: 
1.51      cvs       234: libwww_make_standard_libs \
                    235: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56      kahan     236:                @(localdir=`pwd`; \
                    237:                  zlibsrcdir="$$localdir/../libpng/zlib"; \
                    238:                  all_libs="" ; \
1.51      cvs       239:                  for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    240:                      all_libs="$$all_libs $$lib.la" ; \
                    241:                   done ; \
                    242:                  cd $(LIBWWW)/Library/src ; \
1.60      kahan     243:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.56      kahan     244:                  CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
                    245:                             $$all_libs)
1.51      cvs       246: 
                    247: libwww_install_standard : force
                    248:                @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    249:                    if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
                    250:                        $(RM) $$lib.a ;  \
                    251:                    fi ; \
                    252:                    if [ ! -L $$lib.a ] ; then \
                    253:                        $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
                    254:                    fi ; \
                    255:                done)
                    256: 
1.57      kahan     257: libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat
1.51      cvs       258: libwww_make : libwww_make_module_libs libwww_make_standard_libs
1.57      kahan     259: libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat
1.51      cvs       260: libwww_install : libwww_install_modules libwww_install_standard 
                    261: 
                    262: libwww : libwww_config libwww_make
                    263:                @($(ECHO) "libwww is installed")
1.1       cvs       264: 
                    265: #
                    266: # Rules to rebuild the libjpeg package
                    267: #
                    268: 
                    269: libjpeg libjpeg.a : force
1.6       cvs       270:        @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23      cvs       271:        @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       272: 
                    273: #
                    274: # Rules to rebuild the libpng package
                    275: #
                    276: 
                    277: libpng libpng.a : force
1.6       cvs       278:        @($(RM) $(THOTDIR)/libpng/*.o)
1.23      cvs       279:        @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       280: 
                    281: #
                    282: # Rules to rebuild the libpng package
                    283: #
                    284: 
                    285: libz libz.a : force
1.6       cvs       286:        @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53      cvs       287:        @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       288: 
                    289: #
                    290: # Rules to rebuild the Kaffe package
                    291: #
                    292: 
                    293: kaffe_get :
1.6       cvs       294:        @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1       cvs       295:          then \
1.35      cvs       296:              if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33      cvs       297:              then \
                    298:                  cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
                    299:              else \
                    300:                  cd $(THOTDIR) ; cvs get $(KAFFE) ; \
                    301:              fi \
1.1       cvs       302:          fi)
1.6       cvs       303:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       304:          then \
1.6       cvs       305:              cd $(THOTDIR) ; cvs get classes ; \
1.1       cvs       306:          fi)
1.6       cvs       307:        @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1       cvs       308:          then \
1.6       cvs       309:              cd $(THOTDIR) ; cvs get javalib ; \
1.1       cvs       310:          fi)
                    311:        @(if [ ! -d $(KAFFE) ] ; \
                    312:          then \
                    313:              mkdir $(KAFFE) ; \
                    314:          fi)
                    315: 
                    316: kaffe_clean :
                    317:        @($(RM) -f libkaffe*)
                    318: 
                    319: kaffe_config :
1.6       cvs       320:        @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17      cvs       321:          unset LANG; unset CC; unset CFLAGS; \
                    322:          if [ -x $$kaffedir/configure ] ; then \
1.1       cvs       323:              $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       324:              --bindir=$$localdir/bin --with-staticlib \
                    325:              --with-threads=unix-internal \
1.12      cvs       326:              @KAFFE_ENGINE@ ; \
1.3       cvs       327:          else \
1.1       cvs       328:              ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       329:              --bindir=$$localdir/bin --with-staticlib \
                    330:              --with-threads=unix-internal \
1.12      cvs       331:              @KAFFE_ENGINE@ ; \
1.1       cvs       332:          fi)
                    333: 
                    334: kaffe_make :
1.17      cvs       335:        @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1       cvs       336: 
                    337: kaffe_install:
1.15      cvs       338:        @(cd $(KAFFE) ; $(MAKE) install)
1.6       cvs       339:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       340:          then \
1.6       cvs       341:              $(MKDIR) $(THOTDIR)/classes ; \
1.1       cvs       342:          fi)
1.6       cvs       343:        @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1       cvs       344:          then \
1.6       cvs       345:              $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1       cvs       346:          fi)
1.6       cvs       347:        @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1       cvs       348:        @$(ECHO) Cleaning temp $(KAFFE) files
1.32      cvs       349:        @($(RM) -r man )
1.1       cvs       350: 
1.22      cvs       351: #      @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
                    352: #      @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
                    353: 
1.1       cvs       354: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
                    355:        @(echo $(KAFFE) reinstalled)
                    356: 
                    357: #
                    358: # This section try to maintain the Makefile(s) up-to-date in
                    359: # case the autoconf sources are modified.
                    360: #
                    361: 
                    362: MAKEFILE_IN= \
                    363: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       364: $(THOTDIR)/Options.in \
                    365: $(THOTDIR)/configure.in \
                    366: $(THOTDIR)/Makefile.in \
                    367: $(THOTDIR)/libjpeg/Makefile.in \
                    368: $(THOTDIR)/batch/Makefile.in \
                    369: $(THOTDIR)/libjpeg/Makefile.in \
                    370: $(THOTDIR)/libpng/Makefile.in \
                    371: $(THOTDIR)/libpng/zlib/Makefile.in \
                    372: $(THOTDIR)/tablelib/Makefile.in \
                    373: $(THOTDIR)/thotlib/Makefile.in \
                    374: $(THOTDIR)/thotlib/include/Makefile.in \
                    375: $(THOTDIR)/tools/Makefile.in \
                    376: $(THOTDIR)/tools/mkdep/Makefile.in \
                    377: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       378: 
1.3       cvs       379: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       380: 
                    381: ${srcdir}/config.h.in: stamp-h.in
                    382: 
                    383: ${srcdir}/stamp-h.in: configure.in config.h.in
                    384:        cd ${srcdir} && autoheader
                    385:        echo timestamp > ${srcdir}/stamp-h.in
                    386: 
                    387: stamp.h: config.h.in config.status
                    388:        ./config.status
                    389: 
                    390: Makefile: $(MAKEFILE_IN) config.status
                    391:        ./config.status
                    392: 
                    393: config.status: configure
                    394:        ./config.status --recheck
                    395: 

Webmaster