Annotation of Amaya/Makefile.in, revision 1.69
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@
9:
1.4 cvs 10: include Options
1.1 cvs 11:
1.29 cvs 12: LIBWWW = libwww
1.4 cvs 13: KAFFE = kaffe-$(KAFFE_VER)
1.1 cvs 14: LIBJPEG = libjpeg
15: LIBPNG = libpng
16: LIBZ = libz
17:
1.68 kirschpi 18: #MKP: adding davlib
19: SUBDIRS = tools thotlib tablelib batch drawlib indexlib annotlib amaya thot davlib
1.61 kahan 20: EXTRA_SUBDIRS= misc pluginlib
1.1 cvs 21:
1.8 cvs 22: prefix = @prefix@
23: exec_prefix = @exec_prefix@
24: libdir = @libdir@
25: bindir = @bindir@
26:
1.6 cvs 27: srcdir = $(THOTDIR)
1.1 cvs 28:
29: @SET_MAKE@
30:
1.67 cheyroul 31:
32: ifeq ($(GL_INCLUDES), )
1.65 cvs 33: default : tools thotlib tablelib batch amaya_prog print_prog
1.67 cheyroul 34: else
35: default : tools thotlib tablelib batch amaya_prog
36: endif
1.31 cvs 37:
38: amaya : tools thotlib tablelib amaya_prog
1.1 cvs 39:
1.49 cvs 40: print : tools thotlib tablelib print_prog
41:
1.4 cvs 42: Options:
43: @CP@ Options.orig Options
44:
1.1 cvs 45: force :
1.30 cvs 46:
47: batch: rebuild force
48: @(if test -d batch ; then cd batch ; \
1.55 cvs 49: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" ; fi)
1.9 cvs 50:
51: tools: rebuild force
52: @(if test -d tools ; then cd tools ; \
1.23 cvs 53: $(MAKE) CC="$(CC)" CFLAGS="-O" all ; fi)
1.9 cvs 54:
55: thotlib: rebuild force
56: @(if test -d thotlib ; then cd thotlib ; \
57: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
1.23 cvs 58:
1.31 cvs 59: amaya_prog: rebuild force bin/str
1.1 cvs 60: @(if test -d amaya ; then cd amaya ; \
61: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
1.49 cvs 62:
63: print_prog: rebuild force bin/str
64: @(if test -d thotlib ; then cd thotlib ; \
65: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" print ; fi)
1.1 cvs 66:
1.5 cvs 67: misc: rebuild force
68: @(if test -d misc ; then cd misc ; \
69: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
70:
1.1 cvs 71: all : rebuild
72: @(for dir in $(SUBDIRS) ;\
73: do if test -d $$dir ; then cd $$dir ; \
74: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; \
75: cd .. ; fi ;done )
76:
77: clean : rebuild
1.5 cvs 78: @(for dir in $(SUBDIRS) $(EXTRA_SUBDIRS) ;\
1.1 cvs 79: do if test -d $$dir ; then cd $$dir ; \
80: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" clean ; \
81: cd .. ; fi ;done )
82:
83: install : rebuild
84: @(for dir in $(SUBDIRS) ;\
85: do if test -d $$dir ; then cd $$dir ; \
86: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
87: cd .. ; fi ;done )
1.8 cvs 88:
89: uninstall :
90: @(for dir in $(SUBDIRS) ;\
91: do if test -d $$dir ; then cd $$dir ; \
92: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" uninstall ; \
93: cd .. ; fi ;done )
1.1 cvs 94:
1.6 cvs 95: update :
96: @(cd $(THOTDIR) ; cvs update)
1.62 cvs 97: @(if [ -d $(THOTDIR)/../$(LIBWWW) ] ; then \
1.63 cvs 98: cd $(THOTDIR)/../$(LIBWWW) ; cvs update ; fi)
1.6 cvs 99:
100: commit :
101: @(cd $(THOTDIR) ; cvs commit)
102:
103: stubs:
1.21 cvs 104: @(cd javalib ; $(MAKE) stubs)
1.6 cvs 105:
106: classes: force
107: @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
108: if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
109: else CLASSES=$(THOTDIR)/classes ; fi ; \
1.10 cvs 110: CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:$$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
1.11 cvs 111: cd $(THOTDIR)/classes ; $(MAKE) )
1.6 cvs 112:
113: zips: force
1.21 cvs 114: @(cd javalib ; $(MAKE) zips);
1.20 cvs 115:
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 ; \
119: # CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:\
120: # $$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
121: # cd $(THOTDIR)/classes ; $(MAKE) zips)
1.6 cvs 122:
1.3 cvs 123: tools/mkdep/mkdep :
1.23 cvs 124: @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="-O" mkdep)
1.3 cvs 125:
126: depend depends : rebuild tools/mkdep/mkdep
1.1 cvs 127: @(for dir in $(SUBDIRS) ;\
128: do if test -d $$dir ; then cd $$dir ; \
129: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" depend ; \
130: cd .. ; fi ;done )
131:
1.7 cvs 132: bin/cextract :
1.27 cvs 133: @(cd tools/cextract-$(CEXTRACT_VER) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" cextract)
1.7 cvs 134:
135: proto : rebuild bin/cextract
136: @(for dir in $(SUBDIRS) ;\
137: do if test -d $$dir ; then cd $$dir ; \
138: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" proto ; \
139: cd .. ; fi ;done )
1.11 cvs 140:
141: mkid :
142: @(echo rebuilding $(THOTDIR)/ID reference file)
1.26 cvs 143: @(cd $(THOTDIR); mkid --lang-map=makes/id-lang.map . classes/org/w3c/*)
1.7 cvs 144:
1.1 cvs 145: #
146: # Rule du rebuild the Thot schemas
147: #
148:
149: bin/str : force
150: @(cd batch ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" str prs tra printstr)
151:
152: schemas : rebuild bin/str
1.6 cvs 153: @(bindir=`pwd`/bin ; cd $(THOTDIR)/schemas ; \
1.1 cvs 154: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" THOTDIR=".." THOTSCH="../schemas:../schemasOPERA" \
155: COMPSCH="." COMPSTR="$$bindir/str" COMPPRS="$$bindir/prs" \
156: COMPTRA="$$bindir/tra" PRINTSTR="$$bindir/printstr" all)
157:
158: #
159: # Rules to rebuild the libWWW package
160: #
1.51 cvs 161:
1.68 kirschpi 162: # MKP: adding libwwwdav
1.51 cvs 163: AMAYA_LIBWWW_STANDARD_LIBS = \
164: libwwwapp \
165: libwwwhttp \
166: libwwwhtml \
167: libwwwmime \
168: libwwwcache \
169: libwwwstream \
170: libwwwfile \
171: libwwwdir \
172: libwwwtrans \
173: libwwwcore \
174: libwwwutils \
1.56 kahan 175: libwwwftp \
1.57 kahan 176: libwwwxml \
1.51 cvs 177: libwwwzip
178:
179: libwww_config : force
180: @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
181: $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1 cvs 182: fi)
1.45 cvs 183: @(if [ ! -d $(LIBWWW) ] ; then \
1.51 cvs 184: $(MKDIR) $(LIBWWW) ; \
1.45 cvs 185: fi)
1.68 kirschpi 186: #MKP: adding --with-dav
1.58 kahan 187: @(localdir=`pwd` ; libwwwdir="$$localdir/../../$(LIBWWW)" ; \
1.56 kahan 188: cd $(LIBWWW) ; unset LANG; \
1.51 cvs 189: if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.58 kahan 190: $$libwwwdir/configure \
1.68 kirschpi 191: --with-dav \
1.56 kahan 192: --disable-shared \
193: --with-zlib="$$localdir/libz.a"; \
1.51 cvs 194: $(ECHO) "libwww is configured" ; \
1.1 cvs 195: fi)
1.51 cvs 196:
197: libwww_make_module_md5 \
198: libmd5 : force
1.56 kahan 199: @(localdir=`pwd`; \
200: zlibsrcdir="$$localdir/../libpng/zlib"; \
201: cd $(LIBWWW)/modules/md5 ; \
1.60 kahan 202: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.56 kahan 203: CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
204: libmd5.la)
1.51 cvs 205:
206: libwww_install_module_md5 : force
207: @(if [ -e libmd5.a -a ! -L libmd5.a ] ; then \
208: $(RM) libmd5.a ; \
209: fi ; \
210: if [ ! -L libmd5.a ] ; then \
211: $(LN_S) $(LIBWWW)/modules/md5/.libs/libmd5.a ./libmd5.a ; \
212: fi)
213:
1.57 kahan 214: libwww_make_module_expat \
215: libexpat : force
216: @(localdir=`pwd`; \
217: cd $(LIBWWW)/modules/expat/ ; \
1.66 cvs 218: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS) -DXML_AMAYA" \
1.57 kahan 219: CPPFLAGS="$(CPPFLAGS)" \
220: )
221:
222: libwww_install_module_expat : force
223: @(if [ -e libxmlparse.a -a ! -L libxmlparse.a ] ; then \
224: $(RM) libxmlparse.a ; \
225: fi ; \
226: if [ ! -L libxmlparse.a ] ; then \
227: $(LN_S) $(LIBWWW)/modules/expat/xmlparse/.libs/libxmlparse.a ./libxmlparse.a ; \
228: fi)
229: @(if [ -e libxmltok.a -a ! -L libxmltok.a ] ; then \
230: $(RM) libxmltok.a ; \
231: fi ; \
232: if [ ! -L libxmltok.a ] ; then \
233: $(LN_S) $(LIBWWW)/modules/expat/xmltok/.libs/libxmltok.a ./libxmltok.a ; \
234: fi)
235:
236:
1.51 cvs 237: libwww_make_standard_libs \
238: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56 kahan 239: @(localdir=`pwd`; \
240: zlibsrcdir="$$localdir/../libpng/zlib"; \
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.56 kahan 247: CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
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.1 cvs 267:
268: #
269: # Rules to rebuild the libjpeg package
270: #
271:
272: libjpeg libjpeg.a : force
1.6 cvs 273: @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23 cvs 274: @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 275:
276: #
277: # Rules to rebuild the libpng package
278: #
279:
280: libpng libpng.a : force
1.6 cvs 281: @($(RM) $(THOTDIR)/libpng/*.o)
1.23 cvs 282: @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 283:
284: #
285: # Rules to rebuild the libpng package
286: #
287:
288: libz libz.a : force
1.6 cvs 289: @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53 cvs 290: @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 291:
292: #
293: # Rules to rebuild the Kaffe package
294: #
295:
296: kaffe_get :
1.6 cvs 297: @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1 cvs 298: then \
1.35 cvs 299: if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33 cvs 300: then \
301: cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
302: else \
303: cd $(THOTDIR) ; cvs get $(KAFFE) ; \
304: fi \
1.1 cvs 305: fi)
1.6 cvs 306: @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1 cvs 307: then \
1.6 cvs 308: cd $(THOTDIR) ; cvs get classes ; \
1.1 cvs 309: fi)
1.6 cvs 310: @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1 cvs 311: then \
1.6 cvs 312: cd $(THOTDIR) ; cvs get javalib ; \
1.1 cvs 313: fi)
314: @(if [ ! -d $(KAFFE) ] ; \
315: then \
316: mkdir $(KAFFE) ; \
317: fi)
318:
319: kaffe_clean :
320: @($(RM) -f libkaffe*)
321:
322: kaffe_config :
1.6 cvs 323: @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17 cvs 324: unset LANG; unset CC; unset CFLAGS; \
325: if [ -x $$kaffedir/configure ] ; then \
1.1 cvs 326: $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32 cvs 327: --bindir=$$localdir/bin --with-staticlib \
328: --with-threads=unix-internal \
1.12 cvs 329: @KAFFE_ENGINE@ ; \
1.3 cvs 330: else \
1.1 cvs 331: ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32 cvs 332: --bindir=$$localdir/bin --with-staticlib \
333: --with-threads=unix-internal \
1.12 cvs 334: @KAFFE_ENGINE@ ; \
1.1 cvs 335: fi)
336:
337: kaffe_make :
1.17 cvs 338: @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1 cvs 339:
340: kaffe_install:
1.15 cvs 341: @(cd $(KAFFE) ; $(MAKE) install)
1.6 cvs 342: @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1 cvs 343: then \
1.6 cvs 344: $(MKDIR) $(THOTDIR)/classes ; \
1.1 cvs 345: fi)
1.6 cvs 346: @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1 cvs 347: then \
1.6 cvs 348: $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1 cvs 349: fi)
1.6 cvs 350: @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1 cvs 351: @$(ECHO) Cleaning temp $(KAFFE) files
1.32 cvs 352: @($(RM) -r man )
1.1 cvs 353:
1.22 cvs 354: # @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
355: # @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
356:
1.1 cvs 357: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
358: @(echo $(KAFFE) reinstalled)
359:
360: #
361: # This section try to maintain the Makefile(s) up-to-date in
362: # case the autoconf sources are modified.
363: #
364:
365: MAKEFILE_IN= \
366: @EXTRA_MAKEFILE_IN@ \
1.6 cvs 367: $(THOTDIR)/Options.in \
368: $(THOTDIR)/configure.in \
369: $(THOTDIR)/Makefile.in \
370: $(THOTDIR)/libjpeg/Makefile.in \
371: $(THOTDIR)/batch/Makefile.in \
372: $(THOTDIR)/libjpeg/Makefile.in \
373: $(THOTDIR)/libpng/Makefile.in \
374: $(THOTDIR)/libpng/zlib/Makefile.in \
375: $(THOTDIR)/tablelib/Makefile.in \
376: $(THOTDIR)/thotlib/Makefile.in \
377: $(THOTDIR)/thotlib/include/Makefile.in \
378: $(THOTDIR)/tools/Makefile.in \
379: $(THOTDIR)/tools/mkdep/Makefile.in \
380: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1 cvs 381:
1.3 cvs 382: rebuild : tools/mkdep/mkdep Makefile
1.1 cvs 383:
384: ${srcdir}/config.h.in: stamp-h.in
385:
386: ${srcdir}/stamp-h.in: configure.in config.h.in
387: cd ${srcdir} && autoheader
388: echo timestamp > ${srcdir}/stamp-h.in
389:
390: stamp.h: config.h.in config.status
391: ./config.status
392:
393: Makefile: $(MAKEFILE_IN) config.status
394: ./config.status
395:
396: config.status: configure
397: ./config.status --recheck
398:
Webmaster