Annotation of Amaya/Makefile.in, revision 1.67
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.61 kahan 18: SUBDIRS = tools thotlib tablelib batch drawlib indexlib annotlib amaya thot
19: EXTRA_SUBDIRS= misc pluginlib
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.67 ! cheyroul 30:
! 31: ifeq ($(GL_INCLUDES), )
1.65 cvs 32: default : tools thotlib tablelib batch amaya_prog print_prog
1.67 ! cheyroul 33: else
! 34: default : tools thotlib tablelib batch amaya_prog
! 35: endif
1.31 cvs 36:
37: amaya : tools thotlib tablelib amaya_prog
1.1 cvs 38:
1.49 cvs 39: print : tools thotlib tablelib print_prog
40:
1.4 cvs 41: Options:
42: @CP@ Options.orig Options
43:
1.1 cvs 44: force :
1.30 cvs 45:
46: batch: rebuild force
47: @(if test -d batch ; then cd batch ; \
1.55 cvs 48: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" ; fi)
1.9 cvs 49:
50: tools: rebuild force
51: @(if test -d tools ; then cd tools ; \
1.23 cvs 52: $(MAKE) CC="$(CC)" CFLAGS="-O" all ; fi)
1.9 cvs 53:
54: thotlib: rebuild force
55: @(if test -d thotlib ; then cd thotlib ; \
56: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
1.23 cvs 57:
1.31 cvs 58: amaya_prog: rebuild force bin/str
1.1 cvs 59: @(if test -d amaya ; then cd amaya ; \
60: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
1.49 cvs 61:
62: print_prog: rebuild force bin/str
63: @(if test -d thotlib ; then cd thotlib ; \
64: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" print ; fi)
1.1 cvs 65:
1.5 cvs 66: misc: rebuild force
67: @(if test -d misc ; then cd misc ; \
68: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
69:
1.1 cvs 70: all : rebuild
71: @(for dir in $(SUBDIRS) ;\
72: do if test -d $$dir ; then cd $$dir ; \
73: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; \
74: cd .. ; fi ;done )
75:
76: clean : rebuild
1.5 cvs 77: @(for dir in $(SUBDIRS) $(EXTRA_SUBDIRS) ;\
1.1 cvs 78: do if test -d $$dir ; then cd $$dir ; \
79: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" clean ; \
80: cd .. ; fi ;done )
81:
82: install : rebuild
83: @(for dir in $(SUBDIRS) ;\
84: do if test -d $$dir ; then cd $$dir ; \
85: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" install ; \
86: cd .. ; fi ;done )
1.8 cvs 87:
88: uninstall :
89: @(for dir in $(SUBDIRS) ;\
90: do if test -d $$dir ; then cd $$dir ; \
91: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" uninstall ; \
92: cd .. ; fi ;done )
1.1 cvs 93:
1.6 cvs 94: update :
95: @(cd $(THOTDIR) ; cvs update)
1.62 cvs 96: @(if [ -d $(THOTDIR)/../$(LIBWWW) ] ; then \
1.63 cvs 97: cd $(THOTDIR)/../$(LIBWWW) ; cvs update ; fi)
1.6 cvs 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: #
1.51 cvs 160:
161: AMAYA_LIBWWW_STANDARD_LIBS = \
162: libwwwapp \
163: libwwwhttp \
164: libwwwhtml \
165: libwwwmime \
166: libwwwcache \
167: libwwwstream \
168: libwwwfile \
169: libwwwdir \
170: libwwwtrans \
171: libwwwcore \
172: libwwwutils \
1.56 kahan 173: libwwwftp \
1.57 kahan 174: libwwwxml \
1.51 cvs 175: libwwwzip
176:
177: libwww_config : force
178: @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
179: $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1 cvs 180: fi)
1.45 cvs 181: @(if [ ! -d $(LIBWWW) ] ; then \
1.51 cvs 182: $(MKDIR) $(LIBWWW) ; \
1.45 cvs 183: fi)
1.58 kahan 184: @(localdir=`pwd` ; libwwwdir="$$localdir/../../$(LIBWWW)" ; \
1.56 kahan 185: cd $(LIBWWW) ; unset LANG; \
1.51 cvs 186: if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.58 kahan 187: $$libwwwdir/configure \
1.56 kahan 188: --disable-shared \
189: --with-zlib="$$localdir/libz.a"; \
1.51 cvs 190: $(ECHO) "libwww is configured" ; \
1.1 cvs 191: fi)
1.51 cvs 192:
193: libwww_make_module_md5 \
194: libmd5 : force
1.56 kahan 195: @(localdir=`pwd`; \
196: zlibsrcdir="$$localdir/../libpng/zlib"; \
197: cd $(LIBWWW)/modules/md5 ; \
1.60 kahan 198: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.56 kahan 199: CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
200: libmd5.la)
1.51 cvs 201:
202: libwww_install_module_md5 : force
203: @(if [ -e libmd5.a -a ! -L libmd5.a ] ; then \
204: $(RM) libmd5.a ; \
205: fi ; \
206: if [ ! -L libmd5.a ] ; then \
207: $(LN_S) $(LIBWWW)/modules/md5/.libs/libmd5.a ./libmd5.a ; \
208: fi)
209:
1.57 kahan 210: libwww_make_module_expat \
211: libexpat : force
212: @(localdir=`pwd`; \
213: cd $(LIBWWW)/modules/expat/ ; \
1.66 cvs 214: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS) -DXML_AMAYA" \
1.57 kahan 215: CPPFLAGS="$(CPPFLAGS)" \
216: )
217:
218: libwww_install_module_expat : force
219: @(if [ -e libxmlparse.a -a ! -L libxmlparse.a ] ; then \
220: $(RM) libxmlparse.a ; \
221: fi ; \
222: if [ ! -L libxmlparse.a ] ; then \
223: $(LN_S) $(LIBWWW)/modules/expat/xmlparse/.libs/libxmlparse.a ./libxmlparse.a ; \
224: fi)
225: @(if [ -e libxmltok.a -a ! -L libxmltok.a ] ; then \
226: $(RM) libxmltok.a ; \
227: fi ; \
228: if [ ! -L libxmltok.a ] ; then \
229: $(LN_S) $(LIBWWW)/modules/expat/xmltok/.libs/libxmltok.a ./libxmltok.a ; \
230: fi)
231:
232:
1.51 cvs 233: libwww_make_standard_libs \
234: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56 kahan 235: @(localdir=`pwd`; \
236: zlibsrcdir="$$localdir/../libpng/zlib"; \
237: all_libs="" ; \
1.51 cvs 238: for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
239: all_libs="$$all_libs $$lib.la" ; \
240: done ; \
241: cd $(LIBWWW)/Library/src ; \
1.60 kahan 242: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.56 kahan 243: CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
244: $$all_libs)
1.51 cvs 245:
246: libwww_install_standard : force
247: @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
248: if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
249: $(RM) $$lib.a ; \
250: fi ; \
251: if [ ! -L $$lib.a ] ; then \
252: $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
253: fi ; \
254: done)
255:
1.57 kahan 256: libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat
1.51 cvs 257: libwww_make : libwww_make_module_libs libwww_make_standard_libs
1.57 kahan 258: libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat
1.51 cvs 259: libwww_install : libwww_install_modules libwww_install_standard
260:
261: libwww : libwww_config libwww_make
262: @($(ECHO) "libwww is installed")
1.1 cvs 263:
264: #
265: # Rules to rebuild the libjpeg package
266: #
267:
268: libjpeg libjpeg.a : force
1.6 cvs 269: @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23 cvs 270: @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 271:
272: #
273: # Rules to rebuild the libpng package
274: #
275:
276: libpng libpng.a : force
1.6 cvs 277: @($(RM) $(THOTDIR)/libpng/*.o)
1.23 cvs 278: @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 279:
280: #
281: # Rules to rebuild the libpng package
282: #
283:
284: libz libz.a : force
1.6 cvs 285: @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53 cvs 286: @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 287:
288: #
289: # Rules to rebuild the Kaffe package
290: #
291:
292: kaffe_get :
1.6 cvs 293: @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1 cvs 294: then \
1.35 cvs 295: if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33 cvs 296: then \
297: cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
298: else \
299: cd $(THOTDIR) ; cvs get $(KAFFE) ; \
300: fi \
1.1 cvs 301: fi)
1.6 cvs 302: @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1 cvs 303: then \
1.6 cvs 304: cd $(THOTDIR) ; cvs get classes ; \
1.1 cvs 305: fi)
1.6 cvs 306: @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1 cvs 307: then \
1.6 cvs 308: cd $(THOTDIR) ; cvs get javalib ; \
1.1 cvs 309: fi)
310: @(if [ ! -d $(KAFFE) ] ; \
311: then \
312: mkdir $(KAFFE) ; \
313: fi)
314:
315: kaffe_clean :
316: @($(RM) -f libkaffe*)
317:
318: kaffe_config :
1.6 cvs 319: @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17 cvs 320: unset LANG; unset CC; unset CFLAGS; \
321: if [ -x $$kaffedir/configure ] ; then \
1.1 cvs 322: $$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32 cvs 323: --bindir=$$localdir/bin --with-staticlib \
324: --with-threads=unix-internal \
1.12 cvs 325: @KAFFE_ENGINE@ ; \
1.3 cvs 326: else \
1.1 cvs 327: ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32 cvs 328: --bindir=$$localdir/bin --with-staticlib \
329: --with-threads=unix-internal \
1.12 cvs 330: @KAFFE_ENGINE@ ; \
1.1 cvs 331: fi)
332:
333: kaffe_make :
1.17 cvs 334: @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1 cvs 335:
336: kaffe_install:
1.15 cvs 337: @(cd $(KAFFE) ; $(MAKE) install)
1.6 cvs 338: @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1 cvs 339: then \
1.6 cvs 340: $(MKDIR) $(THOTDIR)/classes ; \
1.1 cvs 341: fi)
1.6 cvs 342: @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1 cvs 343: then \
1.6 cvs 344: $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1 cvs 345: fi)
1.6 cvs 346: @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1 cvs 347: @$(ECHO) Cleaning temp $(KAFFE) files
1.32 cvs 348: @($(RM) -r man )
1.1 cvs 349:
1.22 cvs 350: # @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
351: # @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
352:
1.1 cvs 353: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
354: @(echo $(KAFFE) reinstalled)
355:
356: #
357: # This section try to maintain the Makefile(s) up-to-date in
358: # case the autoconf sources are modified.
359: #
360:
361: MAKEFILE_IN= \
362: @EXTRA_MAKEFILE_IN@ \
1.6 cvs 363: $(THOTDIR)/Options.in \
364: $(THOTDIR)/configure.in \
365: $(THOTDIR)/Makefile.in \
366: $(THOTDIR)/libjpeg/Makefile.in \
367: $(THOTDIR)/batch/Makefile.in \
368: $(THOTDIR)/libjpeg/Makefile.in \
369: $(THOTDIR)/libpng/Makefile.in \
370: $(THOTDIR)/libpng/zlib/Makefile.in \
371: $(THOTDIR)/tablelib/Makefile.in \
372: $(THOTDIR)/thotlib/Makefile.in \
373: $(THOTDIR)/thotlib/include/Makefile.in \
374: $(THOTDIR)/tools/Makefile.in \
375: $(THOTDIR)/tools/mkdep/Makefile.in \
376: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1 cvs 377:
1.3 cvs 378: rebuild : tools/mkdep/mkdep Makefile
1.1 cvs 379:
380: ${srcdir}/config.h.in: stamp-h.in
381:
382: ${srcdir}/stamp-h.in: configure.in config.h.in
383: cd ${srcdir} && autoheader
384: echo timestamp > ${srcdir}/stamp-h.in
385:
386: stamp.h: config.h.in config.status
387: ./config.status
388:
389: Makefile: $(MAKEFILE_IN) config.status
390: ./config.status
391:
392: config.status: configure
393: ./config.status --recheck
394:
Webmaster