Annotation of Amaya/Makefile.in, revision 1.19

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

Webmaster