Annotation of Amaya/Makefile.in, revision 1.42

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.15      cvs        19: EXTRA_SUBDIRS= misc classes javalib
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.31      cvs        30: default : tools thotlib tablelib batch amaya_prog thot_prog
                     31: 
                     32: thot : tools thotlib tablelib thot_prog
                     33: 
                     34: amaya : tools thotlib tablelib amaya_prog
1.1       cvs        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 ; \
                     43:          $(MAKE) CC="$(CC)" CFLAGS="-O" ; 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.1       cvs        52: 
1.31      cvs        53: thot_prog: rebuild force
1.1       cvs        54:        @(if test -d thot ; then cd thot ; \
                     55:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" thot ; fi)
1.24      cvs        56: 
                     57: annotations: rebuild force
                     58:        @(if test -d misc/annotations ; then cd misc/annotations ; \
                     59:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" annotations ; fi)
                     60: 
1.1       cvs        61: 
1.23      cvs        62: html2piv: rebuild force
                     63:        @(if test -d amaya ; then cd amaya ; \
                     64:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" html2piv ; fi)
                     65: 
1.31      cvs        66: amaya_prog: rebuild force bin/str
1.1       cvs        67:        @(if test -d amaya ; then cd amaya ; \
                     68:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
                     69: 
1.5       cvs        70: misc: rebuild force
                     71:        @(if test -d misc ; then cd misc ; \
                     72:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
                     73: 
1.1       cvs        74: all : rebuild
                     75:        @(for dir in $(SUBDIRS) ;\
                     76:          do if test -d $$dir ; then cd $$dir ; \
                     77:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; \
                     78:          cd .. ; fi ;done )
                     79: 
                     80: clean : rebuild
1.5       cvs        81:        @(for dir in $(SUBDIRS) $(EXTRA_SUBDIRS) ;\
1.1       cvs        82:          do if test -d $$dir ; then cd $$dir ; \
                     83:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" clean ; \
                     84:          cd .. ; fi ;done )
                     85: 
                     86: install : rebuild
                     87:        @(for dir in $(SUBDIRS) ;\
                     88:          do if test -d $$dir ; then cd $$dir ; \
                     89:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
                     90:          cd .. ; fi ;done )
1.8       cvs        91: 
                     92: uninstall : 
                     93:        @(for dir in $(SUBDIRS) ;\
                     94:          do if test -d $$dir ; then cd $$dir ; \
                     95:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" uninstall ; \
                     96:          cd .. ; fi ;done )
1.1       cvs        97: 
1.6       cvs        98: update :
                     99:        @(cd $(THOTDIR) ; cvs update)
                    100: 
                    101: commit :
                    102:        @(cd $(THOTDIR) ; cvs commit)
                    103: 
                    104: stubs:
1.21      cvs       105:        @(cd javalib ; $(MAKE) stubs)
1.6       cvs       106: 
                    107: classes: force
                    108:        @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
                    109:          if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
                    110:          else CLASSES=$(THOTDIR)/classes ; fi ; \
1.10      cvs       111:          CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:$$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
1.11      cvs       112:          cd $(THOTDIR)/classes ; $(MAKE) )
1.6       cvs       113: 
                    114: zips: force
1.21      cvs       115:        @(cd javalib ;  $(MAKE) zips);
1.20      cvs       116: 
                    117: #      @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
                    118: #        if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
                    119: #        else CLASSES=$(THOTDIR)/classes ; fi ; \
                    120: #        CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:\
                    121: # $$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
                    122: #        cd $(THOTDIR)/classes ; $(MAKE) zips)
1.6       cvs       123: 
1.3       cvs       124: tools/mkdep/mkdep :
1.23      cvs       125:        @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="-O" mkdep)
1.3       cvs       126: 
                    127: depend depends : rebuild tools/mkdep/mkdep
1.1       cvs       128:        @(for dir in $(SUBDIRS) ;\
                    129:          do if test -d $$dir ; then cd $$dir ; \
                    130:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" depend ; \
                    131:          cd .. ; fi ;done )
                    132: 
1.7       cvs       133: bin/cextract :
1.27      cvs       134:        @(cd tools/cextract-$(CEXTRACT_VER) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" cextract)
1.7       cvs       135: 
                    136: proto : rebuild bin/cextract
                    137:        @(for dir in $(SUBDIRS) ;\
                    138:          do if test -d $$dir ; then cd $$dir ; \
                    139:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" proto ; \
                    140:          cd .. ; fi ;done )
1.11      cvs       141: 
                    142: mkid : 
                    143:        @(echo rebuilding $(THOTDIR)/ID reference file)
1.26      cvs       144:        @(cd $(THOTDIR); mkid --lang-map=makes/id-lang.map . classes/org/w3c/*)
1.7       cvs       145: 
1.1       cvs       146: #
                    147: # Rule du rebuild the Thot schemas
                    148: #
                    149: 
                    150: bin/str : force
                    151:        @(cd batch ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" str prs tra printstr)
                    152: 
                    153: schemas : rebuild bin/str
1.6       cvs       154:        @(bindir=`pwd`/bin ; cd $(THOTDIR)/schemas ; \
1.1       cvs       155:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" THOTDIR=".." THOTSCH="../schemas:../schemasOPERA" \
                    156:          COMPSCH="."  COMPSTR="$$bindir/str" COMPPRS="$$bindir/prs" \
                    157:          COMPTRA="$$bindir/tra" PRINTSTR="$$bindir/printstr" all)
                    158: 
                    159: #
                    160: # Rules to rebuild the libWWW package
                    161: #
                    162: 
                    163: libwww libwww.a :
1.42    ! cvs       164:        @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; \
1.1       cvs       165:          then \
1.42    ! cvs       166:              cd $(THOTDIR)/.. ; cvs update -d $(LIBWWW) ; \
1.1       cvs       167:          fi)
                    168:        @(if test ! -d $(LIBWWW) ; then $(MKDIR) $(LIBWWW) ;  fi)
1.42    ! cvs       169:        @(localdir=`pwd` ; libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; cd $(LIBWWW) ; \
1.36      cvs       170:          unset LANG; \
1.42    ! cvs       171:          if [ ! -f Makefile ] ; then \
1.36      cvs       172:                ../$$libwwwdir/configure --disable-shared \
                    173:                        -with-zlib="$$localdir/libz.a"; \
1.1       cvs       174:          fi)
1.38      cvs       175:        @(cd $(LIBWWW)/Library/src ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")
1.28      cvs       176:        @($(CP) $(LIBWWW)/Library/src/.libs/libwww.a libwww.a)
1.1       cvs       177:        @echo libwww.a reinstalled
                    178: 
                    179: #
                    180: # Rules to rebuild the libjpeg package
                    181: #
                    182: 
                    183: libjpeg libjpeg.a : force
1.6       cvs       184:        @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23      cvs       185:        @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       186: 
                    187: #
                    188: # Rules to rebuild the libpng package
                    189: #
                    190: 
                    191: libpng libpng.a : force
1.6       cvs       192:        @($(RM) $(THOTDIR)/libpng/*.o)
1.23      cvs       193:        @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       194: 
                    195: #
                    196: # Rules to rebuild the libpng package
                    197: #
                    198: 
                    199: libz libz.a : force
1.6       cvs       200:        @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.23      cvs       201:        @(cd libpng/libz ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       202: 
                    203: #
                    204: # Rules to rebuild the Kaffe package
                    205: #
                    206: 
                    207: kaffe_get :
1.6       cvs       208:        @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1       cvs       209:          then \
1.35      cvs       210:              if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33      cvs       211:              then \
                    212:                  cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
                    213:              else \
                    214:                  cd $(THOTDIR) ; cvs get $(KAFFE) ; \
                    215:              fi \
1.1       cvs       216:          fi)
1.6       cvs       217:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       218:          then \
1.6       cvs       219:              cd $(THOTDIR) ; cvs get classes ; \
1.1       cvs       220:          fi)
1.6       cvs       221:        @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1       cvs       222:          then \
1.6       cvs       223:              cd $(THOTDIR) ; cvs get javalib ; \
1.1       cvs       224:          fi)
                    225:        @(if [ ! -d $(KAFFE) ] ; \
                    226:          then \
                    227:              mkdir $(KAFFE) ; \
                    228:          fi)
                    229: 
                    230: kaffe_clean :
                    231:        @($(RM) -f libkaffe*)
                    232: 
                    233: kaffe_config :
1.6       cvs       234:        @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17      cvs       235:          unset LANG; unset CC; unset CFLAGS; \
                    236:          if [ -x $$kaffedir/configure ] ; then \
1.1       cvs       237:              $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       238:              --bindir=$$localdir/bin --with-staticlib \
                    239:              --with-threads=unix-internal \
1.12      cvs       240:              @KAFFE_ENGINE@ ; \
1.3       cvs       241:          else \
1.1       cvs       242:              ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       243:              --bindir=$$localdir/bin --with-staticlib \
                    244:              --with-threads=unix-internal \
1.12      cvs       245:              @KAFFE_ENGINE@ ; \
1.1       cvs       246:          fi)
                    247: 
                    248: kaffe_make :
1.17      cvs       249:        @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1       cvs       250: 
                    251: kaffe_install:
1.15      cvs       252:        @(cd $(KAFFE) ; $(MAKE) install)
1.6       cvs       253:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       254:          then \
1.6       cvs       255:              $(MKDIR) $(THOTDIR)/classes ; \
1.1       cvs       256:          fi)
1.6       cvs       257:        @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1       cvs       258:          then \
1.6       cvs       259:              $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1       cvs       260:          fi)
1.6       cvs       261:        @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1       cvs       262:        @$(ECHO) Cleaning temp $(KAFFE) files
1.32      cvs       263:        @($(RM) -r man )
1.1       cvs       264: 
1.22      cvs       265: #      @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
                    266: #      @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
                    267: 
1.1       cvs       268: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
                    269:        @(echo $(KAFFE) reinstalled)
                    270: 
                    271: #
                    272: # This section try to maintain the Makefile(s) up-to-date in
                    273: # case the autoconf sources are modified.
                    274: #
                    275: 
                    276: MAKEFILE_IN= \
                    277: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       278: $(THOTDIR)/Options.in \
                    279: $(THOTDIR)/configure.in \
                    280: $(THOTDIR)/Makefile.in \
                    281: $(THOTDIR)/libjpeg/Makefile.in \
                    282: $(THOTDIR)/batch/Makefile.in \
                    283: $(THOTDIR)/libjpeg/Makefile.in \
                    284: $(THOTDIR)/libpng/Makefile.in \
                    285: $(THOTDIR)/libpng/zlib/Makefile.in \
                    286: $(THOTDIR)/tablelib/Makefile.in \
                    287: $(THOTDIR)/thotlib/Makefile.in \
                    288: $(THOTDIR)/thotlib/include/Makefile.in \
                    289: $(THOTDIR)/tools/Makefile.in \
                    290: $(THOTDIR)/tools/mkdep/Makefile.in \
                    291: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       292: 
1.3       cvs       293: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       294: 
                    295: ${srcdir}/config.h.in: stamp-h.in
                    296: 
                    297: ${srcdir}/stamp-h.in: configure.in config.h.in
                    298:        cd ${srcdir} && autoheader
                    299:        echo timestamp > ${srcdir}/stamp-h.in
                    300: 
                    301: stamp.h: config.h.in config.status
                    302:        ./config.status
                    303: 
                    304: Makefile: $(MAKEFILE_IN) config.status
                    305:        ./config.status
                    306: 
                    307: config.status: configure
                    308:        ./config.status --recheck
                    309: 

Webmaster