Annotation of Amaya/Makefile.in, revision 1.85

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

Webmaster