Annotation of Amaya/Makefile.in, revision 1.91
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.87 cheyroul 36: @NOPRINT@print : tools thotlib tablelib print_prog
1.49 cvs 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:
1.87 cheyroul 59: @NOPRINT@print_prog: rebuild force bin/str
60: @NOPRINT@ @(if test -d thotlib ; then cd thotlib ; \
61: @NOPRINT@ $(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
1.86 kahan 225: @(if [ -e libexpat.a -a ! -L libexpat.a ] ; then \
226: $(RM) libexpat.a ; \
1.57 kahan 227: fi ; \
1.86 kahan 228: if [ ! -L libexpat.a ] ; then \
229: $(LN_S) $(LIBWWW)/modules/expat/.libs/libexpat.a ./libexpat.a ; \
1.57 kahan 230: fi)
231:
232:
1.51 cvs 233: libwww_make_standard_libs \
234: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56 kahan 235: @(localdir=`pwd`; \
236: all_libs="" ; \
1.51 cvs 237: for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
238: all_libs="$$all_libs $$lib.la" ; \
239: done ; \
240: cd $(LIBWWW)/Library/src ; \
1.60 kahan 241: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.84 kahan 242: CPPFLAGS="$(CPPFLAGS) $(THOTINCLUDES)" \
1.56 kahan 243: $$all_libs)
1.51 cvs 244:
245: libwww_install_standard : force
246: @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
247: if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
248: $(RM) $$lib.a ; \
249: fi ; \
250: if [ ! -L $$lib.a ] ; then \
251: $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
252: fi ; \
253: done)
254:
1.57 kahan 255: libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat
1.51 cvs 256: libwww_make : libwww_make_module_libs libwww_make_standard_libs
1.57 kahan 257: libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat
1.51 cvs 258: libwww_install : libwww_install_modules libwww_install_standard
259:
260: libwww : libwww_config libwww_make
261: @($(ECHO) "libwww is installed")
1.73 kahan 262:
263: #
264: # Rules to build the raptor RDF package
265: #
266:
267: libraptor_config: @MAKERAPTOR@ force
268: @(if [ ! -e "$(THOTDIR)/$(LIBRAPTOR)" ] ; then \
269: $(ECHO) "Error raptor dir not found at $(THOTDIR)/$(LIBRAPTOR)" ; \
270: fi)
271: @(if [ ! -e "$(THOTDIR)/$(LIBRAPTOR)/expat" ] ; then \
272: libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
273: echo $$libwwwdir ; \
274: $(LN_S) "$$libwwwdir/modules/expat" "$(THOTDIR)/$(LIBRAPTOR)/expat" ; \
275: fi)
276: @(if [ ! -d "$(LIBRAPTOR)" ] ; then \
277: $(MKDIR) $(LIBRAPTOR) ; \
278: fi)
279: @(localdir=`pwd` ; raptordir="$$localdir/../$(LIBRAPTOR)" ; \
280: cd $(LIBRAPTOR) ; unset LANG; \
281: if [ ! -f Makefile -o ! -f config.h ] ; then \
1.86 kahan 282: CFLAGS="-I$$raptordir/expat/lib" \
1.74 kahan 283: $$raptordir/configure \
284: --without-shared \
1.73 kahan 285: --with-expat ; \
286: $(ECHO) "libraptor is configured" ; \
287: fi)
288:
289: libraptor_make: @MAKERAPTOR@ force
290: @(localdir=`pwd`; \
291: cd $(LIBRAPTOR) ; \
1.75 kahan 292: if [ ! -e .libs/libraptor.a -a -e libraptor.la ] ; then \
293: $(RM) libraptor.la ; \
294: fi ; \
1.86 kahan 295: $(MAKE) CC="$(CC)" CFLAGS="-I$$localdir/../$(LIBRAPTOR)/expat/lib $(CFLAGS)" \
1.73 kahan 296: CPPFLAGS="$(CPPFLAGS)" \
297: )
298:
299: libraptor: @MAKERAPTOR@ libraptor_config libraptor_make
300: @($(ECHO) "libraptor is installed")
1.85 kahan 301:
302: #
303: # Rules to build the redland RDF library
304: #
305:
306: redland_config: @MAKEREDLAND@ force
1.90 kahan 307: @(if test ! -e "$(THOTDIR)/../$(REDLAND)" ; then \
1.85 kahan 308: $(ECHO) "Error redland dir not found at $(THOTDIR)/$(REDLAND)" ; \
309: fi)
1.90 kahan 310: @(if test ! -e "$(THOTDIR)/../$(REDLAND)/expat" ; then \
1.85 kahan 311: libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
312: echo $$libwwwdir ; \
1.90 kahan 313: $(LN_S) "$$libwwwdir/modules/expat" "$(THOTDIR)/../$(REDLAND)/expat" ; \
1.85 kahan 314: fi)
315: @(if test ! -d "$(REDLAND)" ; then \
316: $(MKDIR) $(REDLAND) ; \
317: fi)
1.90 kahan 318: @(localdir=`pwd` ; redlanddir="$$localdir/../../$(REDLAND)" ; \
1.85 kahan 319: cd $(REDLAND) ; unset LANG; \
1.90 kahan 320: $(ECHO) "I'm at $$localdir" ; \
1.85 kahan 321: if test ! -f Makefile -o ! -f redland-src-config ; then \
322: $$redlanddir/configure \
323: --disable-shared \
324: --without-bdb \
325: --enable-parsers=raptor \
326: --with-xml-parser=expat \
1.88 kahan 327: --with-www=none \
1.89 kahan 328: --without-libwww \
1.91 ! cheyroul 329: --without-openssl-digests \
1.85 kahan 330: --cache-file=$$localdir/config.cache; \
331: $(ECHO) "redland is configured" ; \
332: fi)
333:
334:
335: # the -DLIBRDF_INTERNAL=1 is needed if we're going to pass our own CFLAGS.
336: redland_make: @MAKEREDLAND@ force
337: @(cd $(REDLAND) ; \
338: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -DLIBRDF_INTERNAL=1"; \
339: )
340:
341: redland: @MAKEREDLAND@ redland_config redland_make
342: @($(ECHO) "redland is installed")
1.1 cvs 343:
344: #
345: # Rules to rebuild the libjpeg package
346: #
347:
348: libjpeg libjpeg.a : force
1.6 cvs 349: @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23 cvs 350: @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 351:
352: #
353: # Rules to rebuild the libpng package
354: #
355:
356: libpng libpng.a : force
1.6 cvs 357: @($(RM) $(THOTDIR)/libpng/*.o)
1.23 cvs 358: @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 359:
360: #
361: # Rules to rebuild the libpng package
362: #
363:
364: libz libz.a : force
1.6 cvs 365: @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53 cvs 366: @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 367:
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 \
379: $(THOTDIR)/libjpeg/Makefile.in \
380: $(THOTDIR)/batch/Makefile.in \
381: $(THOTDIR)/libjpeg/Makefile.in \
382: $(THOTDIR)/libpng/Makefile.in \
383: $(THOTDIR)/libpng/zlib/Makefile.in \
384: $(THOTDIR)/tablelib/Makefile.in \
385: $(THOTDIR)/thotlib/Makefile.in \
386: $(THOTDIR)/thotlib/include/Makefile.in \
387: $(THOTDIR)/tools/Makefile.in \
388: $(THOTDIR)/tools/mkdep/Makefile.in \
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
401:
402: Makefile: $(MAKEFILE_IN) config.status
403: ./config.status
404:
405: config.status: configure
406: ./config.status --recheck
407:
1.76 cheyroul 408: tags: dummy
409: rm -f ../TAGS
410: find ../ -name "*.[hc]" -print | xargs etags --declarations -a -o ../TAGS
411:
412: dummy:
413:
414:
Webmaster