Annotation of Amaya/Makefile.in, revision 1.131

1.1       cvs         1: #
                      2: # Main Makefile for Thot/Amaya source tree
                      3: # Generated from Makefile.in
1.123     vatton      4: # Daniel Veillard, Irene Vatton, 2007
1.1       cvs         5: #
                      6: 
                      7: @VPATHOPT@= @srcdir@
                      8: THOTDIR = @top_srcdir@
1.83      vatton      9: THOTINCLUDES = @THOTINCLUDES@
1.1       cvs        10: 
1.4       cvs        11: include Options
1.1       cvs        12: 
1.73      kahan      13: LIBWWW    = libwww
1.126     vatton     14: REDLAND    = redland
1.1       cvs        15: 
1.68      kirschpi   16: #MKP: adding davlib
1.124     kia        17: SUBDIRS        = @SUBDIRS@ tools thotlib batch annotlib @DAVDIR@ amaya
1.126     vatton     18: EXTRA_SUBDIRS= $(LIBWWW) $(REDLAND) $(WX_BUILDDIR) $(GL_BUILDDIR)
1.1       cvs        19: 
1.8       cvs        20: prefix = @prefix@
                     21: exec_prefix = @exec_prefix@
                     22: libdir = @libdir@
                     23: bindir = @bindir@
                     24: 
1.6       cvs        25: srcdir = $(THOTDIR)
1.1       cvs        26: 
1.126     vatton     27: default : tools gl @BUILDWXWIDGETS@ thotlib batch amaya_prog print_prog
1.31      cvs        28: 
1.124     kia        29: amaya : tools thotlib amaya_prog print_prog
1.1       cvs        30: 
1.116     vatton     31: print : tools thotlib print_prog
1.49      cvs        32: 
1.4       cvs        33: Options:
                     34:        @CP@ Options.orig Options
                     35: 
