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