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