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