1.1       cvs        36: force :
1.30      cvs        37: 
                     38: batch: rebuild force
                     39:        @(if test -d batch ; then cd batch ; \
1.98      gully      40:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" ; fi)
1.9       cvs        41: 
                     42: tools: rebuild force
                     43:        @(if test -d tools ; then cd tools ; \
1.98      gully      44:          $(MAKE) CC="$(CC)" CFLAGS="-O -x c" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" all ; fi)
1.9       cvs        45: 
                     46: thotlib: rebuild force
                     47:        @(if test -d thotlib ; then cd thotlib ; \
1.98      gully      48:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" all ; fi)
1.23      cvs        49: 
1.31      cvs        50: amaya_prog: rebuild force bin/str
1.1       cvs        51:        @(if test -d amaya ; then cd amaya ; \
1.98      gully      52:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" amaya ; fi)
1.49      cvs        53: 
1.105     gully      54: wxwidgets: rebuild force
1.106     vatton     55:        @(if test -d "$(WX_BUILDDIR)" ; then cd "$(WX_BUILDDIR)" ; \
                     56:          $(MAKE) ; fi)
1.105     gully      57: 
1.110     gully      58: gl: rebuild force
                     59:        @(if test -d "$(GL_BUILDDIR)" ; then cd "$(GL_BUILDDIR)" ; \
1.129     kia        60:          $(MAKE) ; fi)
1.110     gully      61: 
1.116     vatton     62: print_prog: rebuild force bin/str
                     63:        @(if test -d thotlib ; then cd thotlib ; \
                     64:   $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" print ; fi)
1.1       cvs        65: 
                     66: all : rebuild
1.124     kia        67:        @(for dir in $(EXTRA_SUBDIRS) $(SUBDIRS) ;\
1.1       cvs        68:          do if test -d $$dir ; then cd $$dir ; \
1.98      gully      69:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" all ; \
1.1       cvs        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 ; \
1.98      gully      76:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" clean ; \
1.1       cvs        77:          cd .. ; fi ;done )
                     78: 
1.92      vatton     79: reallyclean : clean
                     80:        $(RM) config.cache config.h config.log config.status
                     81: 
1.82      cheyroul   82: tempclean : 
                     83:        find ../ -name '.#*' -print0 | xargs -0r rm -f
                     84:        find ../ -name \*~ -exec rm {} \;
                     85:        find ../ \( -name '*~' -o -name '#*#' \) -print0 | xargs --no-run-if-empty --null rm -vf
                     86: 
1.1       cvs        87: install : rebuild
                     88:        @(for dir in $(SUBDIRS) ;\
                     89:          do if test -d $$dir ; then cd $$dir ; \
1.98      gully      90:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" install ; \
1.1       cvs        91:          cd .. ; fi ;done )
1.8       cvs        92: 
                     93: uninstall : 
                     94:        @(for dir in $(SUBDIRS) ;\
                     95:          do if test -d $$dir ; then cd $$dir ; \
1.98      gully      96:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" uninstall ; \
1.8       cvs        97:          cd .. ; fi ;done )
1.1       cvs        98: 
1.6       cvs        99: update :
1.72      kahan     100:        @(cd $(THOTDIR) ; cvs update -dP)
1.62      cvs       101:        @(if [ -d $(THOTDIR)/../$(LIBWWW) ] ; then \
1.72      kahan     102:          cd $(THOTDIR)/../$(LIBWWW) ; cvs update -dP; fi)
1.6       cvs       103: 
                    104: commit :
                    105:        @(cd $(THOTDIR) ; cvs commit)
                    106: 
1.3       cvs       107: tools/mkdep/mkdep :
1.98      gully     108:        @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="-O -x c" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" mkdep)
1.3       cvs       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 ; \
1.98      gully     113:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" depend ; \
1.1       cvs       114:          cd .. ; fi ;done )
                    115: 
1.7       cvs       116: bin/cextract :
1.98      gully     117:        @(cd tools/cextract-$(CEXTRACT_VER) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" cextract)
1.7       cvs       118: 
                    119: proto : rebuild bin/cextract
                    120:        @(for dir in $(SUBDIRS) ;\
                    121:          do if test -d $$dir ; then cd $$dir ; \
1.98      gully     122:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" proto ; \
1.7       cvs       123:          cd .. ; fi ;done )
1.11      cvs       124: 
                    125: mkid : 
                    126:        @(echo rebuilding $(THOTDIR)/ID reference file)
1.26      cvs       127:        @(cd $(THOTDIR); mkid --lang-map=makes/id-lang.map . classes/org/w3c/*)
1.7       cvs       128: 
1.1       cvs       129: #
                    130: # Rules to rebuild the libWWW package
                    131: #
1.51      cvs       132: 
1.68      kirschpi  133: # MKP: adding libwwwdav
1.51      cvs       134: AMAYA_LIBWWW_STANDARD_LIBS = \
                    135:        libwwwapp \
                    136:        libwwwhttp \
                    137:        libwwwhtml \
                    138:        libwwwmime \
                    139:        libwwwcache \
                    140:        libwwwstream \
                    141:        libwwwfile \
                    142:        libwwwdir \
                    143:        libwwwtrans \
                    144:        libwwwcore \
                    145:        libwwwutils \
1.56      kahan     146:        libwwwftp \
1.73      kahan     147:        @MAKE_LIBWWW_RDF_PARSER@ \
1.70      kirschpi  148:        libwwwzip \
                    149:         @LIBDAV@
1.51      cvs       150: 
1.71      vatton    151: libwww_config :
1.51      cvs       152:        @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
                    153:              $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1       cvs       154:          fi)
1.45      cvs       155:        @(if [ ! -d $(LIBWWW) ] ; then \
1.51      cvs       156:                $(MKDIR) $(LIBWWW) ; \
1.45      cvs       157:           fi)
1.68      kirschpi  158: #MKP: adding --with-dav
1.58      kahan     159:        @(localdir=`pwd` ; libwwwdir="$$localdir/../../$(LIBWWW)" ; \
1.56      kahan     160:          cd $(LIBWWW) ; unset LANG; \
1.51      cvs       161:          if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.58      kahan     162:                $$libwwwdir/configure \
1.115     vatton    163:                        --build=@build_alias@ --host=@host_alias@ --target=@target_alias@ \
1.56      kahan     164:                        --disable-shared \
1.70      kirschpi  165:                        @WITHDAV@ \
1.83      vatton    166:                        --with-zlib; \
1.51      cvs       167:                $(ECHO) "libwww is configured" ; \
1.101     gully     168:                $(ECHO) "patching wwwconf.h because appkit.h do not compile on macos, and it seems that appkit.h is not used in amaya" ; \
                    169:                $(CP) wwwconf.h wwwconf.h.orig ; \
                    170:                $(SED) "s/\(\#define HAVE_APPKIT_APPKIT_H 1\)/\/* \1 *\//" \
                    171:                        wwwconf.h.orig > wwwconf.h ; \
                    172:                 $(ECHO) "wwwconf.h patched !" ; \
1.1       cvs       173:          fi)
1.51      cvs       174: 
                    175: libwww_make_module_md5 \
                    176: libmd5 : force
1.56      kahan     177:                @(localdir=`pwd`; \
                    178:                 cd $(LIBWWW)/modules/md5 ; \
1.60      kahan     179:                 $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.100     gully     180:                 CPPFLAGS="$(CPPFLAGS) $(THOTINCLUDES) $(EXTRA_INCLUDES)" \
1.56      kahan     181:                            libmd5.la)
1.51      cvs       182: 
                    183: libwww_install_module_md5 : force
                    184:                @(if [ -e libmd5.a -a ! -L libmd5.a ] ; then \
                    185:                        $(RM) libmd5.a ; \
                    186:                  fi ; \
                    187:                  if [ ! -L libmd5.a ] ; then \
                    188:                        $(LN_S) $(LIBWWW)/modules/md5/.libs/libmd5.a ./libmd5.a ; \
                    189:                  fi)
                    190: 
1.57      kahan     191: libwww_make_module_expat \
                    192: libexpat : force
                    193:                @(localdir=`pwd`; \
                    194:                  cd $(LIBWWW)/modules/expat/ ; \
1.66      cvs       195:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS) -DXML_AMAYA" \
1.57      kahan     196:                  CPPFLAGS="$(CPPFLAGS)" \
                    197:                            )
                    198: 
                    199: libwww_install_module_expat : force
1.86      kahan     200:                @(if [ -e libexpat.a -a ! -L libexpat.a ] ; then \
                    201:                        $(RM) libexpat.a ; \
1.57      kahan     202:                  fi ; \
1.86      kahan     203:                  if [ ! -L libexpat.a ] ; then \
                    204:                        $(LN_S) $(LIBWWW)/modules/expat/.libs/libexpat.a ./libexpat.a ; \
1.57      kahan     205:                  fi)
                    206: 
1.111     gully     207: #libwww_make_module_idn \
                    208: #libidn : force
                    209: #              @(localdir=`pwd`; \
                    210: #                cd $(LIBWWW)/modules/idn/ ; \
                    211: #                $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS) -DLIBWWW_USEIDN" \
                    212: #                CPPFLAGS="$(CPPFLAGS)" \
                    213: #                          )
                    214: 
                    215: #libwww_install_module_idn : force
                    216: #              @(if [ -e libidn.a -a ! -L libidn.a ] ; then \
                    217: #                      $(RM) libidn.a ; \
                    218: #                fi ; \
                    219: #                if [ ! -L libidn.a ] ; then \
                    220: #                      $(LN_S) $(LIBWWW)/modules/idn/.libs/libidn.a ./libidn.a ; \
                    221: #                fi)
1.57      kahan     222: 
1.51      cvs       223: libwww_make_standard_libs \
                    224: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56      kahan     225:                @(localdir=`pwd`; \
                    226:                  all_libs="" ; \
1.51      cvs       227:                  for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    228:                      all_libs="$$all_libs $$lib.la" ; \
                    229:                   done ; \
                    230:                  cd $(LIBWWW)/Library/src ; \
1.60      kahan     231:                  $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.100     gully     232:                  CPPFLAGS="$(CPPFLAGS) $(THOTINCLUDES) $(EXTRA_INCLUDES)" \
1.56      kahan     233:                             $$all_libs)
1.51      cvs       234: 
                    235: libwww_install_standard : force
                    236:                @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
                    237:                    if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
                    238:                        $(RM) $$lib.a ;  \
                    239:                    fi ; \
                    240:                    if [ ! -L $$lib.a ] ; then \
                    241:                        $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
                    242:                    fi ; \
                    243:                done)
                    244: 
1.111     gully     245: #libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat libwww_make_module_idn
1.57      kahan     246: libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat
1.51      cvs       247: libwww_make : libwww_make_module_libs libwww_make_standard_libs
1.111     gully     248: #libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat libwww_install_module_idn
1.57      kahan     249: libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat
1.51      cvs       250: libwww_install : libwww_install_modules libwww_install_standard 
                    251: 
                    252: libwww : libwww_config libwww_make
                    253:                @($(ECHO) "libwww is installed")
1.73      kahan     254: 
                    255: #
1.85      kahan     256: # Rules to build the redland RDF library
                    257: #
1.126     vatton    258: 
                    259: # Previous rule used to link and compile expat inside redland... to be removed
                    260: # after checking all is ok in all the platforms
                    261: # we're using the expat from inside libwww
                    262: # @(if test ! -e "$(THOTDIR)/../$(REDLAND)/expat"  ; then \
                    263: #   libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
                    264: #    echo $$libwwwdir ; \
                    265: #    $(LN_S) "$$libwwwdir/modules/expat" "$(THOTDIR)/../$(REDLAND)/expat" ; \
                    266: # fi)
                    267: 
                    268: # Because redland 0.9.14 forces the check on a glib-2.0 function, we remove the
                    269: # results of the configure to force its non use.
                    270: 
                    271: redland_config: @MAKEREDLAND@ force
                    272:        @(if test ! -e "$(THOTDIR)/../$(REDLAND)"  ; then \
                    273:              $(ECHO) "Error redland dir not found at $(THOTDIR)/$(REDLAND)" ; \
                    274:          fi)
                    275:         @(if test ! -d "$(REDLAND)"  ; then \
                    276:                $(MKDIR) $(REDLAND) ; \
                    277:           fi)
                    278:         @(localdir=`pwd` ; redlanddir="$$localdir/../../$(REDLAND)" ; \
                    279:          cd $(REDLAND) ; unset LANG; \
                    280:          if test ! -f Makefile -o ! -f  redland-src-config ; then \
                    281:                        CPPFLAGS="-I$$localdir/../../$(LIBWWW)/modules/expat/lib" \
                    282:                        LDFLAGS="-L$$localdir/libwww/modules/expat -L$$localdir/libwww/modules/expat/.libs" \
                    283:                        $$redlanddir/configure \
                    284:                        --build=@build_alias@ --host=@host_alias@ --target=@target_alias@ \
                    285:                        --disable-shared \
                    286:                        --disable-nfc-check \
                    287:                        --without-bdb \
                    288:                        --with-raptor=internal \
                    289:                        --with-xml-parser=expat \
                    290:                        --with-www=none \
                    291:                        --without-libwww \
                    292:                        --without-openssl-digests \
                    293:                        --without-mysql ;\
                    294:                $(ECHO) "redland is configured" ; \
                    295:          fi)
                    296: 
                    297: 
                    298: # the -DLIBRDF_INTERNAL=1 is needed if we're going to pass our own CFLAGS.
                    299: redland_make: @MAKEREDLAND@ force
                    300:        @(cd $(REDLAND) ; \
                    301:          $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -DLIBRDF_INTERNAL=1"; \
                    302:        )
                    303: 
                    304: redland: @MAKEREDLAND@ redland_config redland_make
1.85      kahan     305:        @($(ECHO) "redland is installed")
1.1       cvs       306: 
                    307: #
                    308: # This section try to maintain the Makefile(s) up-to-date in
                    309: # case the autoconf sources are modified.
                    310: #
                    311: 
                    312: MAKEFILE_IN= \
                    313: @EXTRA_MAKEFILE_IN@ \
1.6       cvs       314: $(THOTDIR)/Options.in \
                    315: $(THOTDIR)/configure.in \
                    316: $(THOTDIR)/Makefile.in \
1.102     gully     317: $(THOTDIR)/amaya/Makefile.in \
1.6       cvs       318: $(THOTDIR)/batch/Makefile.in \
                    319: $(THOTDIR)/thotlib/Makefile.in \
                    320: $(THOTDIR)/thotlib/include/Makefile.in \
                    321: $(THOTDIR)/tools/Makefile.in \
                    322: $(THOTDIR)/tools/mkdep/Makefile.in \
1.109     gully     323: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1       cvs       324: 
1.3       cvs       325: rebuild : tools/mkdep/mkdep Makefile
1.1       cvs       326: 
                    327: ${srcdir}/config.h.in: stamp-h.in
                    328: 
                    329: ${srcdir}/stamp-h.in: configure.in config.h.in
                    330:        cd ${srcdir} && autoheader
                    331:        echo timestamp > ${srcdir}/stamp-h.in
                    332: 
                    333: stamp.h: config.h.in config.status
                    334:        ./config.status
1.108     gully     335:        cd ./$(WX_BUILDDIR)/ && ./config.status && cd -
1.1       cvs       336: 
                    337: Makefile: $(MAKEFILE_IN) config.status
                    338:        ./config.status
1.108     gully     339:        cd ./$(WX_BUILDDIR)/ && ./config.status && cd -
1.1       cvs       340: 
                    341: config.status: configure
                    342:        ./config.status --recheck
1.108     gully     343:        cd ./$(WX_BUILDDIR)/ && ./config.status --recheck && cd -
1.1       cvs       344: 
1.76      cheyroul  345: tags:  dummy
                    346:        rm -f ../TAGS
                    347:        find ../ -name "*.[hc]" -print | xargs etags --declarations -a -o ../TAGS
                    348: 
                    349: dummy:
                    350: 
                    351: 

Webmaster