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