Annotation of Amaya/Makefile.in, revision 1.68
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.68 ! kirschpi 18: #MKP: adding davlib
! 19: SUBDIRS = tools thotlib tablelib batch drawlib indexlib annotlib amaya thot davlib
1.61 kahan 20: EXTRA_SUBDIRS= misc pluginlib
1.1 cvs 21:
1.8 cvs 22: prefix = @prefix@
23: exec_prefix = @exec_prefix@
24: libdir = @libdir@
25: bindir = @bindir@
26:
1.6 cvs 27: srcdir = $(THOTDIR)
1.1 cvs 28:
29: @SET_MAKE@
30:
1.67 cheyroul 31:
32: ifeq ($(GL_INCLUDES), )
1.65 cvs 33: default : tools thotlib tablelib batch amaya_prog print_prog
1.67 cheyroul 34: else
35: default : tools thotlib tablelib batch amaya_prog
36: endif
1.31 cvs 37:
38: amaya : tools thotlib tablelib amaya_prog
1.1 cvs 39:
1.49 cvs 40: print : tools thotlib tablelib print_prog
41:
1.4 cvs 42: Options:
43: @CP@ Options.orig Options
44:
1.1 cvs 45: force :
1.30 cvs 46:
47: batch: rebuild force
48: @(if test -d batch ; then cd batch ; \
1.55 cvs 49: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" ; fi)
1.9 cvs 50:
51: tools: rebuild force
52: @(if test -d tools ; then cd tools ; \
1.23 cvs 53: $(MAKE) CC="$(CC)" CFLAGS="-O" all ; fi)
1.9 cvs 54:
55: thotlib: rebuild force
56: @(if test -d thotlib ; then cd thotlib ; \
57: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" all ; fi)
1.23 cvs 58:
1.31 cvs 59: amaya_prog: rebuild force bin/str
1.1 cvs 60: @(if test -d amaya ; then cd amaya ; \
61: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" amaya ; fi)
1.49 cvs 62:
63: print_prog: rebuild force bin/str
64: @(if test -d thotlib ; then cd thotlib ; \
65: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" print ; fi)
1.1 cvs 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 )
1.1 cvs 94:
1.6 cvs 95: update :
96: @(cd $(THOTDIR) ; cvs update)
1.62 cvs 97: @(if [ -d $(THOTDIR)/../$(LIBWWW) ] ; then \
1.63 cvs 98: cd $(THOTDIR)/../$(LIBWWW) ; cvs update ; fi)
1.6 cvs 99:
100: commit :
101: @(cd $(THOTDIR) ; cvs commit)
102:
103: stubs:
1.21 cvs 104: @(cd javalib ; $(MAKE) stubs)
1.6 cvs 105:
106: classes: force
107: @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
108: if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
109: else CLASSES=$(THOTDIR)/classes ; fi ; \
1.10 cvs 110: CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:$$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
1.11 cvs 111: cd $(THOTDIR)/classes ; $(MAKE) )
1.6 cvs 112:
113: zips: force
1.21 cvs 114: @(cd javalib ; $(MAKE) zips);
1.20 cvs 115:
116: # @(PWD=`pwd` ; PATH="$$PWD/bin:$$PATH" ; export PATH ; \
117: # if test -d $$PWD/$(THOTDIR) ; then CLASSES=$$PWD/$(THOTDIR)/classes;\
118: # else CLASSES=$(THOTDIR)/classes ; fi ; \
119: # CLASSPATH=".:$$CLASSES:$$CLASSES/classes.zip:$$CLASSES/thotlib.zip:\
120: # $$CLASSES/jigsaw.zip:$$CLASSES/amaya.zip:$$CLASSES/biss.zip";export CLASSPATH;\
121: # cd $(THOTDIR)/classes ; $(MAKE) zips)
1.6 cvs 122:
1.3 cvs 123: tools/mkdep/mkdep :
1.23 cvs 124: @(cd tools/mkdep ; $(MAKE) CC="$(CC)" CFLAGS="-O" mkdep)
1.3 cvs 125:
126: depend depends : rebuild tools/mkdep/mkdep
1.1 cvs 127: @(for dir in $(SUBDIRS) ;\
128: do if test -d $$dir ; then cd $$dir ; \
129: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" depend ; \
130: cd .. ; fi ;done )
131:
1.7 cvs 132: bin/cextract :
1.27 cvs 133: @(cd tools/cextract-$(CEXTRACT_VER) ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" cextract)
1.7 cvs 134:
135: proto : rebuild bin/cextract
136: @(for dir in $(SUBDIRS) ;\
137: do if test -d $$dir ; then cd $$dir ; \
138: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" proto ; \
139: cd .. ; fi ;done )
1.11 cvs 140:
141: mkid :
142: @(echo rebuilding $(THOTDIR)/ID reference file)
1.26 cvs 143: @(cd $(THOTDIR); mkid --lang-map=makes/id-lang.map . classes/org/w3c/*)
1.7 cvs 144:
1.1 cvs 145: #
146: # Rule du rebuild the Thot schemas
147: #
148:
149: bin/str : force
150: @(cd batch ; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" str prs tra printstr)
151:
152: schemas : rebuild bin/str
1.6 cvs 153: @(bindir=`pwd`/bin ; cd $(THOTDIR)/schemas ; \
1.1 cvs 154: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" THOTDIR=".." THOTSCH="../schemas:../schemasOPERA" \
155: COMPSCH="." COMPSTR="$$bindir/str" COMPPRS="$$bindir/prs" \
156: COMPTRA="$$bindir/tra" PRINTSTR="$$bindir/printstr" all)
157:
158: #
159: # Rules to rebuild the libWWW package
160: #
1.51 cvs 161:
1.68 ! kirschpi 162: # MKP: adding libwwwdav
1.51 cvs 163: AMAYA_LIBWWW_STANDARD_LIBS = \
164: libwwwapp \
165: libwwwhttp \
166: libwwwhtml \
167: libwwwmime \
168: libwwwcache \
169: libwwwstream \
170: libwwwfile \
171: libwwwdir \
172: libwwwtrans \
173: libwwwcore \
174: libwwwutils \
1.56 kahan 175: libwwwftp \
1.57 kahan 176: libwwwxml \
1.68 ! kirschpi 177: libwwwdav \
1.51 cvs 178: libwwwzip
179:
180: libwww_config : force
181: @(if [ ! -d $(THOTDIR)/../$(LIBWWW) ] ; then \
182: $(ECHO) "Error libwww dir not found at $(THOTDIR)/../$(LIBWWW)" ; \
1.1 cvs 183: fi)
1.45 cvs 184: @(if [ ! -d $(LIBWWW) ] ; then \
1.51 cvs 185: $(MKDIR) $(LIBWWW) ; \
1.45 cvs 186: fi)
1.68 ! kirschpi 187: #MKP: adding --with-dav
1.58 kahan 188: @(localdir=`pwd` ; libwwwdir="$$localdir/../../$(LIBWWW)" ; \
1.56 kahan 189: cd $(LIBWWW) ; unset LANG; \
1.51 cvs 190: if [ ! -f Makefile -o ! -f wwwconf.h ] ; then \
1.58 kahan 191: $$libwwwdir/configure \
1.68 ! kirschpi 192: --with-dav \
1.56 kahan 193: --disable-shared \
194: --with-zlib="$$localdir/libz.a"; \
1.51 cvs 195: $(ECHO) "libwww is configured" ; \
1.1 cvs 196: fi)
1.51 cvs 197:
198: libwww_make_module_md5 \
199: libmd5 : force
1.56 kahan 200: @(localdir=`pwd`; \
201: zlibsrcdir="$$localdir/../libpng/zlib"; \
202: cd $(LIBWWW)/modules/md5 ; \
1.60 kahan 203: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.56 kahan 204: CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
205: libmd5.la)
1.51 cvs 206:
207: libwww_install_module_md5 : force
208: @(if [ -e libmd5.a -a ! -L libmd5.a ] ; then \
209: $(RM) libmd5.a ; \
210: fi ; \
211: if [ ! -L libmd5.a ] ; then \
212: $(LN_S) $(LIBWWW)/modules/md5/.libs/libmd5.a ./libmd5.a ; \
213: fi)
214:
1.57 kahan 215: libwww_make_module_expat \
216: libexpat : force
217: @(localdir=`pwd`; \
218: cd $(LIBWWW)/modules/expat/ ; \
1.66 cvs 219: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS) -DXML_AMAYA" \
1.57 kahan 220: CPPFLAGS="$(CPPFLAGS)" \
221: )
222:
223: libwww_install_module_expat : force
224: @(if [ -e libxmlparse.a -a ! -L libxmlparse.a ] ; then \
225: $(RM) libxmlparse.a ; \
226: fi ; \
227: if [ ! -L libxmlparse.a ] ; then \
228: $(LN_S) $(LIBWWW)/modules/expat/xmlparse/.libs/libxmlparse.a ./libxmlparse.a ; \
229: fi)
230: @(if [ -e libxmltok.a -a ! -L libxmltok.a ] ; then \
231: $(RM) libxmltok.a ; \
232: fi ; \
233: if [ ! -L libxmltok.a ] ; then \
234: $(LN_S) $(LIBWWW)/modules/expat/xmltok/.libs/libxmltok.a ./libxmltok.a ; \
235: fi)
236:
237:
1.51 cvs 238: libwww_make_standard_libs \
239: $(AMAYA_LIBWWW_STANDARD_LIBS) : force
1.56 kahan 240: @(localdir=`pwd`; \
241: zlibsrcdir="$$localdir/../libpng/zlib"; \
242: all_libs="" ; \
1.51 cvs 243: for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
244: all_libs="$$all_libs $$lib.la" ; \
245: done ; \
246: cd $(LIBWWW)/Library/src ; \
1.60 kahan 247: $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) $(EXPAT_OPTIONS)" \
1.56 kahan 248: CPPFLAGS="$(CPPFLAGS) -I$$zlibsrcdir" \
249: $$all_libs)
1.51 cvs 250:
251: libwww_install_standard : force
252: @(for lib in $(AMAYA_LIBWWW_STANDARD_LIBS) ; do \
253: if [ -e $$lib.a -a ! -L $$lib.a ] ; then \
254: $(RM) $$lib.a ; \
255: fi ; \
256: if [ ! -L $$lib.a ] ; then \
257: $(LN_S) $(LIBWWW)/Library/src/.libs/$$lib.a ./$$lib.a ; \
258: fi ; \
259: done)
260:
1.57 kahan 261: libwww_make_module_libs : libwww_make_module_md5 libwww_make_module_expat
1.51 cvs 262: libwww_make : libwww_make_module_libs libwww_make_standard_libs
1.57 kahan 263: libwww_install_modules : libwww_install_module_md5 libwww_install_module_expat
1.51 cvs 264: libwww_install : libwww_install_modules libwww_install_standard
265:
266: libwww : libwww_config libwww_make
267: @($(ECHO) "libwww is installed")
1.1 cvs 268:
269: #
270: # Rules to rebuild the libjpeg package
271: #
272:
273: libjpeg libjpeg.a : force
1.6 cvs 274: @($(RM) $(THOTDIR)/libjpeg/*.o)
1.23 cvs 275: @(cd libjpeg ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 276:
277: #
278: # Rules to rebuild the libpng package
279: #
280:
281: libpng libpng.a : force
1.6 cvs 282: @($(RM) $(THOTDIR)/libpng/*.o)
1.23 cvs 283: @(cd libpng ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 284:
285: #
286: # Rules to rebuild the libpng package
287: #
288:
289: libz libz.a : force
1.6 cvs 290: @($(RM) $(THOTDIR)/libpng/libz/*.o)
1.53 cvs 291: @(cd libpng/zlib ; $(MAKE) CC="$(CC)" CFLAGS="-O")
1.1 cvs 292:
293: #
294: # Rules to rebuild the Kaffe package
295: #
296:
297: kaffe_get :
1.6 cvs 298: @(if [ ! -d $(THOTDIR)/$(KAFFE) ] ; \
1.1 cvs 299: then \
1.35 cvs 300: if [ -f $(THOTDIR)/$(KAFFE).tar.gz ] ; \
1.33 cvs 301: then \
302: cd $(THOTDIR) ; gunzip -c $(KAFFE).tar.gz | tar xvf - ; \
303: else \
304: cd $(THOTDIR) ; cvs get $(KAFFE) ; \
305: fi \
1.1 cvs 306: fi)
1.6 cvs 307: @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1 cvs 308: then \
1.6 cvs 309: cd $(THOTDIR) ; cvs get classes ; \
1.1 cvs 310: fi)
1.6 cvs 311: @(if [ ! -d $(THOTDIR)/javalib ] ; \
1.1 cvs 312: then \
1.6 cvs 313: cd $(THOTDIR) ; cvs get javalib ; \
1.1 cvs 314: fi)
315: @(if [ ! -d $(KAFFE) ] ; \
316: then \
317: mkdir $(KAFFE) ; \
318: fi)
319:
320: kaffe_clean :
321: @($(RM) -f libkaffe*)
322:
323: kaffe_config :
1.6 cvs 324: @(localdir=`pwd` ; kaffedir="$(THOTDIR)/$(KAFFE)" ; cd $(KAFFE) ; \
1.17 cvs 325: unset LANG; unset CC; unset CFLAGS; \
326: if [ -x $$kaffedir/configure ] ; then \
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.3 cvs 331: else \
1.1 cvs 332: ../$$kaffedir/configure --prefix=$$localdir --libdir=$$localdir \
1.32 cvs 333: --bindir=$$localdir/bin --with-staticlib \
334: --with-threads=unix-internal \
1.12 cvs 335: @KAFFE_ENGINE@ ; \
1.1 cvs 336: fi)
337:
338: kaffe_make :
1.17 cvs 339: @(cd $(KAFFE) ; unset CC ; unset CFLAGS; $(MAKE))
1.1 cvs 340:
341: kaffe_install:
1.15 cvs 342: @(cd $(KAFFE) ; $(MAKE) install)
1.6 cvs 343: @(if [ ! -d $(THOTDIR)/classes ] ; \
1.1 cvs 344: then \
1.6 cvs 345: $(MKDIR) $(THOTDIR)/classes ; \
1.1 cvs 346: fi)
1.6 cvs 347: @(if [ ! -d $(THOTDIR)/classes/lib ] ; \
1.1 cvs 348: then \
1.6 cvs 349: $(MKDIR) $(THOTDIR)/classes/lib ; \
1.1 cvs 350: fi)
1.6 cvs 351: @($(CP) -R share/kaffe/. $(THOTDIR)/classes)
1.1 cvs 352: @$(ECHO) Cleaning temp $(KAFFE) files
1.32 cvs 353: @($(RM) -r man )
1.1 cvs 354:
1.22 cvs 355: # @($(CP) libagent* libkaffevm* libnative* libnet* libzip* bin)
356: # @($(RM) libagent* libkaffevm* libnative* libnet* libzip*)
357:
1.1 cvs 358: kaffe : kaffe_get kaffe_clean kaffe_config kaffe_make kaffe_install
359: @(echo $(KAFFE) reinstalled)
360:
361: #
362: # This section try to maintain the Makefile(s) up-to-date in
363: # case the autoconf sources are modified.
364: #
365:
366: MAKEFILE_IN= \
367: @EXTRA_MAKEFILE_IN@ \
1.6 cvs 368: $(THOTDIR)/Options.in \
369: $(THOTDIR)/configure.in \
370: $(THOTDIR)/Makefile.in \
371: $(THOTDIR)/libjpeg/Makefile.in \
372: $(THOTDIR)/batch/Makefile.in \
373: $(THOTDIR)/libjpeg/Makefile.in \
374: $(THOTDIR)/libpng/Makefile.in \
375: $(THOTDIR)/libpng/zlib/Makefile.in \
376: $(THOTDIR)/tablelib/Makefile.in \
377: $(THOTDIR)/thotlib/Makefile.in \
378: $(THOTDIR)/thotlib/include/Makefile.in \
379: $(THOTDIR)/tools/Makefile.in \
380: $(THOTDIR)/tools/mkdep/Makefile.in \
381: $(THOTDIR)/tools/cextract-1.7/Makefile.in
1.1 cvs 382:
1.3 cvs 383: rebuild : tools/mkdep/mkdep Makefile
1.1 cvs 384:
385: ${srcdir}/config.h.in: stamp-h.in
386:
387: ${srcdir}/stamp-h.in: configure.in config.h.in
388: cd ${srcdir} && autoheader
389: echo timestamp > ${srcdir}/stamp-h.in
390:
391: stamp.h: config.h.in config.status
392: ./config.status
393:
394: Makefile: $(MAKEFILE_IN) config.status
395: ./config.status
396:
397: config.status: configure
398: ./config.status --recheck
399:
Webmaster