diff options
-rw-r--r-- | cpp/tests/Makefile.am | 3 | ||||
-rw-r--r-- | test/Makefile.am | 8 | ||||
-rw-r--r-- | utils/.gitignore | 2 | ||||
-rw-r--r-- | utils/Makefile.am | 42 |
4 files changed, 25 insertions, 30 deletions
diff --git a/cpp/tests/Makefile.am b/cpp/tests/Makefile.am index 137a1f0b..901c4a64 100644 --- a/cpp/tests/Makefile.am +++ b/cpp/tests/Makefile.am @@ -6,6 +6,7 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/cpp LDADD = \ + $(top_builddir)/utils/libparseargs.la \ $(top_builddir)/poppler/libpoppler.la \ $(top_builddir)/cpp/libpoppler-cpp.la @@ -14,9 +15,7 @@ noinst_PROGRAMS = \ poppler-render poppler_dump_SOURCES = \ - $(top_srcdir)/utils/parseargs.cc \ poppler-dump.cpp poppler_render_SOURCES = \ - $(top_srcdir)/utils/parseargs.cc \ poppler-render.cpp diff --git a/test/Makefile.am b/test/Makefile.am index 8d7b923d..16f2b1a0 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -55,11 +55,11 @@ perf_test_LDADD = \ $(FREETYPE_LIBS) \ $(X_EXTRA_LIBS) -pdf_fullrewrite_SOURCES = \ - pdf-fullrewrite.cc \ - ../utils/parseargs.cc +pdf_fullrewrite_SOURCES = \ + pdf-fullrewrite.cc -pdf_fullrewrite_LDADD = \ +pdf_fullrewrite_LDADD = \ + $(top_builddir)/utils/libparseargs.la \ $(top_builddir)/poppler/libpoppler.la EXTRA_DIST = \ diff --git a/utils/.gitignore b/utils/.gitignore index 3be3139f..093d3cf5 100644 --- a/utils/.gitignore +++ b/utils/.gitignore @@ -1,5 +1,7 @@ .deps .libs +*.la +*.lo Makefile Makefile.in pdfseparate diff --git a/utils/Makefile.am b/utils/Makefile.am index be6aa6d5..dede2f6c 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -8,6 +8,7 @@ AM_CPPFLAGS = \ $(UTILS_CFLAGS) LDADD = \ + libparseargs.la \ $(top_builddir)/poppler/libpoppler.la \ $(UTILS_LIBS) @@ -49,41 +50,33 @@ if BUILD_CAIRO_OUTPUT dist_man1_MANS += pdftocairo.1 endif -common = parseargs.cc parseargs.h - pdfdetach_SOURCES = \ - pdfdetach.cc \ - $(common) + pdfdetach.cc pdffonts_SOURCES = \ - pdffonts.cc \ - $(common) + pdffonts.cc pdfimages_SOURCES = \ pdfimages.cc \ ImageOutputDev.cc \ ImageOutputDev.h \ JSInfo.cc \ - JSInfo.h \ - $(common) + JSInfo.h pdfinfo_SOURCES = \ pdfinfo.cc \ printencodings.cc \ printencodings.h \ JSInfo.cc \ - JSInfo.h \ - $(common) + JSInfo.h pdftops_SOURCES = \ - pdftops.cc \ - $(common) + pdftops.cc pdftotext_SOURCES = \ pdftotext.cc \ printencodings.cc \ - printencodings.h \ - $(common) + printencodings.h pdftohtml_SOURCES = \ pdftohtml.cc \ @@ -93,8 +86,7 @@ pdftohtml_SOURCES = \ HtmlLinks.h \ HtmlOutputDev.cc \ HtmlOutputDev.h \ - HtmlUtils.h \ - $(common) + HtmlUtils.h # HtmlOutputDev uses goo/PNGWriter.h that may depend on libpng header if BUILD_LIBPNG @@ -102,20 +94,16 @@ pdftohtml_CXXFLAGS = $(AM_CXXFLAGS) $(LIBPNG_CFLAGS) endif pdfseparate_SOURCES = \ - pdfseparate.cc \ - $(common) + pdfseparate.cc pdfunite_SOURCES = \ - pdfunite.cc \ - $(common) + pdfunite.cc pdftoppm_SOURCES = \ - pdftoppm.cc \ - $(common) + pdftoppm.cc pdftocairo_SOURCES = \ - pdftocairo.cc \ - $(common) + pdftocairo.cc if BUILD_CAIRO_OUTPUT if USE_CMS @@ -134,6 +122,12 @@ pdftocairo_CPPFLAGS = \ $(AM_CPPFLAGS) \ $(PDFTOCAIRO_CFLAGS) +noinst_LTLIBRARIES = libparseargs.la + +libparseargs_la_SOURCES = \ + parseargs.cc \ + parseargs.h + # Yay, automake! It should be able to figure out that it has to dist # pdftoppm.1, but nooo. So we just add it here. |