Annotation of Amaya/Makefile.in, revision 1.60

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.57      kahan     182:        libwwwxml \
1.51      cvs       183:        libwwwzip
                    184: 
                    185: libwww_config : force
                    186:        @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
                    187:              $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1       cvs       188:          fi)
1.45      cvs       189:        @(if [ ! -d $(LIBWWW) ] ; then \
1.51      cvs       190:                $(MKDIR) $(LIBWWW) ; \
1.45      cvs       191:           fi)
1.58      kahan     192:        @(localdir=`pwd` ; libwwwdir="$$localdir/../../$(LIBWWW)" ; \
1.56      kahan     193:          cd $(LIBWWW) ; unset LANG; \
1.51      cvs       194:          if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.58      kahan     195:                $$libwwwdir/configure \
1.56      kahan     196:                        --disable-shared \
                    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.60    ! kahan     206:                 $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
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: 
1.57      kahan     218: libwww_make_module_expat \
                    219: libexpat : force
                    220:                @(localdir=`pwd`; \
                    221:                  cd $(LIBWWW)/modules/expat/ ; \
1.60    ! kahan     222:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.57      kahan     223:                  CPPFLAGS="$(CPPFLAGS)" \
                    224:                            )
                    225: 
                    226: libwww_install_module_expat : force
                    227:                @(if [ -e libxmlparse.a -a ! -L libxmlparse.a ] ; then \
                    228:                        $(RM) libxmlparse.a ; \
                    229:                  fi ; \
                    230:                  if [ ! -L libxmlparse.a ] ; then \
                    231:                        $(LN_S) $(LIBWWW)/modules/expat/xmlparse/.libs/libxmlparse.a ./libxmlparse.a ; \
                    232:                  fi)
                    233:                @(if [ -e libxmltok.a -a ! -L libxmltok.a ] ; then \
                    234:                        $(RM) libxmltok.a ; \
                    235:                  fi ; \
                    236:                  if [ ! -L libxmltok.a ] ; then \
                    237:                        $(LN_S) $(LIBWWW)/modules/expat/xmltok/.libs/libxmltok.a ./libxmltok.a ; \
                    238:                  fi)
                    239: 
                    240: 
1.51      cvs       241: libwww_make_standard_libs \
                    242: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56      kahan     243:                @(localdir=`pwd`; \
                    244:                  zlibsrcdir="$$localdir/../libpng/zlib"; \
                    245:                  all_libs="" ; \
1.51      cvs       246:                  for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    247:                      all_libs="$$all_libs $$lib.la" ; \
                    248:                   done ; \
                    249:                  cd $(LIBWWW)/Library/src ; \
1.60    ! kahan     250:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.56      kahan     251:                  CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
                    252:                             $$all_libs)
1.51      cvs       253: 
                    254: libwww_install_standard : force
                    255:                @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    256:                    if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
                    257:                        $(RM) $$lib.a ;  \
                    258:                    fi ; \
                    259:                    if [ ! -L $$lib.a ] ; then \
                    260:                        $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
                    261:                    fi ; \
                    262:                done)
                    263: 
1.57      kahan     264: libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat
1.51      cvs       265: libwww_make : libwww_make_module_libs libwww_make_standard_libs
1.57      kahan     266: libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat
1.51      cvs       267: libwww_install : libwww_install_modules libwww_install_standard 
                    268: 
                    269: libwww : libwww_config libwww_make
                    270:                @($(ECHO) "libwww is installed")
1.1       cvs       271: 
                    272: #
                    273: # Rules to rebuild the libjpeg package
                    274: #
                    275: 
                    276: libjpeg libjpeg.a : force
1.6       cvs       277:        @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23      cvs       278:        @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       279: 
                    280: #
                    281: # Rules to rebuild the libpng package
                    282: #
                    283: 
                    284: libpng libpng.a : force
