Annotation of Amaya/Makefile.in, revision 1.27

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.4       cvs        12: LIBWWW = w3c-libwww-$(LIBWWW_VER)
                     13: KAFFE  = kaffe-$(KAFFE_VER)
1.1       cvs        14: LIBJPEG        = libjpeg
                     15: LIBPNG = libpng
                     16: LIBZ   = libz
                     17: 
1.27    ! cvs        18: SUBDIRS        = tools tablelib thotlib batch drawlib indexlib thot amaya pluginlib 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: datadir = @datadir@
                     26: 
1.6       cvs        27: srcdir = $(THOTDIR)
1.1       cvs        28: 
                     29: @SET_MAKE@
                     30: 
1.25      cvs        31: default : thotlib tools amaya thot
1.1       cvs        32: 
1.4       cvs        33: Options:
                     34:        @CP@ Options.orig Options
                     35: 
1.1       cvs        36: force :
1.9       cvs        37: 
                     38: tools: rebuild force
                     39:        @(if test -d tools ; then cd tools ; \
1.23      cvs        40:          $(MAKE) CC="$(CC)" CFLAGS="-O" all ; fi)
1.9       cvs        41: 
                     42: thotlib: rebuild force
                     43:        @(if test -d thotlib ; then cd thotlib ; \
                     44:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
1.1       cvs        45: 
                     46: thot: rebuild force
                     47:        @(if test -d thot ; then cd thot ; \
                     48:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" thot ; fi)
1.24      cvs        49: 
                     50: annotations: rebuild force
                     51:        @(if test -d misc/annotations ; then cd misc/annotations ; \
                     52:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" annotations ; fi)
                     53: 
1.1       cvs        54: 
1.23      cvs        55: html2piv: rebuild force
                     56:        @(if test -d amaya ; then cd amaya ; \
                     57:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" html2piv ; fi)
                     58: 
1.25      cvs        59: amaya: rebuild force bin/str
1.1       cvs        60:        @(if test -d amaya ; then cd amaya ; \
                     61:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
                     62: 
1.5       cvs        63: misc: rebuild force
                     64:        @(if test -d misc ; then cd misc ; \
                     65:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
                     66: 
1.1       cvs        67: all : rebuild
                     68:        @(for dir in $(SUBDIRS) ;\
                     69:          do if test -d $$dir ; then cd $$dir ; \
                     70:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; \
                     71:          cd .. ; fi ;done )
                     72: 
                     73: clean : rebuild
1.5       cvs        74:        @(for dir in $(SUBDIRS) $(EXTRA_SUBDIRS) ;\
1.1       cvs        75:          do if test -d $$dir ; then cd $$dir ; \
                     76:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" clean ; \
                     77:          cd .. ; fi ;done )
                     78: 
                     79: install : rebuild
                     80:        @(for dir in $(SUBDIRS) ;\
                     81:          do if test -d $$dir ; then cd $$dir ; \
                     82:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
                     83:          cd .. ; fi ;done )
1.8       cvs        84: 
                     85: uninstall : 
                     86:        @(for dir in $(SUBDIRS) ;\
                     87:          do if test -d $$dir ; then cd $$dir ; \
                     88:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" uninstall ; \
                     89:          cd .. ; fi ;done )
                     90:        $(RM) -rf $(datadir)/thot
1.1       cvs        91: 
1.6       cvs        92: update :
                     93:        @(cd $(THOTDIR) ; cvs update)
                     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: #
                    156: 
                    157: libwww libwww.a :
1.6       cvs       158:        @(if [ ! -d $(THOTDIR)/$(LIBWWW) ] ; \
1.1       cvs       159:          then \
1.6       cvs       160:              cd $(THOTDIR) ; cvs update -d $(LIBWWW) ; \
1.1       cvs       161:          fi)
                    162:        @(if test ! -d $(LIBWWW) ; then $(MKDIR) $(LIBWWW) ;  fi)
1.6       cvs       163:        @(localdir=`pwd` ; libwwwdir="$(THOTDIR)/$(LIBWWW)" ; cd $(LIBWWW) ; \
1.1       cvs       164:          unset LANG; if [ -x $$libwwwdir/configure ] ; then \
                    165:              $$libwwwdir/configure ; \
                    166:          else \
                    167:              ../$$libwwwdir/configure ; \
                    168:          fi)
1.6       cvs       169:        -@(cd $(THOTDIR)/$(LIBWWW)/Library/src ; \
1.1       cvs       170:           touch *.html ; touch *.h ; touch *.c)
                    171:        @(cd $(LIBWWW)/Library/src ; $(MAKE) CC=$(CC) CFLAGS="-O" libwww.a)
1.16      cvs       172:        @($(CP) $(LIBWWW)/Library/src/libwww.a libwww.a)
1.1       cvs       173:        @echo libwww.a reinstalled
                    174: 
                    175: #
                    176: # Rules to rebuild the libjpeg package
                    177: #
                    178: 
                    179: libjpeg libjpeg.a : force
1.6       cvs       180:        @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23      cvs       181:        @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       182: 
                    183: #
                    184: # Rules to rebuild the libpng package
                    185: #
                    186: 
                    187: libpng libpng.a : force
1.6       cvs       188:        @($(RM) $(THOTDIR)/libpng/*.o)
1.23      cvs       189:        @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       190: 
                    191: #
                    192: # Rules to rebuild the libpng package
                    193: #
                    194: 
                    195: libz libz.a : force
1.6       cvs       196:        @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.23      cvs       197:        @(cd libpng/libz ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       198: 
                    199: #
                    200: # Rules to rebuild the Kaffe package
                    201: #
                    202: 
                    203: kaffe_get :
1.6       cvs       204:        @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1       cvs       205:          then \
1.6       cvs       206:              cd $(THOTDIR) ; cvs get $(KAFFE) ; \
1.1       cvs       207:          fi)
1.6       cvs       208:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       209:          then \
1.6       cvs       210:              cd $(THOTDIR) ; cvs get classes ; \
1.1       cvs       211:          fi)
1.6       cvs       212:        @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1       cvs       213:          then \
1.6       cvs       214:              cd $(THOTDIR) ; cvs get javalib ; \
1.1       cvs       215:          fi)
                    216:        @(if [ ! -d $(KAFFE) ] ; \
                    217:          then \
                    218:              mkdir $(KAFFE) ; \
                    219:          fi)
                    220: 
                    221: kaffe_clean :
                    222:        @($(RM) -f libkaffe*)
                    223: 
                    224: kaffe_config :
1.6       cvs       225:        @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17      cvs       226:          unset LANG; unset CC; unset CFLAGS; \
                    227:          if [ -x $$kaffedir/configure ] ; then \
1.1       cvs       228:              $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.12      cvs       229:              --bindir=$$localdir/bin --enable-staticlib --with-x \
                    230:              @KAFFE_ENGINE@ ; \
1.3       cvs       231:          else \
1.1       cvs       232:              ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.12      cvs       233:              --bindir=$$localdir/bin --enable-staticlib --with-x \
                    234:              @KAFFE_ENGINE@ ; \
1.1       cvs       235:          fi)
                    236: 
                    237: kaffe_make :
1.17      cvs       238:        @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1       cvs       239: 
                    240: kaffe_install:
1.15      cvs       241:        @(cd $(KAFFE) ; $(MAKE) install)
1.6       cvs       242:        @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1       cvs       243:          then \
1.6       cvs       244:              $(MKDIR) $(THOTDIR)/classes ; \
1.1       cvs       245:          fi)
1.6       cvs       246:        @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1       cvs       247:          then \
1.6       cvs       248:              $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1       cvs       249:          fi)
1.6       cvs       250:        @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1       cvs       251:        @$(ECHO) Cleaning temp $(KAFFE) files
1.13      cvs       252:        @($(RM) -r share man )
1.1       cvs       253: 
1.22      cvs       254: #      @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
                    255: #      @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
                    256: 
1.1       cvs       257: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
                    258:        @(echo $(KAFFE) reinstalled)
                    259: 
                    260: #
                    261: # This section try to maintain the Makefile(s) up-to-date in
                    262: # case the autoconf sources are modified.
                    263: #
                    264: 
                    265: MAKEFILE_IN= \
                    266: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       267: $(THOTDIR)/Options.in \
                    268: $(THOTDIR)/configure.in \
                    269: $(THOTDIR)/Makefile.in \
                    270: $(THOTDIR)/libjpeg/Makefile.in \
                    271: $(THOTDIR)/batch/Makefile.in \
                    272: $(THOTDIR)/libjpeg/Makefile.in \
                    273: $(THOTDIR)/libpng/Makefile.in \
                    274: $(THOTDIR)/libpng/zlib/Makefile.in \
                    275: $(THOTDIR)/tablelib/Makefile.in \
                    276: $(THOTDIR)/thotlib/Makefile.in \
                    277: $(THOTDIR)/thotlib/include/Makefile.in \
                    278: $(THOTDIR)/tools/Makefile.in \
                    279: $(THOTDIR)/tools/mkdep/Makefile.in \
                    280: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       281: 
1.3       cvs       282: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       283: 
                    284: ${srcdir}/config.h.in: stamp-h.in
                    285: 
                    286: ${srcdir}/stamp-h.in: configure.in config.h.in
                    287:        cd ${srcdir} && autoheader
                    288:        echo timestamp > ${srcdir}/stamp-h.in
                    289: 
                    290: stamp.h: config.h.in config.status
                    291:        ./config.status
                    292: 
                    293: Makefile: $(MAKEFILE_IN) config.status
                    294:        ./config.status
                    295: 
                    296: config.status: configure
                    297:        ./config.status --recheck
                    298: 

Webmaster