Annotation of Amaya/Makefile.in, revision 1.92

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@
1.83      vatton      9: THOTINCLUDES = @THOTINCLUDES@
                     10: LIBZ = @LIBZ@
1.1       cvs        11: 
1.4       cvs        12: include Options
1.1       cvs        13: 
1.73      kahan      14: LIBWWW    = libwww
                     15: LIBRAPTOR  = libraptor
1.85      kahan      16: REDLAND    = redland
1.73      kahan      17: LIBJPEG           = libjpeg
                     18: LIBPNG    = libpng
1.1       cvs        19: 
1.68      kirschpi   20: #MKP: adding davlib
1.73      kahan      21: SUBDIRS        = @SUBDIRS@ tools thotlib tablelib batch drawlib indexlib annotlib amaya thot @DAVDIR@
1.85      kahan      22: EXTRA_SUBDIRS= misc pluginlib $(LIBRAPTOR) $(REDLAND) $(LIBWWW)
1.1       cvs        23: 
1.8       cvs        24: prefix = @prefix@
                     25: exec_prefix = @exec_prefix@
                     26: libdir = @libdir@
                     27: bindir = @bindir@
                     28: 
1.6       cvs        29: srcdir = $(THOTDIR)
1.1       cvs        30: 
                     31: 
1.78      vatton     32: default : tools thotlib tablelib batch amaya_prog @PRINTIFNOTGL@
1.31      cvs        33: 
1.79      cheyroul   34: amaya : amaya_prog tools thotlib tablelib @PRINTIFNOTGL@
1.1       cvs        35: 
1.87      cheyroul   36: @NOPRINT@print : tools thotlib tablelib print_prog
1.49      cvs        37: 
1.4       cvs        38: Options:
                     39:        @CP@ Options.orig Options
                     40: 