1.6       cvs       285:        @($(RM) $(THOTDIR)/libpng/*.o)
1.23      cvs       286:        @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       287: 
                    288: #
                    289: # Rules to rebuild the libpng package
                    290: #
                    291: 
                    292: libz libz.a : force
1.6       cvs       293:        @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53      cvs       294:        @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       295: 
                    296: #
                    297: # Rules to rebuild the Kaffe package
                    298: #
                    299: 
                    300: kaffe_get :
1.6       cvs       301:        @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1       cvs       302:          then \
1.35      cvs       303:              if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33      cvs       304:              then \
                    305:                  cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
                    306:              else \
                    307:                  cd $(THOTDIR) ; cvs get $(KAFFE) ; \
                    308:              fi \
1.1       cvs       309:          fi)
1.6       cvs       310:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       311:          then \
1.6       cvs       312:              cd $(THOTDIR) ; cvs get classes ; \
1.1       cvs       313:          fi)
1.6       cvs       314:        @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1       cvs       315:          then \
1.6       cvs       316:              cd $(THOTDIR) ; cvs get javalib ; \
1.1       cvs       317:          fi)
                    318:        @(if [ ! -d $(KAFFE) ] ; \
                    319:          then \
                    320:              mkdir $(KAFFE) ; \
                    321:          fi)
                    322: 
                    323: kaffe_clean :
                    324:        @($(RM) -f libkaffe*)
                    325: 
                    326: kaffe_config :
1.6       cvs       327:        @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17      cvs       328:          unset LANG; unset CC; unset CFLAGS; \
                    329:          if [ -x $$kaffedir/configure ] ; then \
1.1       cvs       330:              $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       331:              --bindir=$$localdir/bin --with-staticlib \
                    332:              --with-threads=unix-internal \
1.12      cvs       333:              @KAFFE_ENGINE@ ; \
1.3       cvs       334:          else \
1.1       cvs       335:              ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       336:              --bindir=$$localdir/bin --with-staticlib \
                    337:              --with-threads=unix-internal \
1.12      cvs       338:              @KAFFE_ENGINE@ ; \
1.1       cvs       339:          fi)
                    340: 
                    341: kaffe_make :
1.17      cvs       342:        @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1       cvs       343: 
                    344: kaffe_install:
1.15      cvs       345:        @(cd $(KAFFE) ; $(MAKE) install)
1.6       cvs       346:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       347:          then \
1.6       cvs       348:              $(MKDIR) $(THOTDIR)/classes ; \
1.1       cvs       349:          fi)
1.6       cvs       350:        @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1       cvs       351:          then \
1.6       cvs       352:              $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1       cvs       353:          fi)
1.6       cvs       354:        @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1       cvs       355:        @$(ECHO) Cleaning temp $(KAFFE) files
1.32      cvs       356:        @($(RM) -r man )
1.1       cvs       357: 
1.22      cvs       358: #      @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
                    359: #      @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
                    360: 
1.1       cvs       361: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
                    362:        @(echo $(KAFFE) reinstalled)
                    363: 
                    364: #
                    365: # This section try to maintain the Makefile(s) up-to-date in
                    366: # case the autoconf sources are modified.
                    367: #
                    368: 
                    369: MAKEFILE_IN= \
                    370: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       371: $(THOTDIR)/Options.in \
                    372: $(THOTDIR)/configure.in \
                    373: $(THOTDIR)/Makefile.in \
                    374: $(THOTDIR)/libjpeg/Makefile.in \
                    375: $(THOTDIR)/batch/Makefile.in \
                    376: $(THOTDIR)/libjpeg/Makefile.in \
                    377: $(THOTDIR)/libpng/Makefile.in \
                    378: $(THOTDIR)/libpng/zlib/Makefile.in \
                    379: $(THOTDIR)/tablelib/Makefile.in \
                    380: $(THOTDIR)/thotlib/Makefile.in \
                    381: $(THOTDIR)/thotlib/include/Makefile.in \
                    382: $(THOTDIR)/tools/Makefile.in \
                    383: $(THOTDIR)/tools/mkdep/Makefile.in \
                    384: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       385: 
1.3       cvs       386: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       387: 
                    388: ${srcdir}/config.h.in: stamp-h.in
                    389: 
                    390: ${srcdir}/stamp-h.in: configure.in config.h.in
                    391:        cd ${srcdir} && autoheader
                    392:        echo timestamp > ${srcdir}/stamp-h.in
                    393: 
                    394: stamp.h: config.h.in config.status
                    395:        ./config.status
                    396: 
                    397: Makefile: $(MAKEFILE_IN) config.status
                    398:        ./config.status
                    399: 
                    400: config.status: configure
                    401:        ./config.status --recheck
                    402: 

Webmaster