Annotation of Amaya/Makefile.in, revision 1.71

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

Webmaster