blob: 0ee69591e1ee04e52ac9e8f7155d4df998152420 [file] [log] [blame]
Daniel Veillard01791d51998-07-24 19:24:09 +00001## Process this file with automake to produce Makefile.in
2
Daniel Veillard19b858c1999-02-06 18:12:01 +00003SUBDIRS = doc
4
Daniel Veillard27fb0751998-10-17 06:47:46 +00005INCLUDES = -I@srcdir@ @CORBA_CFLAGS@
6
Daniel Veillard01791d51998-07-24 19:24:09 +00007noinst_PROGRAMS=tester
8
Daniel Veillarda6e1d121998-10-04 14:41:05 +00009bin_SCRIPTS=xml-config
10
Daniel Veillard0dc897e1998-07-26 04:12:22 +000011lib_LTLIBRARIES = libxml.la
Daniel Veillard01791d51998-07-24 19:24:09 +000012
Daniel Veillard0dc897e1998-07-26 04:12:22 +000013libxml_la_SOURCES = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000014 SAX.c \
15 entities.c \
Daniel Veillard891e4041998-10-19 00:43:02 +000016 encoding.c \
Daniel Veillard260a68f1998-08-13 03:39:55 +000017 error.c \
Arturo Espinosa52965fa1998-09-23 22:52:20 +000018 error.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000019 parser.c \
Daniel Veillardbaf4cd51998-10-27 22:56:57 +000020 debugXML.c \
Daniel Veillard39a1f9a1999-01-17 19:11:59 +000021 tree.c \
22 valid.c
Daniel Veillard260a68f1998-08-13 03:39:55 +000023
Tom Tromeyc19653d1998-08-14 01:22:43 +000024xmlincdir = $(includedir)/gnome-xml
25xmlinc_HEADERS = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000026 entities.h \
Daniel Veillard891e4041998-10-19 00:43:02 +000027 encoding.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000028 parser.h \
Daniel Veillardbaf4cd51998-10-27 22:56:57 +000029 debugXML.h \
Daniel Veillard39a1f9a1999-01-17 19:11:59 +000030 tree.h \
31 valid.h
Daniel Veillard01791d51998-07-24 19:24:09 +000032
Daniel Veillard0dc897e1998-07-26 04:12:22 +000033DEPS = $(top_builddir)/libxml.la
34LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000035
36tester_SOURCES=tester.c
37tester_LDFLAGS =
38tester_DEPENDENCIES = $(DEPS)
39tester_LDADD= $(LDADDS)
40
41tests : tester
42 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
43 if [ ! -d $$i ] ; then \
44 if [ ! -f result/`basename $$i` ] ; then \
45 echo New test file `basename $$i` ; \
46 $$DIR/tester $$i > result/`basename $$i` ; \
47 else \
48 echo Testing `basename $$i` ; \
49 $$DIR/tester $$i > result.`basename $$i` ; \
50 diff result/`basename $$i` result.`basename $$i` ; \
51 rm result.`basename $$i` ; \
52 fi ; fi ; done)
53
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000054## Put `exec' in the name because this should be installed by
55## `install-exec', not `install-data'.
56
57confexecdir=$(libdir)
58confexec_DATA = xmlConf.sh
59
Martin Baulig4f714891999-01-16 19:08:11 +000060EXTRA_DIST = xmlConf.sh.in libxml.spec
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000061
62## We create xmlConf.sh here and not from configure because we want
63## to get the paths expanded correctly. Macros like srcdir are given
64## the value NONE in configure if the user doesn't specify them (this
65## is an autoconf feature, not a bug).
66
67xmlConf.sh: xmlConf.sh.in Makefile
68## Use sed and then mv to avoid problems if the user interrupts.
Miguel de Icaza60681bd1998-09-30 19:28:59 +000069 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
70 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
71 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000072 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
73 && mv xmlConf.tmp xmlConf.sh