Annotation of Amaya/Makefile.in, revision 1.121
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
1.85 kahan 15: REDLAND = redland
1.1 cvs 16:
1.68 kirschpi 17: #MKP: adding davlib
1.99 vatton 18: SUBDIRS = @SUBDIRS@ tools thotlib batch drawlib indexlib annotlib amaya thot @DAVDIR@
1.118 vatton 19: EXTRA_SUBDIRS= misc $(REDLAND) $(LIBWWW) $(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.116 vatton 28: default : tools gl @BUILDWXWIDGETS@ thotlib batch amaya_prog print_prog
1.31 cvs 29:
1.116 vatton 30: amaya : amaya_prog tools thotlib 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)" ; \
61: $(MAKE) linux-static ; fi)
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:
1.5 cvs 67: misc: rebuild force
68: @(if test -d misc ; then cd misc ; \
1.98 gully 69: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" all ; fi)
1.5 cvs 70:
1.1 cvs 71: all : rebuild
72: @(for dir in $(SUBDIRS) ;\
73: do if test -d $$dir ; then cd $$dir ; \
1.98 gully 74: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" all ; \
1.1 cvs 75: cd .. ; fi ;done )
76:
77: clean : rebuild
1.83 vatton 78: $(RM) libpng.a libz.a libjpeg.a
1.5 cvs 79: @(for dir in $(SUBDIRS) $(EXTRA_SUBDIRS) ;\
1.1 cvs 80: do if test -d $$dir ; then cd $$dir ; \
1.98 gully 81: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" clean ; \
1.1 cvs 82: cd .. ; fi ;done )
83:
1.92 vatton 84: reallyclean : clean
85: $(RM) config.cache config.h config.log config.status
86:
1.82 cheyroul 87: tempclean :
88: find ../ -name '.#*' -print0 | xargs -0r rm -f
89: find ../ -name \*~ -exec rm {} \;
90: find ../ \( -name '*~' -o -name '#*#' \) -print0 | xargs --no-run-if-empty --null rm -vf
91:
1.1 cvs 92: install : rebuild
93: @(for dir in $(SUBDIRS) ;\
94: do if test -d $$dir ; then cd $$dir ; \
1.98 gully 95: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" install ; \
1.1 cvs 96: cd .. ; fi ;done )
1.8 cvs 97:
98: uninstall :
99: @(for dir in $(SUBDIRS) ;\
100: do if test -d $$dir ; then cd $$dir ; \
1.98 gully 101: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" uninstall ; \
1.8 cvs 102: cd .. ; fi ;done )
1.1 cvs 103:
1.6 cvs 104: update :
1.72 kahan 105: @(cd $(THOTDIR) ; cvs update -dP)
1.62 cvs 106: @(if [ -d $(THOTDIR)/../$(LIBWWW) ] ; then \
1.72 kahan 107: cd $(THOTDIR)/../$(LIBWWW) ; cvs update -dP; fi)
1.6 cvs 108:
109: commit :
110: @(cd $(THOTDIR) ; cvs commit)
111:
112: stubs:
1.21 cvs 113: @(cd javalib ; $(MAKE) stubs)
1.6 cvs 114:
115: classes: force
116: @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
117: if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
118: else CLASSES=$(THOTDIR)/classes ; fi ; \
1.10 cvs 119: CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:$$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
1.11 cvs 120: cd $(THOTDIR)/classes ; $(MAKE) )
1.6 cvs 121:
122: zips: force
1.21 cvs 123: @(cd javalib ; $(MAKE) zips);
1.20 cvs 124:
125: # @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
126: # if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
127: # else CLASSES=$(THOTDIR)/classes ; fi ; \
128: # CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:\
129: # $$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
130: # cd $(THOTDIR)/classes ; $(MAKE) zips)
1.6 cvs 131:
1.3 cvs 132: tools/mkdep/mkdep :
1.98 gully 133: @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="-O -x c" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" mkdep)
1.3 cvs 134:
135: depend depends : rebuild tools/mkdep/mkdep
1.1 cvs 136: @(for dir in $(SUBDIRS) ;\
137: do if test -d $$dir ; then cd $$dir ; \
1.98 gully 138: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" depend ; \
1.1 cvs 139: cd .. ; fi ;done )
140:
1.7 cvs 141: bin/cextract :
1.98 gully 142: @(cd tools/cextract-$(CEXTRACT_VER) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" cextract)
1.7 cvs 143:
144: proto : rebuild bin/cextract
145: @(for dir in $(SUBDIRS) ;\
146: do if test -d $$dir ; then cd $$dir ; \
1.98 gully 147: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" proto ; \
1.7 cvs 148: cd .. ; fi ;done )
1.11 cvs 149:
150: mkid :
151: @(echo rebuilding $(THOTDIR)/ID reference file)
1.26 cvs 152: @(cd $(THOTDIR); mkid --lang-map=makes/id-lang.map . classes/org/w3c/*)
1.7 cvs 153:
1.1 cvs 154: #
155: # Rule du rebuild the Thot schemas
156: #
157:
158: bin/str : force
1.98 gully 159: @(cd batch ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" str prs tra printstr)
1.1 cvs 160:
161: schemas : rebuild bin/str
1.6 cvs 162: @(bindir=`pwd`/bin ; cd $(THOTDIR)/schemas ; \
1.98 gully 163: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" THOTDIR=".." THOTSCH="../schemas:../schemasOPERA" \
1.1 cvs 164: COMPSCH="." COMPSTR="$$bindir/str" COMPPRS="$$bindir/prs" \
165: COMPTRA="$$bindir/tra" PRINTSTR="$$bindir/printstr" all)
166:
167: #
168: # Rules to rebuild the libWWW package
169: #
1.51 cvs 170:
1.68 kirschpi 171: # MKP: adding libwwwdav
1.51 cvs 172: AMAYA_LIBWWW_STANDARD_LIBS = \
173: libwwwapp \
174: libwwwhttp \
175: libwwwhtml \
176: libwwwmime \
177: libwwwcache \
178: libwwwstream \
179: libwwwfile \
180: libwwwdir \
181: libwwwtrans \
182: libwwwcore \
183: libwwwutils \
1.56 kahan 184: libwwwftp \
1.73 kahan 185: @MAKE_LIBWWW_RDF_PARSER@ \
1.70 kirschpi 186: libwwwzip \
187: @LIBDAV@
1.51 cvs 188:
1.71 vatton 189: libwww_config :
1.51 cvs 190: @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
191: $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1 cvs 192: fi)
1.45 cvs 193: @(if [ ! -d $(LIBWWW) ] ; then \
1.51 cvs 194: $(MKDIR) $(LIBWWW) ; \
1.45 cvs 195: fi)
1.68 kirschpi 196: #MKP: adding --with-dav
1.58 kahan 197: @(localdir=`pwd` ; libwwwdir="$$localdir/../../$(LIBWWW)" ; \
1.56 kahan 198: cd $(LIBWWW) ; unset LANG; \
1.51 cvs 199: if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.58 kahan 200: $$libwwwdir/configure \
1.115 vatton 201: --build=@build_alias@ --host=@host_alias@ --target=@target_alias@ \
1.56 kahan 202: --disable-shared \
1.70 kirschpi 203: @WITHDAV@ \
1.83 vatton 204: --with-zlib; \
1.51 cvs 205: $(ECHO) "libwww is configured" ; \
1.101 gully 206: $(ECHO) "patching wwwconf.h because appkit.h do not compile on macos, and it seems that appkit.h is not used in amaya" ; \
207: $(CP) wwwconf.h wwwconf.h.orig ; \
208: $(SED) "s/\(\#define HAVE_APPKIT_APPKIT_H 1\)/\/* \1 *\//" \
209: wwwconf.h.orig > wwwconf.h ; \
210: $(ECHO) "wwwconf.h patched !" ; \
1.1 cvs 211: fi)
1.51 cvs 212:
213: libwww_make_module_md5 \
214: libmd5 : force
1.56 kahan 215: @(localdir=`pwd`; \
216: cd $(LIBWWW)/modules/md5 ; \
1.60 kahan 217: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.100 gully 218: CPPFLAGS="$(CPPFLAGS) $(THOTINCLUDES) $(EXTRA_INCLUDES)" \
1.56 kahan 219: libmd5.la)
1.51 cvs 220:
221: libwww_install_module_md5 : force
222: @(if [ -e libmd5.a -a ! -L libmd5.a ] ; then \
223: $(RM) libmd5.a ; \
224: fi ; \
225: if [ ! -L libmd5.a ] ; then \
226: $(LN_S) $(LIBWWW)/modules/md5/.libs/libmd5.a ./libmd5.a ; \
227: fi)
228:
1.57 kahan 229: libwww_make_module_expat \
230: libexpat : force
231: @(localdir=`pwd`; \
232: cd $(LIBWWW)/modules/expat/ ; \
1.66 cvs 233: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS) -DXML_AMAYA" \
1.57 kahan 234: CPPFLAGS="$(CPPFLAGS)" \
235: )
236:
237: libwww_install_module_expat : force
1.86 kahan 238: @(if [ -e libexpat.a -a ! -L libexpat.a ] ; then \
239: $(RM) libexpat.a ; \
1.57 kahan 240: fi ; \
1.86 kahan 241: if [ ! -L libexpat.a ] ; then \
242: $(LN_S) $(LIBWWW)/modules/expat/.libs/libexpat.a ./libexpat.a ; \
1.57 kahan 243: fi)
244:
1.111 gully 245: #libwww_make_module_idn \
246: #libidn : force
247: # @(localdir=`pwd`; \
248: # cd $(LIBWWW)/modules/idn/ ; \
249: # $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS) -DLIBWWW_USEIDN" \
250: # CPPFLAGS="$(CPPFLAGS)" \
251: # )
252:
253: #libwww_install_module_idn : force
254: # @(if [ -e libidn.a -a ! -L libidn.a ] ; then \
255: # $(RM) libidn.a ; \
256: # fi ; \
257: # if [ ! -L libidn.a ] ; then \
258: # $(LN_S) $(LIBWWW)/modules/idn/.libs/libidn.a ./libidn.a ; \
259: # fi)
1.57 kahan 260:
1.51 cvs 261: libwww_make_standard_libs \
262: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56 kahan 263: @(localdir=`pwd`; \
264: all_libs="" ; \
1.51 cvs 265: for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
266: all_libs="$$all_libs $$lib.la" ; \
267: done ; \
268: cd $(LIBWWW)/Library/src ; \
1.60 kahan 269: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.100 gully 270: CPPFLAGS="$(CPPFLAGS) $(THOTINCLUDES) $(EXTRA_INCLUDES)" \
1.56 kahan 271: $$all_libs)
1.51 cvs 272:
273: libwww_install_standard : force
274: @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
275: if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
276: $(RM) $$lib.a ; \
277: fi ; \
278: if [ ! -L $$lib.a ] ; then \
279: $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
280: fi ; \
281: done)
282:
1.111 gully 283: #libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat libwww_make_module_idn
1.57 kahan 284: libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat
1.51 cvs 285: libwww_make : libwww_make_module_libs libwww_make_standard_libs
1.111 gully 286: #libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat libwww_install_module_idn
1.57 kahan 287: libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat
1.51 cvs 288: libwww_install : libwww_install_modules libwww_install_standard
289:
290: libwww : libwww_config libwww_make
291: @($(ECHO) "libwww is installed")
1.73 kahan 292:
293: #
1.85 kahan 294: # Rules to build the redland RDF library
295: #
296:
1.94 kahan 297: # Previous rule used to link and compile expat inside redland... to be removed
298: # after checking all is ok in all the platforms
299: # we're using the expat from inside libwww
300: # @(if test ! -e "$(THOTDIR)/../$(REDLAND)/expat" ; then \
301: # libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
302: # echo $$libwwwdir ; \
303: # $(LN_S) "$$libwwwdir/modules/expat" "$(THOTDIR)/../$(REDLAND)/expat" ; \
304: # fi)
305:
1.96 kahan 306: # Because redland 0.9.14 forces the check on a glib-2.0 function, we remove the
307: # results of the configure to force its non use.
308:
1.85 kahan 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)
313: @(if test ! -d "$(REDLAND)" ; then \
314: $(MKDIR) $(REDLAND) ; \
315: fi)
1.90 kahan 316: @(localdir=`pwd` ; redlanddir="$$localdir/../../$(REDLAND)" ; \
1.85 kahan 317: cd $(REDLAND) ; unset LANG; \
318: if test ! -f Makefile -o ! -f redland-src-config ; then \
1.93 kahan 319: CPPFLAGS="-I$$localdir/../../$(LIBWWW)/modules/expat/lib" \
320: LDFLAGS="-L$$localdir/libwww/modules/expat -L$$localdir/libwww/modules/expat/.libs" \
1.85 kahan 321: $$redlanddir/configure \
1.115 vatton 322: --build=@build_alias@ --host=@host_alias@ --target=@target_alias@ \
1.85 kahan 323: --disable-shared \
1.120 vatton 324: --disable-nfc-check \
1.85 kahan 325: --without-bdb \
1.114 vatton 326: --with-raptor=internal \
1.85 kahan 327: --with-xml-parser=expat \
1.88 kahan 328: --with-www=none \
1.89 kahan 329: --without-libwww \
1.91 cheyroul 330: --without-openssl-digests \
1.119 vatton 331: --without-mysql ;\
1.85 kahan 332: $(ECHO) "redland is configured" ; \
333: fi)
334:
335:
336: # the -DLIBRDF_INTERNAL=1 is needed if we're going to pass our own CFLAGS.
337: redland_make: @MAKEREDLAND@ force
338: @(cd $(REDLAND) ; \
339: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -DLIBRDF_INTERNAL=1"; \
340: )
341:
342: redland: @MAKEREDLAND@ redland_config redland_make
343: @($(ECHO) "redland is installed")
1.1 cvs 344:
345: #
346: # Rules to rebuild the libjpeg package
347: #
348:
349: libjpeg libjpeg.a : force
1.6 cvs 350: @($(RM) $(THOTDIR)/libjpeg/*.o)
1.97 gully 351: @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O -x c")
1.1 cvs 352:
353: #
354: # Rules to rebuild the libpng package
355: #
356:
357: libpng libpng.a : force
1.6 cvs 358: @($(RM) $(THOTDIR)/libpng/*.o)
1.97 gully 359: @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O -x c")
1.1 cvs 360:
361: #
362: # Rules to rebuild the libpng package
363: #
364:
365: libz libz.a : force
1.6 cvs 366: @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.97 gully 367: @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O -x c")
1.1 cvs 368:
369: #
370: # This section try to maintain the Makefile(s) up-to-date in
371: # case the autoconf sources are modified.
372: #
373:
374: MAKEFILE_IN= \
375: @EXTRA_MAKEFILE_IN@ \
1.6 cvs 376: $(THOTDIR)/Options.in \
377: $(THOTDIR)/configure.in \
378: $(THOTDIR)/Makefile.in \
1.102 gully 379: $(THOTDIR)/amaya/Makefile.in \
1.6 cvs 380: $(THOTDIR)/libjpeg/Makefile.in \
381: $(THOTDIR)/batch/Makefile.in \
382: $(THOTDIR)/libjpeg/Makefile.in \
383: $(THOTDIR)/libpng/Makefile.in \
384: $(THOTDIR)/libpng/zlib/Makefile.in \
385: $(THOTDIR)/thotlib/Makefile.in \
386: $(THOTDIR)/thotlib/include/Makefile.in \
387: $(THOTDIR)/tools/Makefile.in \
388: $(THOTDIR)/tools/mkdep/Makefile.in \
1.109 gully 389: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1 cvs 390:
1.3 cvs 391: rebuild : tools/mkdep/mkdep Makefile
1.1 cvs 392:
393: ${srcdir}/config.h.in: stamp-h.in
394:
395: ${srcdir}/stamp-h.in: configure.in config.h.in
396: cd ${srcdir} && autoheader
397: echo timestamp > ${srcdir}/stamp-h.in
398:
399: stamp.h: config.h.in config.status
400: ./config.status
1.108 gully 401: cd ./$(WX_BUILDDIR)/ && ./config.status && cd -
1.1 cvs 402:
403: Makefile: $(MAKEFILE_IN) config.status
404: ./config.status
1.108 gully 405: cd ./$(WX_BUILDDIR)/ && ./config.status && cd -
1.1 cvs 406:
407: config.status: configure
408: ./config.status --recheck
1.108 gully 409: cd ./$(WX_BUILDDIR)/ && ./config.status --recheck && cd -
1.1 cvs 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