Annotation of Amaya/Makefile.in, revision 1.54
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.30 cvs 18: SUBDIRS = tools thotlib tablelib batch drawlib indexlib amaya thot misc/annotations
1.50 cvs 19: EXTRA_SUBDIRS= misc classes javalib pluginlib annotlib
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 ; \
45: $(MAKE) CC="$(CC)" CFLAGS="-O" ; 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.24 cvs 58:
59: annotations: rebuild force
60: @(if test -d misc/annotations ; then cd misc/annotations ; \
61: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" annotations ; fi)
62:
1.1 cvs 63:
1.23 cvs 64: html2piv: rebuild force
65: @(if test -d amaya ; then cd amaya ; \
66: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" html2piv ; fi)
67:
1.31 cvs 68: amaya_prog: rebuild force bin/str
1.1 cvs 69: @(if test -d amaya ; then cd amaya ; \
70: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
1.49 cvs 71:
72: print_prog: rebuild force bin/str
73: @(if test -d thotlib ; then cd thotlib ; \
74: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" print ; fi)
1.1 cvs 75:
1.5 cvs 76: misc: rebuild force
77: @(if test -d misc ; then cd misc ; \
78: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
79:
1.1 cvs 80: all : rebuild
81: @(for dir in $(SUBDIRS) ;\
82: do if test -d $$dir ; then cd $$dir ; \
83: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; \
84: cd .. ; fi ;done )
85:
86: clean : rebuild
1.5 cvs 87: @(for dir in $(SUBDIRS) $(EXTRA_SUBDIRS) ;\
1.1 cvs 88: do if test -d $$dir ; then cd $$dir ; \
89: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" clean ; \
90: cd .. ; fi ;done )
91:
92: install : rebuild
93: @(for dir in $(SUBDIRS) ;\
94: do if test -d $$dir ; then cd $$dir ; \
95: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
96: cd .. ; fi ;done )
1.8 cvs 97:
98: uninstall :
99: @(for dir in $(SUBDIRS) ;\
100: do if test -d $$dir ; then cd $$dir ; \
101: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" uninstall ; \
102: cd .. ; fi ;done )
1.1 cvs 103:
1.6 cvs 104: update :
105: @(cd $(THOTDIR) ; cvs update)
106:
107: commit :
108: @(cd $(THOTDIR) ; cvs commit)
109:
110: stubs:
1.21 cvs 111: @(cd javalib ; $(MAKE) stubs)
1.6 cvs 112:
113: classes: force
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 ; \
1.10 cvs 117: CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:$$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
1.11 cvs 118: cd $(THOTDIR)/classes ; $(MAKE) )
1.6 cvs 119:
120: zips: force
1.21 cvs 121: @(cd javalib ; $(MAKE) zips);
1.20 cvs 122:
123: # @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
124: # if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
125: # else CLASSES=$(THOTDIR)/classes ; fi ; \
126: # CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:\
127: # $$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
128: # cd $(THOTDIR)/classes ; $(MAKE) zips)
1.6 cvs 129:
1.3 cvs 130: tools/mkdep/mkdep :
1.23 cvs 131: @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="-O" mkdep)
1.3 cvs 132:
133: depend depends : rebuild tools/mkdep/mkdep
1.1 cvs 134: @(for dir in $(SUBDIRS) ;\
135: do if test -d $$dir ; then cd $$dir ; \
136: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" depend ; \
137: cd .. ; fi ;done )
138:
1.7 cvs 139: bin/cextract :
1.27 cvs 140: @(cd tools/cextract-$(CEXTRACT_VER) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" cextract)
1.7 cvs 141:
142: proto : rebuild bin/cextract
143: @(for dir in $(SUBDIRS) ;\
144: do if test -d $$dir ; then cd $$dir ; \
145: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" proto ; \
146: cd .. ; fi ;done )
1.11 cvs 147:
148: mkid :
149: @(echo rebuilding $(THOTDIR)/ID reference file)
1.26 cvs 150: @(cd $(THOTDIR); mkid --lang-map=makes/id-lang.map . classes/org/w3c/*)
1.7 cvs 151:
1.1 cvs 152: #
153: # Rule du rebuild the Thot schemas
154: #
155:
156: bin/str : force
157: @(cd batch ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" str prs tra printstr)
158:
159: schemas : rebuild bin/str
1.6 cvs 160: @(bindir=`pwd`/bin ; cd $(THOTDIR)/schemas ; \
1.1 cvs 161: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" THOTDIR=".." THOTSCH="../schemas:../schemasOPERA" \
162: COMPSCH="." COMPSTR="$$bindir/str" COMPPRS="$$bindir/prs" \
163: COMPTRA="$$bindir/tra" PRINTSTR="$$bindir/printstr" all)
164:
165: #
166: # Rules to rebuild the libWWW package
167: #
1.51 cvs 168:
169: AMAYA_LIBWWW_STANDARD_LIBS = \
170: libwwwapp \
171: libwwwhttp \
172: libwwwhtml \
173: libwwwmime \
174: libwwwcache \
175: libwwwstream \
176: libwwwfile \
177: libwwwdir \
178: libwwwtrans \
179: libwwwcore \
180: libwwwutils \
181: libwwwzip
182:
183: libwww_config : force
184: @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
185: $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1 cvs 186: fi)
1.45 cvs 187: @(if [ ! -d $(LIBWWW) ] ; then \
1.51 cvs 188: $(MKDIR) $(LIBWWW) ; \
1.45 cvs 189: fi)
190: @(localdir=`pwd` ; libwwwdir="$(THOTDIR)/../$(LIBWWW)" ; \
191: cd $(LIBWWW) ; unset LANG; \
1.51 cvs 192: if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.45 cvs 193: ../$$libwwwdir/configure --disable-shared \
1.48 cvs 194: --without-expat -with-zlib="$$localdir/libz.a"; \
1.51 cvs 195: $(ECHO) "libwww is configured" ; \
1.1 cvs 196: fi)
1.51 cvs 197:
198: libwww_make_module_md5 \
199: libmd5 : force
200: @(cd $(LIBWWW)/modules/md5 ; \
201: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \
202: libmd5.la)
203:
204: libwww_install_module_md5 : force
205: @(if [ -e libmd5.a -a ! -L libmd5.a ] ; then \
206: $(RM) libmd5.a ; \
207: fi ; \
208: if [ ! -L libmd5.a ] ; then \
209: $(LN_S) $(LIBWWW)/modules/md5/.libs/libmd5.a ./libmd5.a ; \
210: fi)
211:
212: libwww_make_standard_libs \
213: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
214: @(all_libs="" ; \
215: for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
216: all_libs="$$all_libs $$lib.la" ; \
217: done ; \
218: cd $(LIBWWW)/Library/src ; \
219: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \
220: -I$(THOTDIR)/libpng/zlib $$all_libs)
221:
222: libwww_install_standard : force
223: @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
224: if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
225: $(RM) $$lib.a ; \
226: fi ; \
227: if [ ! -L $$lib.a ] ; then \
228: $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
229: fi ; \
230: done)
231:
232: libwww_make_module_libs : libwww_make_module_md5
233: libwww_make : libwww_make_module_libs libwww_make_standard_libs
234: libwww_install_modules : libwww_install_module_md5
235: libwww_install : libwww_install_modules libwww_install_standard
236:
237: libwww : libwww_config libwww_make
238: @($(ECHO) "libwww is installed")
1.1 cvs 239:
240: #
241: # Rules to rebuild the libjpeg package
242: #
243:
244: libjpeg libjpeg.a : force
1.6 cvs 245: @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23 cvs 246: @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 247:
248: #
249: # Rules to rebuild the libpng package
250: #
251:
252: libpng libpng.a : force
1.6 cvs 253: @($(RM) $(THOTDIR)/libpng/*.o)
1.23 cvs 254: @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 255:
256: #
257: # Rules to rebuild the libpng package
258: #
259:
260: libz libz.a : force
1.6 cvs 261: @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53 cvs 262: @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 263:
264: #
265: # Rules to rebuild the Kaffe package
266: #
267:
268: kaffe_get :
1.6 cvs 269: @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1 cvs 270: then \
1.35 cvs 271: if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33 cvs 272: then \
273: cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
274: else \
275: cd $(THOTDIR) ; cvs get $(KAFFE) ; \
276: fi \
1.1 cvs 277: fi)
1.6 cvs 278: @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1 cvs 279: then \
1.6 cvs 280: cd $(THOTDIR) ; cvs get classes ; \
1.1 cvs 281: fi)
1.6 cvs 282: @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1 cvs 283: then \
1.6 cvs 284: cd $(THOTDIR) ; cvs get javalib ; \
1.1 cvs 285: fi)
286: @(if [ ! -d $(KAFFE) ] ; \
287: then \
288: mkdir $(KAFFE) ; \
289: fi)
290:
291: kaffe_clean :
292: @($(RM) -f libkaffe*)
293:
294: kaffe_config :
1.6 cvs 295: @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17 cvs 296: unset LANG; unset CC; unset CFLAGS; \
297: if [ -x $$kaffedir/configure ] ; then \
1.1 cvs 298: $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32 cvs 299: --bindir=$$localdir/bin --with-staticlib \
300: --with-threads=unix-internal \
1.12 cvs 301: @KAFFE_ENGINE@ ; \
1.3 cvs 302: else \
1.1 cvs 303: ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32 cvs 304: --bindir=$$localdir/bin --with-staticlib \
305: --with-threads=unix-internal \
1.12 cvs 306: @KAFFE_ENGINE@ ; \
1.1 cvs 307: fi)
308:
309: kaffe_make :
1.17 cvs 310: @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1 cvs 311:
312: kaffe_install:
1.15 cvs 313: @(cd $(KAFFE) ; $(MAKE) install)
1.6 cvs 314: @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1 cvs 315: then \
1.6 cvs 316: $(MKDIR) $(THOTDIR)/classes ; \
1.1 cvs 317: fi)
1.6 cvs 318: @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1 cvs 319: then \
1.6 cvs 320: $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1 cvs 321: fi)
1.6 cvs 322: @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1 cvs 323: @$(ECHO) Cleaning temp $(KAFFE) files
1.32 cvs 324: @($(RM) -r man )
1.1 cvs 325:
1.22 cvs 326: # @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
327: # @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
328:
1.1 cvs 329: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
330: @(echo $(KAFFE) reinstalled)
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 \
342: $(THOTDIR)/libjpeg/Makefile.in \
343: $(THOTDIR)/batch/Makefile.in \
344: $(THOTDIR)/libjpeg/Makefile.in \
345: $(THOTDIR)/libpng/Makefile.in \
346: $(THOTDIR)/libpng/zlib/Makefile.in \
347: $(THOTDIR)/tablelib/Makefile.in \
348: $(THOTDIR)/thotlib/Makefile.in \
349: $(THOTDIR)/thotlib/include/Makefile.in \
350: $(THOTDIR)/tools/Makefile.in \
351: $(THOTDIR)/tools/mkdep/Makefile.in \
352: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1 cvs 353:
1.3 cvs 354: rebuild : tools/mkdep/mkdep Makefile
1.1 cvs 355:
356: ${srcdir}/config.h.in: stamp-h.in
357:
358: ${srcdir}/stamp-h.in: configure.in config.h.in
359: cd ${srcdir} && autoheader
360: echo timestamp > ${srcdir}/stamp-h.in
361:
362: stamp.h: config.h.in config.status
363: ./config.status
364:
365: Makefile: $(MAKEFILE_IN) config.status
366: ./config.status
367:
368: config.status: configure
369: ./config.status --recheck
370:
Webmaster