diff --git a/Makefile.am b/Makefile.am index b28b27e6..d6a4dc02 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,7 +11,7 @@ DIST_SUBDIRS = include . doc example fuzz python xstc AM_CPPFLAGS = -I$(top_builddir)/include -I$(srcdir)/include -DSYSCONFDIR='"$(sysconfdir)"' -AM_CFLAGS = $(EXTRA_CFLAGS) $(THREAD_CFLAGS) $(Z_CFLAGS) $(LZMA_CFLAGS) +AM_CFLAGS = $(EXTRA_CFLAGS) check_PROGRAMS=testSchemas testRelax testSAX testHTML testXPath testURI \ testThreads testC14N testAutomata testRegexp \ @@ -23,6 +23,7 @@ bin_PROGRAMS = xmllint xmlcatalog bin_SCRIPTS=xml2-config lib_LTLIBRARIES = libxml2.la +libxml2_la_CFLAGS = $(EXTRA_CFLAGS) $(THREAD_CFLAGS) $(Z_CFLAGS) $(LZMA_CFLAGS) libxml2_la_LIBADD = $(ICU_LIBS) $(THREAD_LIBS) $(Z_LIBS) $(LZMA_LIBS) $(ICONV_LIBS) $(LIBM) $(WIN32_EXTRA_LIBADD) if USE_VERSION_SCRIPT @@ -54,7 +55,7 @@ libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ xmlmodule.c schematron.c xzlib.c DEPS = $(top_builddir)/libxml2.la -LDADDS = $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(LZMA_LIBS) $(ICONV_LIBS) $(LIBM) $(WIN32_EXTRA_LIBADD) +LDADDS = $(top_builddir)/libxml2.la man_MANS = xml2-config.1 libxml.3 @@ -63,34 +64,35 @@ m4datadir = $(datadir)/aclocal m4data_DATA = libxml.m4 runtest_SOURCES=runtest.c +runtest_CFLAGS = $(EXTRA_CFLAGS) $(THREAD_CFLAGS) runtest_LDFLAGS = runtest_DEPENDENCIES = $(DEPS) -runtest_LDADD= $(BASE_THREAD_LIBS) $(RDL_LIBS) $(LDADDS) +runtest_LDADD= $(BASE_THREAD_LIBS) $(THREAD_LIBS) $(LDADDS) testrecurse_SOURCES=testrecurse.c testrecurse_LDFLAGS = testrecurse_DEPENDENCIES = $(DEPS) -testrecurse_LDADD= $(BASE_THREAD_LIBS) $(RDL_LIBS) $(LDADDS) +testrecurse_LDADD= $(LDADDS) testlimits_SOURCES=testlimits.c testlimits_LDFLAGS = testlimits_DEPENDENCIES = $(DEPS) -testlimits_LDADD= $(BASE_THREAD_LIBS) $(RDL_LIBS) $(LDADDS) +testlimits_LDADD= $(LDADDS) testchar_SOURCES=testchar.c testchar_LDFLAGS = testchar_DEPENDENCIES = $(DEPS) -testchar_LDADD= $(RDL_LIBS) $(LDADDS) +testchar_LDADD= $(LDADDS) testdict_SOURCES=testdict.c testdict_LDFLAGS = testdict_DEPENDENCIES = $(DEPS) -testdict_LDADD= $(RDL_LIBS) $(LDADDS) +testdict_LDADD= $(LDADDS) runsuite_SOURCES=runsuite.c runsuite_LDFLAGS = runsuite_DEPENDENCIES = $(DEPS) -runsuite_LDADD= $(RDL_LIBS) $(LDADDS) +runsuite_LDADD= $(LDADDS) xmllint_SOURCES=xmllint.c xmllint_LDFLAGS = @@ -123,9 +125,10 @@ testC14N_DEPENDENCIES = $(DEPS) testC14N_LDADD= $(LDADDS) testThreads_SOURCES = testThreads.c +testThreads_CFLAGS = $(EXTRA_CFLAGS) $(THREAD_CFLAGS) testThreads_LDFLAGS = testThreads_DEPENDENCIES = $(DEPS) -testThreads_LDADD= $(BASE_THREAD_LIBS) $(LDADDS) +testThreads_LDADD= $(BASE_THREAD_LIBS) $(THREAD_LIBS) $(LDADDS) testURI_SOURCES=testURI.c testURI_LDFLAGS = diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 5ba21ee1..27ababe3 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -3,9 +3,8 @@ ## DO NOT EDIT !!! ## -AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir)/include -AM_CFLAGS = $(THREAD_CFLAGS) $(Z_CFLAGS) -LDADD = $(RDL_LIBS) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD) +AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include +LDADD = $(top_builddir)/libxml2.la CLEANFILES = *.tmp diff --git a/doc/examples/index.py b/doc/examples/index.py index b280d060..1d5600d1 100755 --- a/doc/examples/index.py +++ b/doc/examples/index.py @@ -225,9 +225,8 @@ def dump_Makefile(): ## DO NOT EDIT !!! ## -AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir)/include -AM_CFLAGS = $(THREAD_CFLAGS) $(Z_CFLAGS) -LDADD = $(RDL_LIBS) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD) +AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include +LDADD = $(top_builddir)/libxml2.la CLEANFILES = *.tmp diff --git a/example/Makefile.am b/example/Makefile.am index 5839bd0f..21130b9a 100644 --- a/example/Makefile.am +++ b/example/Makefile.am @@ -1,7 +1,6 @@ check_PROGRAMS = gjobread -AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir)/include -AM_CFLAGS = $(THREAD_CFLAGS) $(Z_CFLAGS) -LDADD = $(RDL_LIBS) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(ICONV_LIBS) -lm $(WIN32_EXTRA_LIBADD) +AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include +LDADD = $(top_builddir)/libxml2.la gjobread_SOURCES=gjobread.c diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am index 3284aab7..f979a900 100644 --- a/fuzz/Makefile.am +++ b/fuzz/Makefile.am @@ -6,7 +6,7 @@ EXTRA_DIST = html.dict regexp.dict schema.dict xml.dict xpath.dict \ CLEANFILES = $(EXTRA_PROGRAMS) AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include DEPENDENCIES = $(top_builddir)/libxml2.la -LDADD = $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(LZMA_LIBS) $(ICONV_LIBS) $(LIBM) $(WIN32_EXTRA_LIBADD) +LDADD = $(top_builddir)/libxml2.la XML_MAX_LEN = 80000 # Single quotes to avoid wildcard expansion by the shell