Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
| 2 | |
Daniel Veillard | 19b858c | 1999-02-06 18:12:01 +0000 | [diff] [blame] | 3 | SUBDIRS = doc |
| 4 | |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 5 | INCLUDES = -I@srcdir@ @CORBA_CFLAGS@ $(VERSION_FLAGS) |
| 6 | |
| 7 | VERSION_FLAGS = -DLIBXML_VERSION=\"@LIBXML_VERSION@\" |
Daniel Veillard | 27fb075 | 1998-10-17 06:47:46 +0000 | [diff] [blame] | 8 | |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 9 | noinst_PROGRAMS=tester testSAX |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 10 | |
Daniel Veillard | a6e1d12 | 1998-10-04 14:41:05 +0000 | [diff] [blame] | 11 | bin_SCRIPTS=xml-config |
| 12 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 13 | lib_LTLIBRARIES = libxml.la |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 14 | |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 15 | libxml_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@ |
| 16 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 17 | libxml_la_SOURCES = \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 18 | SAX.c \ |
| 19 | entities.c \ |
Daniel Veillard | 891e404 | 1998-10-19 00:43:02 +0000 | [diff] [blame] | 20 | encoding.c \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 21 | error.c \ |
| 22 | parser.c \ |
Daniel Veillard | baf4cd5 | 1998-10-27 22:56:57 +0000 | [diff] [blame] | 23 | debugXML.c \ |
Daniel Veillard | 39a1f9a | 1999-01-17 19:11:59 +0000 | [diff] [blame] | 24 | tree.c \ |
| 25 | valid.c |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 26 | |
Tom Tromey | c19653d | 1998-08-14 01:22:43 +0000 | [diff] [blame] | 27 | xmlincdir = $(includedir)/gnome-xml |
| 28 | xmlinc_HEADERS = \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 29 | entities.h \ |
Daniel Veillard | 891e404 | 1998-10-19 00:43:02 +0000 | [diff] [blame] | 30 | encoding.h \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 31 | parser.h \ |
Daniel Veillard | 3592547 | 1999-02-25 08:46:07 +0000 | [diff] [blame] | 32 | parserInternals.h \ |
Daniel Veillard | baf4cd5 | 1998-10-27 22:56:57 +0000 | [diff] [blame] | 33 | debugXML.h \ |
Daniel Veillard | d109e37 | 1999-03-05 06:26:45 +0000 | [diff] [blame] | 34 | xml-error.h \ |
Daniel Veillard | 39a1f9a | 1999-01-17 19:11:59 +0000 | [diff] [blame] | 35 | tree.h \ |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 36 | xmlIO.h \ |
Daniel Veillard | 39a1f9a | 1999-01-17 19:11:59 +0000 | [diff] [blame] | 37 | valid.h |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 38 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 39 | DEPS = $(top_builddir)/libxml.la |
| 40 | LDADDS = $(top_builddir)/libxml.la @Z_LIBS@ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 41 | |
| 42 | tester_SOURCES=tester.c |
| 43 | tester_LDFLAGS = |
| 44 | tester_DEPENDENCIES = $(DEPS) |
| 45 | tester_LDADD= $(LDADDS) |
| 46 | |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 47 | testSAX_SOURCES=testSAX.c |
| 48 | testSAX_LDFLAGS = |
| 49 | testSAX_DEPENDENCIES = $(DEPS) |
| 50 | testSAX_LDADD= $(LDADDS) |
| 51 | |
Raja R Harinath | a86c23e | 1999-03-05 22:14:01 +0000 | [diff] [blame] | 52 | check-local: tests |
| 53 | |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 54 | testall : tests SVGtests SAXtests |
| 55 | |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 56 | tests : tester |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 57 | @(DIR=`pwd`; cd $(srcdir) ; \ |
| 58 | for i in test/* ; do \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 59 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 60 | if [ ! -f result/`basename $$i` ] ; then \ |
| 61 | echo New test file `basename $$i` ; \ |
| 62 | $$DIR/tester $$i > result/`basename $$i` ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 63 | else \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 64 | echo Testing `basename $$i` ; \ |
| 65 | $$DIR/tester $$i > result.`basename $$i` ; \ |
| 66 | diff result/`basename $$i` result.`basename $$i` ; \ |
| 67 | $$DIR/tester result.`basename $$i` > result2.`basename $$i` ; \ |
| 68 | diff result.`basename $$i` result2.`basename $$i` ; \ |
| 69 | rm result.`basename $$i` result2.`basename $$i` ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 70 | fi ; fi ; done) |
| 71 | |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 72 | SVGtests : tester |
| 73 | @(DIR=`pwd`; cd $(srcdir) ; \ |
| 74 | for i in test/SVG/* ; do \ |
| 75 | if [ ! -d $$i ] ; then \ |
| 76 | if [ ! -f result/SVG/`basename $$i` ] ; then \ |
| 77 | echo New test file `basename $$i` ; \ |
| 78 | $$DIR/tester $$i > result/SVG/`basename $$i` ; \ |
| 79 | else \ |
| 80 | echo Testing `basename $$i` ; \ |
| 81 | $$DIR/tester $$i > result.`basename $$i` ; \ |
| 82 | diff result/SVG/`basename $$i` result.`basename $$i` ; \ |
| 83 | $$DIR/tester result.`basename $$i` > result2.`basename $$i` ; \ |
| 84 | diff result.`basename $$i` result2.`basename $$i` ; \ |
| 85 | rm result.`basename $$i` result2.`basename $$i` ; \ |
| 86 | fi ; fi ; done) |
| 87 | |
| 88 | SAXtests : testSAX |
| 89 | @(DIR=`pwd`; cd $(srcdir) ; \ |
| 90 | for i in test/* ; do \ |
| 91 | if [ ! -d $$i ] ; then \ |
| 92 | if [ ! -f SAXresult/`basename $$i` ] ; then \ |
| 93 | echo New test file `basename $$i` ; \ |
| 94 | $$DIR/testSAX $$i > SAXresult/`basename $$i` ; \ |
| 95 | else \ |
| 96 | echo Testing `basename $$i` ; \ |
| 97 | $$DIR/testSAX $$i > result.`basename $$i` ; \ |
| 98 | diff SAXresult/`basename $$i` result.`basename $$i` ; \ |
| 99 | rm result.`basename $$i` ; \ |
| 100 | fi ; fi ; done) |
| 101 | |
| 102 | #tests : tester |
| 103 | # @(for i in $(srcdir)/test/* ; do \ |
| 104 | # if [ ! -d $$i ] ; then \ |
| 105 | # j=`echo $$i | sed -e 's,^.*/,,'`; \ |
| 106 | # if [ ! -f $(srcdir)/result/$$j ] ; then \ |
| 107 | # echo New test file $$j ; \ |
| 108 | # ./tester $$i > $(srcdir)/result/$$j ; \ |
| 109 | # else \ |
| 110 | # echo Testing $$j ; \ |
| 111 | # ./tester $$i > result.$$j ; \ |
| 112 | # diff $(srcdir)/result/$$j result.$$j ; \ |
| 113 | # rm result.$$j ; \ |
| 114 | # fi ; fi ; done) |
| 115 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 116 | ## Put `exec' in the name because this should be installed by |
| 117 | ## `install-exec', not `install-data'. |
| 118 | |
| 119 | confexecdir=$(libdir) |
| 120 | confexec_DATA = xmlConf.sh |
| 121 | |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 122 | EXTRA_DIST = xmlConf.sh.in libxml.spec.in test result SAXresult |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 123 | |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 124 | dist-hook: |
| 125 | cp libxml.spec $(distdir) |
| 126 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 127 | ## We create xmlConf.sh here and not from configure because we want |
| 128 | ## to get the paths expanded correctly. Macros like srcdir are given |
| 129 | ## the value NONE in configure if the user doesn't specify them (this |
| 130 | ## is an autoconf feature, not a bug). |
| 131 | |
| 132 | xmlConf.sh: xmlConf.sh.in Makefile |
| 133 | ## Use sed and then mv to avoid problems if the user interrupts. |
Miguel de Icaza | 60681bd | 1998-09-30 19:28:59 +0000 | [diff] [blame] | 134 | sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ |
| 135 | -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ |
| 136 | -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 137 | < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \ |
| 138 | && mv xmlConf.tmp xmlConf.sh |