Annotation of Amaya/Makefile.in, revision 1.65

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

Webmaster