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