Annotation of Amaya/Makefile.in, revision 1.46

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: #
1.46    ! cvs       162: libwww : libwww/wwwconf.h
1.42      cvs       163:        @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; \
1.1       cvs       164:          then \
1.42      cvs       165:              cd $(THOTDIR)/.. ; cvs update -d $(LIBWWW) ; \
1.1       cvs       166:          fi)
1.45      cvs       167:        @(if [ ! -d $(LIBWWW) ] ; then \
                    168:                        $(MKDIR) $(LIBWWW) ; \
                    169:           fi)
                    170:        @(localdir=`pwd` ; libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
                    171:                cd $(LIBWWW) ; unset LANG; \
1.42      cvs       172:          if [ ! -f Makefile ] ; then \
1.45      cvs       173:                ../$$libwwwdir/configure --disable-shared \
1.36      cvs       174:                        -with-zlib="$$localdir/libz.a"; \
1.1       cvs       175:          fi)
1.45      cvs       176:        @(cd $(LIBWWW)/modules/md5 ; $(MAKE) CC="$(CC)" \
                    177:                CFLAGS="$(CFLAGS)")
                    178:        @(cd $(LIBWWW)/modules/expat/xmlparse ; $(MAKE) CC="$(CC)" \
                    179:                CFLAGS="$(CFLAGS)")
                    180:        @(cd $(LIBWWW)/modules/expat/xmltok ; $(MAKE) CC="$(CC)" \
                    181:                CFLAGS="$(CFLAGS)")
1.44      cvs       182:        @(cd $(LIBWWW)/Library/src ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \
1.45      cvs       183:                -I$(THOTDIR)/libpng/zlib)
                    184:        @($(MV) $(LIBWWW)/modules/md5/.libs/libmd5.a libmd5.a)
                    185:        @($(MV) $(LIBWWW)/modules/expat/xmltok/.libs/libxmltok.a \
                    186:                libxmltok.a)
                    187:        @($(MV) $(LIBWWW)/modules/expat/xmlparse/.libs/libxmlparse.a \
                    188:                libxmlparse.a)
                    189:        @($(MV) $(LIBWWW)/Library/src/.libs/*.a .)
                    190:        @echo libwww reinstalled
1.1       cvs       191: 
                    192: #
                    193: # Rules to rebuild the libjpeg package
                    194: #
                    195: 
                    196: libjpeg libjpeg.a : force
1.6       cvs       197:        @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23      cvs       198:        @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       199: 
                    200: #
                    201: # Rules to rebuild the libpng package
                    202: #
                    203: 
                    204: libpng libpng.a : force
1.6       cvs       205:        @($(RM) $(THOTDIR)/libpng/*.o)
1.23      cvs       206:        @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       207: 
                    208: #
                    209: # Rules to rebuild the libpng package
                    210: #
                    211: 
                    212: libz libz.a : force
1.6       cvs       213:        @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.23      cvs       214:        @(cd libpng/libz ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       215: 
                    216: #
                    217: # Rules to rebuild the Kaffe package
                    218: #
                    219: 
                    220: kaffe_get :
1.6       cvs       221:        @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1       cvs       222:          then \
1.35      cvs       223:              if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33      cvs       224:              then \
                    225:                  cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
                    226:              else \
                    227:                  cd $(THOTDIR) ; cvs get $(KAFFE) ; \
                    228:              fi \
1.1       cvs       229:          fi)
1.6       cvs       230:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       231:          then \
1.6       cvs       232:              cd $(THOTDIR) ; cvs get classes ; \
1.1       cvs       233:          fi)
1.6       cvs       234:        @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1       cvs       235:          then \
1.6       cvs       236:              cd $(THOTDIR) ; cvs get javalib ; \
1.1       cvs       237:          fi)
                    238:        @(if [ ! -d $(KAFFE) ] ; \
                    239:          then \
                    240:              mkdir $(KAFFE) ; \
                    241:          fi)
                    242: 
                    243: kaffe_clean :
                    244:        @($(RM) -f libkaffe*)
                    245: 
                    246: kaffe_config :
1.6       cvs       247:        @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17      cvs       248:          unset LANG; unset CC; unset CFLAGS; \
                    249:          if [ -x $$kaffedir/configure ] ; then \
1.1       cvs       250:              $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       251:              --bindir=$$localdir/bin --with-staticlib \
                    252:              --with-threads=unix-internal \
1.12      cvs       253:              @KAFFE_ENGINE@ ; \
1.3       cvs       254:          else \
1.1       cvs       255:              ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32      cvs       256:              --bindir=$$localdir/bin --with-staticlib \
                    257:              --with-threads=unix-internal \
1.12      cvs       258:              @KAFFE_ENGINE@ ; \
1.1       cvs       259:          fi)
                    260: 
                    261: kaffe_make :
1.17      cvs       262:        @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1       cvs       263: 
                    264: kaffe_install:
1.15      cvs       265:        @(cd $(KAFFE) ; $(MAKE) install)
1.6       cvs       266:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       267:          then \
1.6       cvs       268:              $(MKDIR) $(THOTDIR)/classes ; \
1.1       cvs       269:          fi)
1.6       cvs       270:        @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1       cvs       271:          then \
1.6       cvs       272:              $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1       cvs       273:          fi)
1.6       cvs       274:        @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1       cvs       275:        @$(ECHO) Cleaning temp $(KAFFE) files
1.32      cvs       276:        @($(RM) -r man )
1.1       cvs       277: 
1.22      cvs       278: #      @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
                    279: #      @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
                    280: 
1.1       cvs       281: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
                    282:        @(echo $(KAFFE) reinstalled)
                    283: 
                    284: #
                    285: # This section try to maintain the Makefile(s) up-to-date in
                    286: # case the autoconf sources are modified.
                    287: #
                    288: 
                    289: MAKEFILE_IN= \
                    290: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       291: $(THOTDIR)/Options.in \
                    292: $(THOTDIR)/configure.in \
                    293: $(THOTDIR)/Makefile.in \
                    294: $(THOTDIR)/libjpeg/Makefile.in \
                    295: $(THOTDIR)/batch/Makefile.in \
                    296: $(THOTDIR)/libjpeg/Makefile.in \
                    297: $(THOTDIR)/libpng/Makefile.in \
                    298: $(THOTDIR)/libpng/zlib/Makefile.in \
                    299: $(THOTDIR)/tablelib/Makefile.in \
                    300: $(THOTDIR)/thotlib/Makefile.in \
                    301: $(THOTDIR)/thotlib/include/Makefile.in \
                    302: $(THOTDIR)/tools/Makefile.in \
                    303: $(THOTDIR)/tools/mkdep/Makefile.in \
                    304: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       305: 
1.3       cvs       306: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       307: 
                    308: ${srcdir}/config.h.in: stamp-h.in
                    309: 
                    310: ${srcdir}/stamp-h.in: configure.in config.h.in
                    311:        cd ${srcdir} && autoheader
                    312:        echo timestamp > ${srcdir}/stamp-h.in
                    313: 
                    314: stamp.h: config.h.in config.status
                    315:        ./config.status
                    316: 
                    317: Makefile: $(MAKEFILE_IN) config.status
                    318:        ./config.status
                    319: 
                    320: config.status: configure
                    321:        ./config.status --recheck
                    322: 

Webmaster