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