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