Annotation of Amaya/Makefile.in, revision 1.4
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:
18: LINKS = schemas schemasOPERA config
19: SUBDIRS = tools tablelib thotlib batch drawlib indexlib thot amaya
20:
21: srcdir = @top_srcdir@
22:
23: @SET_MAKE@
24:
25: default : amaya thot
26:
1.4 ! cvs 27: Options:
! 28: @CP@ Options.orig Options
! 29:
1.1 cvs 30: force :
31:
32: thot: rebuild force
33: @(if test -d thot ; then cd thot ; \
34: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" thot ; fi)
35:
36: amaya: rebuild force
37: @(if test -d amaya ; then cd amaya ; \
38: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
39:
40: all : rebuild
41: @(for dir in $(SUBDIRS) ;\
42: do if test -d $$dir ; then cd $$dir ; \
43: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; \
44: cd .. ; fi ;done )
45:
46: clean : rebuild
47: @(for dir in $(SUBDIRS) ;\
48: do if test -d $$dir ; then cd $$dir ; \
49: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" clean ; \
50: cd .. ; fi ;done )
51:
52: install : rebuild
53: @(for dir in $(SUBDIRS) ;\
54: do if test -d $$dir ; then cd $$dir ; \
55: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
56: cd .. ; fi ;done )
57:
1.3 cvs 58: tools/mkdep/mkdep :
59: @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" mkdep)
60:
61: depend depends : rebuild tools/mkdep/mkdep
1.1 cvs 62: @(for dir in $(SUBDIRS) ;\
63: do if test -d $$dir ; then cd $$dir ; \
64: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" depend ; \
65: cd .. ; fi ;done )
66:
67: #
68: # Rule du rebuild the Thot schemas
69: #
70:
71: bin/str : force
72: @(cd batch ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" str prs tra printstr)
73:
74: schemas : rebuild bin/str
75: @(bindir=`pwd`/bin ; cd @top_srcdir@/schemas ; \
76: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" THOTDIR=".." THOTSCH="../schemas:../schemasOPERA" \
77: COMPSCH="." COMPSTR="$$bindir/str" COMPPRS="$$bindir/prs" \
78: COMPTRA="$$bindir/tra" PRINTSTR="$$bindir/printstr" all)
79:
80: #
81: # Rules to rebuild the libWWW package
82: #
83:
84: libwww libwww.a :
85: @(if [ ! -d @top_srcdir@/$(LIBWWW) ] ; \
86: then \
87: cd @top_srcdir@ ; cvs update -d $(LIBWWW) ; \
88: fi)
89: @(if test ! -d $(LIBWWW) ; then $(MKDIR) $(LIBWWW) ; fi)
90: @(localdir=`pwd` ; libwwwdir="@top_srcdir@/$(LIBWWW)" ; cd $(LIBWWW) ; \
91: unset LANG; if [ -x $$libwwwdir/configure ] ; then \
92: $$libwwwdir/configure ; \
93: else \
94: ../$$libwwwdir/configure ; \
95: fi)
96: -@(cd @top_srcdir@/$(LIBWWW)/Library/src ; \
97: touch *.html ; touch *.h ; touch *.c)
98: @(cd $(LIBWWW)/Library/src ; $(MAKE) CC=$(CC) CFLAGS="-O" libwww.a)
99: @($(CP) $(LIBWWW)/Library/src/libwww.a libwww.a)
100: @echo libwww.a reinstalled
101:
102: #
103: # Rules to rebuild the libjpeg package
104: #
105:
106: libjpeg libjpeg.a : force
107: @($(RM) @top_srcdir@/libjpeg/*.o)
108: @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")
109:
110: #
111: # Rules to rebuild the libpng package
112: #
113:
114: libpng libpng.a : force
115: @($(RM) @top_srcdir@/libpng/*.o)
116: @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")
117:
118: #
119: # Rules to rebuild the libpng package
120: #
121:
122: libz libz.a : force
123: @($(RM) @top_srcdir@/libpng/libz/*.o)
124: @(cd libpng/libz ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")
125:
126: #
127: # Rules to rebuild the Kaffe package
128: #
129:
130: kaffe_get :
131: @(if [ ! -d @top_srcdir@/$(KAFFE) ] ; \
132: then \
133: cd @top_srcdir@ ; cvs get $(KAFFE) ; \
134: fi)
135: @(if [ ! -d @top_srcdir@/classes ] ; \
136: then \
137: cd @top_srcdir@ ; cvs get classes ; \
138: fi)
139: @(if [ ! -d @top_srcdir@/javalib ] ; \
140: then \
141: cd @top_srcdir@ ; cvs get javalib ; \
142: fi)
143: @(if [ ! -d $(KAFFE) ] ; \
144: then \
145: mkdir $(KAFFE) ; \
146: fi)
147:
148: kaffe_clean :
149: @($(RM) -f libkaffe*)
150:
151: kaffe_config :
152: @(localdir=`pwd` ; kaffedir="@top_srcdir@/$(KAFFE)" ; cd $(KAFFE) ; \
153: unset LANG; if [ -x $$kaffedir/configure ] ; then \
154: $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
155: --bindir=$$localdir/bin --enable-staticlib --with-x ; \
1.3 cvs 156: else \
1.1 cvs 157: ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
158: --bindir=$$localdir/bin --enable-staticlib --with-x ; \
159: fi)
160:
161: kaffe_make :
162: @(cd $(KAFFE) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")
163:
164: kaffe_install:
165: @(cd $(KAFFE) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install)
166: @(if [ ! -d @top_srcdir@/classes ] ; \
167: then \
168: $(MKDIR) @top_srcdir@/classes ; \
169: fi)
170: @(if [ ! -d @top_srcdir@/classes/lib ] ; \
171: then \
172: $(MKDIR) @top_srcdir@/classes/lib ; \
173: fi)
174: @($(MV) include/kaffe/StubPreamble.h @top_srcdir@/javalib)
175: @($(MV) include/kaffe/jtypes.h @top_srcdir@/javalib)
176: @($(MV) include/kaffe/native.h @top_srcdir@/javalib)
177: @($(MV) include/kaffe/java_lang_String.h @top_srcdir@/javalib)
178: @($(CP) -R share/kaffe/. @top_srcdir@/classes)
179: @$(ECHO) Cleaning temp $(KAFFE) files
180: @($(RM) -r share include man )
181:
182: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
183: @(echo $(KAFFE) reinstalled)
184:
185: #
186: # This section try to maintain the Makefile(s) up-to-date in
187: # case the autoconf sources are modified.
188: #
189:
190: MAKEFILE_IN= \
191: @EXTRA_MAKEFILE_IN@ \
1.4 ! cvs 192: @top_srcdir@/Options.in \
1.1 cvs 193: @top_srcdir@/configure.in \
194: @top_srcdir@/Makefile.in \
195: @top_srcdir@/libjpeg/Makefile.in \
196: @top_srcdir@/batch/Makefile.in \
197: @top_srcdir@/libjpeg/Makefile.in \
198: @top_srcdir@/libpng/Makefile.in \
199: @top_srcdir@/libpng/zlib/Makefile.in \
200: @top_srcdir@/drawlib/Makefile.in \
201: @top_srcdir@/indexlib/Makefile.in \
202: @top_srcdir@/tablelib/Makefile.in \
203: @top_srcdir@/thotlib/Makefile.in \
204: @top_srcdir@/thotlib/include/Makefile.in \
205: @top_srcdir@/tools/Makefile.in \
206: @top_srcdir@/tools/mkdep/Makefile.in \
207: @top_srcdir@/tools/cextract-1.7/Makefile.in
208:
1.3 cvs 209: rebuild : tools/mkdep/mkdep Makefile
1.1 cvs 210:
211: ${srcdir}/config.h.in: stamp-h.in
212:
213: ${srcdir}/stamp-h.in: configure.in config.h.in
214: cd ${srcdir} && autoheader
215: echo timestamp > ${srcdir}/stamp-h.in
216:
217: stamp.h: config.h.in config.status
218: ./config.status
219:
220: Makefile: $(MAKEFILE_IN) config.status
221: ./config.status
222:
223: config.status: configure
224: ./config.status --recheck
225:
Webmaster