1.1       cvs        41: force :
1.30      cvs        42: 
                     43: batch: rebuild force
                     44:        @(if test -d batch ; then cd batch ; \
1.55      cvs        45:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" ; fi)
1.9       cvs        46: 
                     47: tools: rebuild force
                     48:        @(if test -d tools ; then cd tools ; \
1.23      cvs        49:          $(MAKE) CC="$(CC)" CFLAGS="-O" all ; fi)
1.9       cvs        50: 
                     51: thotlib: rebuild force
                     52:        @(if test -d thotlib ; then cd thotlib ; \
                     53:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
1.23      cvs        54: 
1.31      cvs        55: amaya_prog: rebuild force bin/str
1.1       cvs        56:        @(if test -d amaya ; then cd amaya ; \
                     57:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
1.49      cvs        58: 
1.87      cheyroul   59: @NOPRINT@print_prog: rebuild force bin/str
                     60: @NOPRINT@      @(if test -d thotlib ; then cd thotlib ; \
                     61: @NOPRINT@        $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" print ; fi)
1.1       cvs        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.83      vatton     74:        $(RM) libpng.a libz.a libjpeg.a
1.5       cvs        75:        @(for dir in $(SUBDIRS) $(EXTRA_SUBDIRS) ;\
1.1       cvs        76:          do if test -d $$dir ; then cd $$dir ; \
                     77:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" clean ; \
                     78:          cd .. ; fi ;done )
                     79: 
1.92    ! vatton     80: reallyclean : clean
        !            81:        $(RM) config.cache config.h config.log config.status
        !            82: 
1.82      cheyroul   83: tempclean : 
                     84:        find ../ -name '.#*' -print0 | xargs -0r rm -f
                     85:        find ../ -name \*~ -exec rm {} \;
                     86:        find ../ \( -name '*~' -o -name '#*#' \) -print0 | xargs --no-run-if-empty --null rm -vf
                     87: 
1.1       cvs        88: install : rebuild
                     89:        @(for dir in $(SUBDIRS) ;\
                     90:          do if test -d $$dir ; then cd $$dir ; \
                     91:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
                     92:          cd .. ; fi ;done )
1.8       cvs        93: 
                     94: uninstall : 
                     95:        @(for dir in $(SUBDIRS) ;\
                     96:          do if test -d $$dir ; then cd $$dir ; \
                     97:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" uninstall ; \
                     98:          cd .. ; fi ;done )
1.1       cvs        99: 
1.6       cvs       100: update :
1.72      kahan     101:        @(cd $(THOTDIR) ; cvs update -dP)
1.62      cvs       102:        @(if [ -d $(THOTDIR)/../$(LIBWWW) ] ; then \
1.72      kahan     103:          cd $(THOTDIR)/../$(LIBWWW) ; cvs update -dP; fi)
1.6       cvs       104: 
                    105: commit :
                    106:        @(cd $(THOTDIR) ; cvs commit)
                    107: 
                    108: stubs:
1.21      cvs       109:        @(cd javalib ; $(MAKE) stubs)
1.6       cvs       110: 
                    111: classes: force
                    112:        @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
                    113:          if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
                    114:          else CLASSES=$(THOTDIR)/classes ; fi ; \
1.10      cvs       115:          CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:$$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
1.11      cvs       116:          cd $(THOTDIR)/classes ; $(MAKE) )
1.6       cvs       117: 
                    118: zips: force
1.21      cvs       119:        @(cd javalib ;  $(MAKE) zips);
1.20      cvs       120: 
                    121: #      @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
                    122: #        if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
                    123: #        else CLASSES=$(THOTDIR)/classes ; fi ; \
                    124: #        CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:\
                    125: # $$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
                    126: #        cd $(THOTDIR)/classes ; $(MAKE) zips)
1.6       cvs       127: 
1.3       cvs       128: tools/mkdep/mkdep :
1.23      cvs       129:        @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="-O" mkdep)
1.3       cvs       130: 
                    131: depend depends : rebuild tools/mkdep/mkdep
1.1       cvs       132:        @(for dir in $(SUBDIRS) ;\
                    133:          do if test -d $$dir ; then cd $$dir ; \
                    134:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" depend ; \
                    135:          cd .. ; fi ;done )
                    136: 
1.7       cvs       137: bin/cextract :
1.27      cvs       138:        @(cd tools/cextract-$(CEXTRACT_VER) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" cextract)
1.7       cvs       139: 
                    140: proto : rebuild bin/cextract
                    141:        @(for dir in $(SUBDIRS) ;\
                    142:          do if test -d $$dir ; then cd $$dir ; \
                    143:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" proto ; \
                    144:          cd .. ; fi ;done )
1.11      cvs       145: 
                    146: mkid : 
                    147:        @(echo rebuilding $(THOTDIR)/ID reference file)
1.26      cvs       148:        @(cd $(THOTDIR); mkid --lang-map=makes/id-lang.map . classes/org/w3c/*)
1.7       cvs       149: 
1.1       cvs       150: #
                    151: # Rule du rebuild the Thot schemas
                    152: #
                    153: 
                    154: bin/str : force
                    155:        @(cd batch ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" str prs tra printstr)
                    156: 
                    157: schemas : rebuild bin/str
1.6       cvs       158:        @(bindir=`pwd`/bin ; cd $(THOTDIR)/schemas ; \
1.1       cvs       159:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" THOTDIR=".." THOTSCH="../schemas:../schemasOPERA" \
                    160:          COMPSCH="."  COMPSTR="$$bindir/str" COMPPRS="$$bindir/prs" \
                    161:          COMPTRA="$$bindir/tra" PRINTSTR="$$bindir/printstr" all)
                    162: 
                    163: #
                    164: # Rules to rebuild the libWWW package
                    165: #
1.51      cvs       166: 
1.68      kirschpi  167: # MKP: adding libwwwdav
1.51      cvs       168: AMAYA_LIBWWW_STANDARD_LIBS = \
                    169:        libwwwapp \
                    170:        libwwwhttp \
                    171:        libwwwhtml \
                    172:        libwwwmime \
                    173:        libwwwcache \
                    174:        libwwwstream \
                    175:        libwwwfile \
                    176:        libwwwdir \
                    177:        libwwwtrans \
                    178:        libwwwcore \
                    179:        libwwwutils \
1.56      kahan     180:        libwwwftp \
1.73      kahan     181:        @MAKE_LIBWWW_RDF_PARSER@ \
1.70      kirschpi  182:        libwwwzip \
                    183:         @LIBDAV@
1.51      cvs       184: 
1.71      vatton    185: libwww_config :
1.51      cvs       186:        @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
                    187:              $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1       cvs       188:          fi)
1.45      cvs       189:        @(if [ ! -d $(LIBWWW) ] ; then \
1.51      cvs       190:                $(MKDIR) $(LIBWWW) ; \
1.45      cvs       191:           fi)
1.68      kirschpi  192: #MKP: adding --with-dav
1.58      kahan     193:        @(localdir=`pwd` ; libwwwdir="$$localdir/../../$(LIBWWW)" ; \
1.56      kahan     194:          cd $(LIBWWW) ; unset LANG; \
1.51      cvs       195:          if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.58      kahan     196:                $$libwwwdir/configure \
1.56      kahan     197:                        --disable-shared \
1.70      kirschpi  198:                        @WITHDAV@ \
1.83      vatton    199:                        --with-zlib; \
1.51      cvs       200:                $(ECHO) "libwww is configured" ; \
1.1       cvs       201:          fi)
1.51      cvs       202: 
                    203: libwww_make_module_md5 \
                    204: libmd5 : force
1.56      kahan     205:                @(localdir=`pwd`; \
                    206:                 cd $(LIBWWW)/modules/md5 ; \
1.60      kahan     207:                 $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.84      kahan     208:                 CPPFLAGS="$(CPPFLAGS) $(THOTINCLUDES)" \
1.56      kahan     209:                            libmd5.la)
1.51      cvs       210: 
                    211: libwww_install_module_md5 : force
                    212:                @(if [ -e libmd5.a -a ! -L libmd5.a ] ; then \
                    213:                        $(RM) libmd5.a ; \
                    214:                  fi ; \
                    215:                  if [ ! -L libmd5.a ] ; then \
                    216:                        $(LN_S) $(LIBWWW)/modules/md5/.libs/libmd5.a ./libmd5.a ; \
                    217:                  fi)
                    218: 
1.57      kahan     219: libwww_make_module_expat \
                    220: libexpat : force
                    221:                @(localdir=`pwd`; \
                    222:                  cd $(LIBWWW)/modules/expat/ ; \
1.66      cvs       223:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS) -DXML_AMAYA" \
1.57      kahan     224:                  CPPFLAGS="$(CPPFLAGS)" \
                    225:                            )
                    226: 
                    227: libwww_install_module_expat : force
1.86      kahan     228:                @(if [ -e libexpat.a -a ! -L libexpat.a ] ; then \
                    229:                        $(RM) libexpat.a ; \
1.57      kahan     230:                  fi ; \
1.86      kahan     231:                  if [ ! -L libexpat.a ] ; then \
                    232:                        $(LN_S) $(LIBWWW)/modules/expat/.libs/libexpat.a ./libexpat.a ; \
1.57      kahan     233:                  fi)
                    234: 
                    235: 
1.51      cvs       236: libwww_make_standard_libs \
                    237: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56      kahan     238:                @(localdir=`pwd`; \
                    239:                  all_libs="" ; \
1.51      cvs       240:                  for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    241:                      all_libs="$$all_libs $$lib.la" ; \
                    242:                   done ; \
                    243:                  cd $(LIBWWW)/Library/src ; \
1.60      kahan     244:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.84      kahan     245:                  CPPFLAGS="$(CPPFLAGS) $(THOTINCLUDES)" \
1.56      kahan     246:                             $$all_libs)
1.51      cvs       247: 
                    248: libwww_install_standard : force
                    249:                @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    250:                    if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
                    251:                        $(RM) $$lib.a ;  \
                    252:                    fi ; \
                    253:                    if [ ! -L $$lib.a ] ; then \
                    254:                        $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
                    255:                    fi ; \
                    256:                done)
                    257: 
1.57      kahan     258: libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat
1.51      cvs       259: libwww_make : libwww_make_module_libs libwww_make_standard_libs
1.57      kahan     260: libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat
1.51      cvs       261: libwww_install : libwww_install_modules libwww_install_standard 
                    262: 
                    263: libwww : libwww_config libwww_make
                    264:                @($(ECHO) "libwww is installed")
1.73      kahan     265: 
                    266: #
                    267: # Rules to build the raptor RDF package
                    268: #
                    269: 
                    270: libraptor_config: @MAKERAPTOR@ force
                    271:        @(if [ ! -e "$(THOTDIR)/$(LIBRAPTOR)" ] ; then \
                    272:              $(ECHO) "Error raptor dir not found at $(THOTDIR)/$(LIBRAPTOR)" ; \
                    273:          fi)
                    274:        @(if [ ! -e "$(THOTDIR)/$(LIBRAPTOR)/expat" ] ; then \
                    275:              libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
                    276:              echo $$libwwwdir ; \
                    277:              $(LN_S) "$$libwwwdir/modules/expat" "$(THOTDIR)/$(LIBRAPTOR)/expat" ; \
                    278:          fi)
                    279:         @(if [ ! -d "$(LIBRAPTOR)" ] ; then \
                    280:                $(MKDIR) $(LIBRAPTOR) ; \
                    281:           fi)
                    282:         @(localdir=`pwd` ; raptordir="$$localdir/../$(LIBRAPTOR)" ; \
                    283:          cd $(LIBRAPTOR) ; unset LANG; \
                    284:          if [ ! -f Makefile -o ! -f config.h ] ; then \
1.86      kahan     285:                CFLAGS="-I$$raptordir/expat/lib" \
1.74      kahan     286:                        $$raptordir/configure \
                    287:                        --without-shared \
1.73      kahan     288:                        --with-expat ; \
                    289:                $(ECHO) "libraptor is configured" ; \
                    290:          fi)
                    291: 
                    292: libraptor_make: @MAKERAPTOR@ force
                    293:        @(localdir=`pwd`; \
                    294:          cd $(LIBRAPTOR) ; \
1.75      kahan     295:          if [ ! -e .libs/libraptor.a -a -e libraptor.la ] ; then \
                    296:              $(RM) libraptor.la ; \
                    297:           fi ; \
1.86      kahan     298:          $(MAKE) CC="$(CC)" CFLAGS="-I$$localdir/../$(LIBRAPTOR)/expat/lib $(CFLAGS)" \
1.73      kahan     299:                  CPPFLAGS="$(CPPFLAGS)" \
                    300:        )
                    301: 
                    302: libraptor: @MAKERAPTOR@ libraptor_config libraptor_make
                    303:        @($(ECHO) "libraptor is installed")
1.85      kahan     304: 
                    305: #
                    306: # Rules to build the redland RDF library
                    307: #
                    308: 
                    309: redland_config: @MAKEREDLAND@ force
1.90      kahan     310:        @(if test ! -e "$(THOTDIR)/../$(REDLAND)"  ; then \
1.85      kahan     311:              $(ECHO) "Error redland dir not found at $(THOTDIR)/$(REDLAND)" ; \
                    312:          fi)
1.90      kahan     313:        @(if test ! -e "$(THOTDIR)/../$(REDLAND)/expat"  ; then \
1.85      kahan     314:              libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
                    315:              echo $$libwwwdir ; \
1.90      kahan     316:              $(LN_S) "$$libwwwdir/modules/expat" "$(THOTDIR)/../$(REDLAND)/expat" ; \
1.85      kahan     317:          fi)
                    318:         @(if test ! -d "$(REDLAND)"  ; then \
                    319:                $(MKDIR) $(REDLAND) ; \
                    320:           fi)
1.90      kahan     321:         @(localdir=`pwd` ; redlanddir="$$localdir/../../$(REDLAND)" ; \
1.85      kahan     322:          cd $(REDLAND) ; unset LANG; \
1.90      kahan     323:          $(ECHO) "I'm at $$localdir" ; \
1.85      kahan     324:          if test ! -f Makefile -o ! -f  redland-src-config ; then \
                    325:                        $$redlanddir/configure \
                    326:                        --disable-shared \
                    327:                        --without-bdb \
                    328:                        --enable-parsers=raptor \
                    329:                        --with-xml-parser=expat \
1.88      kahan     330:                        --with-www=none \
1.89      kahan     331:                        --without-libwww \
1.91      cheyroul  332:                        --without-openssl-digests \
1.85      kahan     333:                        --cache-file=$$localdir/config.cache; \
                    334:                $(ECHO) "redland is configured" ; \
                    335:          fi)
                    336: 
                    337: 
                    338: # the -DLIBRDF_INTERNAL=1 is needed if we're going to pass our own CFLAGS.
                    339: redland_make: @MAKEREDLAND@ force
                    340:        @(cd $(REDLAND) ; \
                    341:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -DLIBRDF_INTERNAL=1"; \
                    342:        )
                    343: 
                    344: redland: @MAKEREDLAND@ redland_config redland_make
                    345:        @($(ECHO) "redland is installed")
1.1       cvs       346: 
                    347: #
                    348: # Rules to rebuild the libjpeg package
                    349: #
                    350: 
                    351: libjpeg libjpeg.a : force
1.6       cvs       352:        @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23      cvs       353:        @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       354: 
                    355: #
                    356: # Rules to rebuild the libpng package
                    357: #
                    358: 
                    359: libpng libpng.a : force
1.6       cvs       360:        @($(RM) $(THOTDIR)/libpng/*.o)
1.23      cvs       361:        @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       362: 
                    363: #
                    364: # Rules to rebuild the libpng package
                    365: #
                    366: 
                    367: libz libz.a : force
1.6       cvs       368:        @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53      cvs       369:        @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       370: 
                    371: 
                    372: #
                    373: # This section try to maintain the Makefile(s) up-to-date in
                    374: # case the autoconf sources are modified.
                    375: #
                    376: 
                    377: MAKEFILE_IN= \
                    378: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       379: $(THOTDIR)/Options.in \
                    380: $(THOTDIR)/configure.in \
                    381: $(THOTDIR)/Makefile.in \
                    382: $(THOTDIR)/libjpeg/Makefile.in \
                    383: $(THOTDIR)/batch/Makefile.in \
                    384: $(THOTDIR)/libjpeg/Makefile.in \
                    385: $(THOTDIR)/libpng/Makefile.in \
                    386: $(THOTDIR)/libpng/zlib/Makefile.in \
                    387: $(THOTDIR)/tablelib/Makefile.in \
                    388: $(THOTDIR)/thotlib/Makefile.in \
                    389: $(THOTDIR)/thotlib/include/Makefile.in \
                    390: $(THOTDIR)/tools/Makefile.in \
                    391: $(THOTDIR)/tools/mkdep/Makefile.in \
                    392: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       393: 
1.3       cvs       394: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       395: 
                    396: ${srcdir}/config.h.in: stamp-h.in
                    397: 
                    398: ${srcdir}/stamp-h.in: configure.in config.h.in
                    399:        cd ${srcdir} && autoheader
                    400:        echo timestamp > ${srcdir}/stamp-h.in
                    401: 
                    402: stamp.h: config.h.in config.status
                    403:        ./config.status
                    404: 
                    405: Makefile: $(MAKEFILE_IN) config.status
                    406:        ./config.status
                    407: 
                    408: config.status: configure
                    409:        ./config.status --recheck
                    410: 
1.76      cheyroul  411: tags:  dummy
                    412:        rm -f ../TAGS
                    413:        find ../ -name "*.[hc]" -print | xargs etags --declarations -a -o ../TAGS
                    414: 
                    415: dummy:
                    416: 
                    417: 

Webmaster