Annotation of Amaya/Makefile.in, revision 1.84

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
                     16: LIBJPEG           = libjpeg
                     17: LIBPNG    = libpng
1.1       cvs        18: 
1.68      kirschpi   19: #MKP: adding davlib
1.73      kahan      20: SUBDIRS        = @SUBDIRS@ tools thotlib tablelib batch drawlib indexlib annotlib amaya thot @DAVDIR@
1.80      kahan      21: EXTRA_SUBDIRS= misc pluginlib $(LIBRAPTOR) $(LIBWWW)
1.1       cvs        22: 
1.8       cvs        23: prefix = @prefix@
                     24: exec_prefix = @exec_prefix@
                     25: libdir = @libdir@
                     26: bindir = @bindir@
                     27: 
1.6       cvs        28: srcdir = $(THOTDIR)
1.1       cvs        29: 
                     30: 
1.78      vatton     31: default : tools thotlib tablelib batch amaya_prog @PRINTIFNOTGL@
1.31      cvs        32: 
1.79      cheyroul   33: amaya : amaya_prog tools thotlib tablelib @PRINTIFNOTGL@
1.1       cvs        34: 
1.49      cvs        35: print : tools thotlib tablelib print_prog
                     36: 
1.4       cvs        37: Options:
                     38:        @CP@ Options.orig Options
                     39: 
