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