Annotation of Amaya/Makefile.in, revision 1.53
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
1.52 cvs 214: @(if [ ! -e libz.a ] ; then \
215: $(MAKE) libz ; \
216: fi)
1.51 cvs 217: @(all_libs="" ; \
218: for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
219: all_libs="$$all_libs $$lib.la" ; \
220: done ; \
221: cd $(LIBWWW)/Library/src ; \
222: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \
223: -I$(THOTDIR)/libpng/zlib $$all_libs)
224:
225: libwww_install_standard : force
226: @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
227: if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
228: $(RM) $$lib.a ; \
229: fi ; \
230: if [ ! -L $$lib.a ] ; then \
231: $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
232: fi ; \
233: done)
234:
235: libwww_make_module_libs : libwww_make_module_md5
236: libwww_make : libwww_make_module_libs libwww_make_standard_libs
237: libwww_install_modules : libwww_install_module_md5
238: libwww_install : libwww_install_modules libwww_install_standard
239:
240: libwww : libwww_config libwww_make
241: @($(ECHO) "libwww is installed")
1.1 cvs 242:
243: #
244: # Rules to rebuild the libjpeg package
245: #
246:
247: libjpeg libjpeg.a : force
1.6 cvs 248: @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23 cvs 249: @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 250:
251: #
252: # Rules to rebuild the libpng package
253: #
254:
255: libpng libpng.a : force
1.6 cvs 256: @($(RM) $(THOTDIR)/libpng/*.o)
1.23 cvs 257: @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 258:
259: #
260: # Rules to rebuild the libpng package
261: #
262:
263: libz libz.a : force
1.6 cvs 264: @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53 ! cvs 265: @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 266:
267: #
268: # Rules to rebuild the Kaffe package
269: #
270:
271: kaffe_get :
1.6 cvs 272: @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1 cvs 273: then \
1.35 cvs 274: if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33 cvs 275: then \
276: cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
277: else \
278: cd $(THOTDIR) ; cvs get $(KAFFE) ; \
279: fi \
1.1 cvs 280: fi)
1.6 cvs 281: @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1 cvs 282: then \
1.6 cvs 283: cd $(THOTDIR) ; cvs get classes ; \
1.1 cvs 284: fi)
1.6 cvs 285: @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1 cvs 286: then \
1.6 cvs 287: cd $(THOTDIR) ; cvs get javalib ; \
1.1 cvs 288: fi)
289: @(if [ ! -d $(KAFFE) ] ; \
290: then \
291: mkdir $(KAFFE) ; \
292: fi)
293:
294: kaffe_clean :
295: @($(RM) -f libkaffe*)
296:
297: kaffe_config :
1.6 cvs 298: @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17 cvs 299: unset LANG; unset CC; unset CFLAGS; \
300: if [ -x $$kaffedir/configure ] ; then \
1.1 cvs 301: $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32 cvs 302: --bindir=$$localdir/bin --with-staticlib \
303: --with-threads=unix-internal \
1.12 cvs 304: @KAFFE_ENGINE@ ; \
1.3 cvs 305: else \
1.1 cvs 306: ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32 cvs 307: --bindir=$$localdir/bin --with-staticlib \
308: --with-threads=unix-internal \
1.12 cvs 309: @KAFFE_ENGINE@ ; \
1.1 cvs 310: fi)
311:
312: kaffe_make :
1.17 cvs 313: @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1 cvs 314:
315: kaffe_install:
1.15 cvs 316: @(cd $(KAFFE) ; $(MAKE) install)
1.6 cvs 317: @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1 cvs 318: then \
1.6 cvs 319: $(MKDIR) $(THOTDIR)/classes ; \
1.1 cvs 320: fi)
1.6 cvs 321: @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1 cvs 322: then \
1.6 cvs 323: $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1 cvs 324: fi)
1.6 cvs 325: @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1 cvs 326: @$(ECHO) Cleaning temp $(KAFFE) files
1.32 cvs 327: @($(RM) -r man )
1.1 cvs 328:
1.22 cvs 329: # @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
330: # @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
331:
1.1 cvs 332: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
333: @(echo $(KAFFE) reinstalled)
334:
335: #
336: # This section try to maintain the Makefile(s) up-to-date in
337: # case the autoconf sources are modified.
338: #
339:
340: MAKEFILE_IN= \
341: @EXTRA_MAKEFILE_IN@ \
1.6 cvs 342: $(THOTDIR)/Options.in \
343: $(THOTDIR)/configure.in \
344: $(THOTDIR)/Makefile.in \
345: $(THOTDIR)/libjpeg/Makefile.in \
346: $(THOTDIR)/batch/Makefile.in \
347: $(THOTDIR)/libjpeg/Makefile.in \
348: $(THOTDIR)/libpng/Makefile.in \
349: $(THOTDIR)/libpng/zlib/Makefile.in \
350: $(THOTDIR)/tablelib/Makefile.in \
351: $(THOTDIR)/thotlib/Makefile.in \
352: $(THOTDIR)/thotlib/include/Makefile.in \
353: $(THOTDIR)/tools/Makefile.in \
354: $(THOTDIR)/tools/mkdep/Makefile.in \
355: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1 cvs 356:
1.3 cvs 357: rebuild : tools/mkdep/mkdep Makefile
1.1 cvs 358:
359: ${srcdir}/config.h.in: stamp-h.in
360:
361: ${srcdir}/stamp-h.in: configure.in config.h.in
362: cd ${srcdir} && autoheader
363: echo timestamp > ${srcdir}/stamp-h.in
364:
365: stamp.h: config.h.in config.status
366: ./config.status
367:
368: Makefile: $(MAKEFILE_IN) config.status
369: ./config.status
370:
371: config.status: configure
372: ./config.status --recheck
373:
Webmaster