1.1       cvs        40: force :
1.30      cvs        41: 
                     42: batch: rebuild force
                     43:        @(if test -d batch ; then cd batch ; \
1.55      cvs        44:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" ; fi)
1.9       cvs        45: 
                     46: tools: rebuild force
                     47:        @(if test -d tools ; then cd tools ; \
1.23      cvs        48:          $(MAKE) CC="$(CC)" CFLAGS="-O" all ; fi)
1.9       cvs        49: 
                     50: thotlib: rebuild force
                     51:        @(if test -d thotlib ; then cd thotlib ; \
                     52:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
1.23      cvs        53: 
1.31      cvs        54: amaya_prog: rebuild force bin/str
1.1       cvs        55:        @(if test -d amaya ; then cd amaya ; \
                     56:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
1.49      cvs        57: 
                     58: print_prog: rebuild force bin/str
                     59:        @(if test -d thotlib ; then cd thotlib ; \
                     60:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" print ; fi)
1.1       cvs        61: 
1.5       cvs        62: misc: rebuild force
                     63:        @(if test -d misc ; then cd misc ; \
                     64:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
                     65: 
1.1       cvs        66: all : rebuild
                     67:        @(for dir in $(SUBDIRS) ;\
                     68:          do if test -d $$dir ; then cd $$dir ; \
                     69:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; \
                     70:          cd .. ; fi ;done )
                     71: 
                     72: clean : rebuild
1.83      vatton     73:        $(RM) libpng.a libz.a libjpeg.a
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: 
1.82      cheyroul   79: tempclean : 
                     80:        find ../ -name '.#*' -print0 | xargs -0r rm -f
                     81:        find ../ -name \*~ -exec rm {} \;
                     82:        find ../ \( -name '*~' -o -name '#*#' \) -print0 | xargs --no-run-if-empty --null rm -vf
                     83: 
1.1       cvs        84: install : rebuild
                     85:        @(for dir in $(SUBDIRS) ;\
                     86:          do if test -d $$dir ; then cd $$dir ; \
                     87:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
                     88:          cd .. ; fi ;done )
1.8       cvs        89: 
                     90: uninstall : 
                     91:        @(for dir in $(SUBDIRS) ;\
                     92:          do if test -d $$dir ; then cd $$dir ; \
                     93:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" uninstall ; \
                     94:          cd .. ; fi ;done )
1.1       cvs        95: 
1.6       cvs        96: update :
1.72      kahan      97:        @(cd $(THOTDIR) ; cvs update -dP)
1.62      cvs        98:        @(if [ -d $(THOTDIR)/../$(LIBWWW) ] ; then \
1.72      kahan      99:          cd $(THOTDIR)/../$(LIBWWW) ; cvs update -dP; fi)
1.6       cvs       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.51      cvs       162: 
1.68      kirschpi  163: # MKP: adding libwwwdav
1.51      cvs       164: AMAYA_LIBWWW_STANDARD_LIBS = \
                    165:        libwwwapp \
                    166:        libwwwhttp \
                    167:        libwwwhtml \
                    168:        libwwwmime \
                    169:        libwwwcache \
                    170:        libwwwstream \
                    171:        libwwwfile \
                    172:        libwwwdir \
                    173:        libwwwtrans \
                    174:        libwwwcore \
                    175:        libwwwutils \
1.56      kahan     176:        libwwwftp \
1.73      kahan     177:        @MAKE_LIBWWW_RDF_PARSER@ \
1.70      kirschpi  178:        libwwwzip \
                    179:         @LIBDAV@
1.51      cvs       180: 
1.71      vatton    181: libwww_config :
1.51      cvs       182:        @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
                    183:              $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1       cvs       184:          fi)
1.45      cvs       185:        @(if [ ! -d $(LIBWWW) ] ; then \
1.51      cvs       186:                $(MKDIR) $(LIBWWW) ; \
1.45      cvs       187:           fi)
1.68      kirschpi  188: #MKP: adding --with-dav
1.58      kahan     189:        @(localdir=`pwd` ; libwwwdir="$$localdir/../../$(LIBWWW)" ; \
1.56      kahan     190:          cd $(LIBWWW) ; unset LANG; \
1.51      cvs       191:          if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.58      kahan     192:                $$libwwwdir/configure \
1.56      kahan     193:                        --disable-shared \
1.70      kirschpi  194:                        @WITHDAV@ \
1.83      vatton    195:                        --with-zlib; \
1.51      cvs       196:                $(ECHO) "libwww is configured" ; \
1.1       cvs       197:          fi)
1.51      cvs       198: 
                    199: libwww_make_module_md5 \
                    200: libmd5 : force
1.56      kahan     201:                @(localdir=`pwd`; \
                    202:                 cd $(LIBWWW)/modules/md5 ; \
1.60      kahan     203:                 $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.84    ! kahan     204:                 CPPFLAGS="$(CPPFLAGS) $(THOTINCLUDES)" \
1.56      kahan     205:                            libmd5.la)
1.51      cvs       206: 
                    207: libwww_install_module_md5 : force
                    208:                @(if [ -e libmd5.a -a ! -L libmd5.a ] ; then \
                    209:                        $(RM) libmd5.a ; \
                    210:                  fi ; \
                    211:                  if [ ! -L libmd5.a ] ; then \
                    212:                        $(LN_S) $(LIBWWW)/modules/md5/.libs/libmd5.a ./libmd5.a ; \
                    213:                  fi)
                    214: 
1.57      kahan     215: libwww_make_module_expat \
                    216: libexpat : force
                    217:                @(localdir=`pwd`; \
                    218:                  cd $(LIBWWW)/modules/expat/ ; \
1.66      cvs       219:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS) -DXML_AMAYA" \
1.57      kahan     220:                  CPPFLAGS="$(CPPFLAGS)" \
                    221:                            )
                    222: 
                    223: libwww_install_module_expat : force
                    224:                @(if [ -e libxmlparse.a -a ! -L libxmlparse.a ] ; then \
                    225:                        $(RM) libxmlparse.a ; \
                    226:                  fi ; \
                    227:                  if [ ! -L libxmlparse.a ] ; then \
                    228:                        $(LN_S) $(LIBWWW)/modules/expat/xmlparse/.libs/libxmlparse.a ./libxmlparse.a ; \
                    229:                  fi)
                    230:                @(if [ -e libxmltok.a -a ! -L libxmltok.a ] ; then \
                    231:                        $(RM) libxmltok.a ; \
                    232:                  fi ; \
                    233:                  if [ ! -L libxmltok.a ] ; then \
                    234:                        $(LN_S) $(LIBWWW)/modules/expat/xmltok/.libs/libxmltok.a ./libxmltok.a ; \
                    235:                  fi)
                    236: 
                    237: 
1.51      cvs       238: libwww_make_standard_libs \
                    239: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56      kahan     240:                @(localdir=`pwd`; \
                    241:                  all_libs="" ; \
1.51      cvs       242:                  for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    243:                      all_libs="$$all_libs $$lib.la" ; \
                    244:                   done ; \
                    245:                  cd $(LIBWWW)/Library/src ; \
1.60      kahan     246:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.84    ! kahan     247:                  CPPFLAGS="$(CPPFLAGS) $(THOTINCLUDES)" \
1.56      kahan     248:                             $$all_libs)
1.51      cvs       249: 
                    250: libwww_install_standard : force
                    251:                @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    252:                    if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
                    253:                        $(RM) $$lib.a ;  \
                    254:                    fi ; \
                    255:                    if [ ! -L $$lib.a ] ; then \
                    256:                        $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
                    257:                    fi ; \
                    258:                done)
                    259: 
1.57      kahan     260: libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat
1.51      cvs       261: libwww_make : libwww_make_module_libs libwww_make_standard_libs
1.57      kahan     262: libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat
1.51      cvs       263: libwww_install : libwww_install_modules libwww_install_standard 
                    264: 
                    265: libwww : libwww_config libwww_make
                    266:                @($(ECHO) "libwww is installed")
1.73      kahan     267: 
                    268: #
                    269: # Rules to build the raptor RDF package
                    270: #
                    271: 
                    272: libraptor_config: @MAKERAPTOR@ force
                    273:        @(if [ ! -e "$(THOTDIR)/$(LIBRAPTOR)" ] ; then \
                    274:              $(ECHO) "Error raptor dir not found at $(THOTDIR)/$(LIBRAPTOR)" ; \
                    275:          fi)
                    276:        @(if [ ! -e "$(THOTDIR)/$(LIBRAPTOR)/expat" ] ; then \
                    277:              libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
                    278:              echo $$libwwwdir ; \
                    279:              $(LN_S) "$$libwwwdir/modules/expat" "$(THOTDIR)/$(LIBRAPTOR)/expat" ; \
                    280:          fi)
                    281:         @(if [ ! -d "$(LIBRAPTOR)" ] ; then \
                    282:                $(MKDIR) $(LIBRAPTOR) ; \
                    283:           fi)
                    284:         @(localdir=`pwd` ; raptordir="$$localdir/../$(LIBRAPTOR)" ; \
                    285:          cd $(LIBRAPTOR) ; unset LANG; \
                    286:          if [ ! -f Makefile -o ! -f config.h ] ; then \
1.81      kahan     287:                CFLAGS="-I$$raptordir/expat/xmlparse" \
1.74      kahan     288:                        $$raptordir/configure \
                    289:                        --without-shared \
1.73      kahan     290:                        --with-expat ; \
                    291:                $(ECHO) "libraptor is configured" ; \
                    292:          fi)
                    293: 
                    294: libraptor_make: @MAKERAPTOR@ force
                    295:        @(localdir=`pwd`; \
                    296:          cd $(LIBRAPTOR) ; \
1.75      kahan     297:          if [ ! -e .libs/libraptor.a -a -e libraptor.la ] ; then \
                    298:              $(RM) libraptor.la ; \
                    299:           fi ; \
1.74      kahan     300:          $(MAKE) CC="$(CC)" CFLAGS="-I$$localdir/../$(LIBRAPTOR)/expat/xmlparse $(CFLAGS)" \
1.73      kahan     301:                  CPPFLAGS="$(CPPFLAGS)" \
                    302:        )
                    303: 
                    304: libraptor: @MAKERAPTOR@ libraptor_config libraptor_make
                    305:        @($(ECHO) "libraptor is installed")
1.1       cvs       306: 
                    307: #
                    308: # Rules to rebuild the libjpeg package
                    309: #
                    310: 
                    311: libjpeg libjpeg.a : force
1.6       cvs       312:        @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23      cvs       313:        @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       314: 
                    315: #
                    316: # Rules to rebuild the libpng package
                    317: #
                    318: 
                    319: libpng libpng.a : force
1.6       cvs       320:        @($(RM) $(THOTDIR)/libpng/*.o)
1.23      cvs       321:        @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       322: 
                    323: #
                    324: # Rules to rebuild the libpng package
                    325: #
                    326: 
                    327: libz libz.a : force
1.6       cvs       328:        @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53      cvs       329:        @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1       cvs       330: 
                    331: 
                    332: #
                    333: # This section try to maintain the Makefile(s) up-to-date in
                    334: # case the autoconf sources are modified.
                    335: #
                    336: 
                    337: MAKEFILE_IN= \
                    338: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       339: $(THOTDIR)/Options.in \
                    340: $(THOTDIR)/configure.in \
                    341: $(THOTDIR)/Makefile.in \
                    342: $(THOTDIR)/libjpeg/Makefile.in \
                    343: $(THOTDIR)/batch/Makefile.in \
                    344: $(THOTDIR)/libjpeg/Makefile.in \
                    345: $(THOTDIR)/libpng/Makefile.in \
                    346: $(THOTDIR)/libpng/zlib/Makefile.in \
                    347: $(THOTDIR)/tablelib/Makefile.in \
                    348: $(THOTDIR)/thotlib/Makefile.in \
                    349: $(THOTDIR)/thotlib/include/Makefile.in \
                    350: $(THOTDIR)/tools/Makefile.in \
                    351: $(THOTDIR)/tools/mkdep/Makefile.in \
                    352: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       353: 
1.3       cvs       354: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       355: 
                    356: ${srcdir}/config.h.in: stamp-h.in
                    357: 
                    358: ${srcdir}/stamp-h.in: configure.in config.h.in
                    359:        cd ${srcdir} && autoheader
                    360:        echo timestamp > ${srcdir}/stamp-h.in
                    361: 
                    362: stamp.h: config.h.in config.status
                    363:        ./config.status
                    364: 
                    365: Makefile: $(MAKEFILE_IN) config.status
                    366:        ./config.status
                    367: 
                    368: config.status: configure
                    369:        ./config.status --recheck
                    370: 
1.76      cheyroul  371: tags:  dummy
                    372:        rm -f ../TAGS
                    373:        find ../ -name "*.[hc]" -print | xargs etags --declarations -a -o ../TAGS
                    374: 
                    375: dummy:
                    376: 
                    377: 

Webmaster