Blame SOURCES/Makefile.am

7e3931
ACLOCAL_AMFLAGS = -I m4
7e3931
7e3931
pkgconfdir = $(libdir)/pkgconfig
7e3931
pkgconf_DATA = \
7e3931
	libcupsfilters.pc \
7e3931
	libfontembed.pc
7e3931
7e3931
doc_DATA = \
7e3931
	AUTHORS \
7e3931
	COPYING \
7e3931
	NEWS \
7e3931
	INSTALL \
7e3931
	README
7e3931
7e3931
EXTRA_DIST = \
7e3931
	$(doc_DATA) \
7e3931
	autogen.sh \
7e3931
	libcupsfilters.pc.in \
7e3931
	libfontembed.pc.in \
7e3931
	utils/cups-browsed.service
7e3931
7e3931
# ========
7e3931
# Backends
7e3931
# ========
7e3931
pkgbackenddir = $(CUPS_SERVERBIN)/backend
7e3931
pkgbackend_PROGRAMS = parallel serial implicitclass
7e3931
7e3931
check_PROGRAMS = test1284
7e3931
# We need ieee1284 up and running.
7e3931
# Leave it to the user to run if they have the bus.
7e3931
#TESTS = test1284
7e3931
7e3931
parallel_SOURCES = \
7e3931
	backend/backend-private.h \
7e3931
	backend/ieee1284.c \
7e3931
	backend/parallel.c
7e3931
parallel_LDADD = $(CUPS_LIBS)
7e3931
parallel_CFLAGS = $(CUPS_CFLAGS)
7e3931
7e3931
serial_SOURCES = \
7e3931
	backend/backend-private.h \
7e3931
	backend/serial.c
7e3931
serial_LDADD = $(CUPS_LIBS)
7e3931
serial_CFLAGS = $(CUPS_CFLAGS)
7e3931
7e3931
implicitclass_SOURCES = \
7e3931
	backend/backend-private.h \
7e3931
	backend/implicitclass.c
7e3931
implicitclass_LDADD = $(CUPS_LIBS)
7e3931
implicitclass_CFLAGS = $(CUPS_CFLAGS)
7e3931
7e3931
test1284_SOURCES = \
7e3931
	backend/backend-private.h \
7e3931
	backend/ieee1284.c \
7e3931
	backend/test1284.c
7e3931
test1284_LDADD = $(CUPS_LIBS)
7e3931
test1284_CFLAGS = $(CUPS_CFLAGS)
7e3931
7e3931
# =======
7e3931
# Banners
7e3931
# =======
7e3931
pkgbannerdir = $(CUPS_DATADIR)/banners
7e3931
pkgbanner_DATA = \
7e3931
	banners/classified \
7e3931
	banners/confidential \
7e3931
	banners/secret \
7e3931
	banners/standard \
7e3931
	banners/topsecret \
7e3931
	banners/unclassified
7e3931
7e3931
EXTRA_DIST += $(pkgbanner_DATA)
7e3931
7e3931
# ========
7e3931
# Charsets
7e3931
# ========
7e3931
pkgcharsetdir = $(CUPS_DATADIR)/charsets
7e3931
pkgcharset_DATA = \
7e3931
	charset/pdf.utf-8.heavy \
7e3931
	charset/pdf.utf-8.simple
7e3931
7e3931
EXTRA_DIST += $(pkgcharset_DATA)
7e3931
7e3931
# ====================
7e3931
# CUPS Filters library
7e3931
# ====================
7e3931
pkgfiltersincludedir = $(includedir)/cupsfilters
7e3931
pkgfiltersinclude_DATA = \
7e3931
	cupsfilters/driver.h \
7e3931
	cupsfilters/image.h
7e3931
7e3931
lib_LTLIBRARIES = libcupsfilters.la
7e3931
7e3931
check_PROGRAMS += \
7e3931
	testcmyk \
7e3931
	testdither \
7e3931
	testimage \
7e3931
	testrgb
7e3931
TESTS = \
7e3931
	testdither
7e3931
#	testcmyk # fails as it opens some image.ppm which is nowerhe to be found.
7e3931
#	testimage # requires also some ppm file as argument
7e3931
#	testrgb # same error
7e3931
# FIXME: run old testdither
7e3931
#	./testdither > test/0-255.pgm 2>test/0-255.log
7e3931
#	./testdither 0 127 255 > test/0-127-255.pgm 2>test/0-127-255.log
7e3931
#	./testdither 0 85 170 255 > test/0-85-170-255.pgm 2>test/0-85-170-255.log
7e3931
#	./testdither 0 63 127 170 198 227 255 > test/0-63-127-170-198-227-255.pgm 2>test/0-63-127-170-198-227-255.log
7e3931
#	./testdither 0 210 383 > test/0-210-383.pgm 2>test/0-210-383.log
7e3931
#	./testdither 0 82 255 > test/0-82-255.pgm 2>test/0-82-255.log
7e3931
#	./testdither 0 510 > test/0-510.pgm 2>test/0-510.log
7e3931
#	./testdither 0 1020 > test/0-1020.pgm 2>test/0-1020.log
7e3931
7e3931
7e3931
libcupsfilters_la_SOURCES = \
7e3931
	cupsfilters/attr.c \
7e3931
	cupsfilters/check.c \
7e3931
	cupsfilters/cmyk.c \
7e3931
	cupsfilters/dither.c \
7e3931
	cupsfilters/image.c \
7e3931
	cupsfilters/image-bmp.c \
7e3931
	cupsfilters/image-colorspace.c \
7e3931
	cupsfilters/image-gif.c \
7e3931
	cupsfilters/image-jpeg.c \
7e3931
	cupsfilters/image-photocd.c \
7e3931
	cupsfilters/image-pix.c \
7e3931
	cupsfilters/image-png.c \
7e3931
	cupsfilters/image-pnm.c \
7e3931
	cupsfilters/image-private.h \
7e3931
	cupsfilters/image-sgi.c \
7e3931
	cupsfilters/image-sgi.h \
7e3931
	cupsfilters/image-sgilib.c \
7e3931
	cupsfilters/image-sun.c \
7e3931
	cupsfilters/image-tiff.c \
7e3931
	cupsfilters/image-zoom.c \
7e3931
	cupsfilters/lut.c \
7e3931
	cupsfilters/pack.c \
7e3931
	cupsfilters/rgb.c \
7e3931
	cupsfilters/srgb.c \
7e3931
	$(pkgfiltersinclude_DATA)
7e3931
libcupsfilters_la_LIBADD = \
7e3931
	$(CUPS_LIBS) \
7e3931
	$(LIBJPEG_LIBS) \
7e3931
	$(LIBPNG_LIBS) \
7e3931
	$(TIFF_LIBS) \
7e3931
	-lm
7e3931
libcupsfilters_la_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	$(LIBJPEG_CFLAGS) \
7e3931
	$(LIBPNG_CFLAGS) \
7e3931
	$(TIFF_CFLAGS)
7e3931
7e3931
libcupsfilters_la_LDFLAGS = \
7e3931
	-no-undefined \
7e3931
	-version-info 1
7e3931
7e3931
testcmyk_SOURCES = \
7e3931
	cupsfilters/testcmyk.c \
7e3931
	$(pkgfiltersinclude_DATA)
7e3931
testcmyk_LDADD = \
7e3931
	libcupsfilters.la \
7e3931
	-lm
7e3931
7e3931
testdither_SOURCES = \
7e3931
	cupsfilters/testdither.c \
7e3931
	$(pkgfiltersinclude_DATA)
7e3931
testdither_LDADD = \
7e3931
	libcupsfilters.la \
7e3931
	-lm
7e3931
7e3931
testimage_SOURCES = \
7e3931
	cupsfilters/testimage.c \
7e3931
	$(pkgfiltersinclude_DATA)
7e3931
testimage_LDADD = \
7e3931
	$(LIBJPEG_LIBS) \
7e3931
	$(LIBPNG_LIBS) \
7e3931
	$(TIFF_LIBS) \
7e3931
	libcupsfilters.la \
7e3931
	-lm
7e3931
testimage_CFLAGS = \
7e3931
	$(LIBJPEG_CFLAGS) \
7e3931
	$(LIBPNG_CFLAGS) \
7e3931
	$(TIFF_CFLAGS)
7e3931
7e3931
testrgb_SOURCES = \
7e3931
	cupsfilters/testrgb.c \
7e3931
	$(pkgfiltersinclude_DATA)
7e3931
testrgb_LDADD = \
7e3931
	libcupsfilters.la \
7e3931
	-lm
7e3931
7e3931
EXTRA_DIST += \
7e3931
	$(pkgfiltersinclude_DATA) \
7e3931
	cupsfilters/image.pgm \
7e3931
	cupsfilters/image.ppm
7e3931
7e3931
# =========
7e3931
# CUPS Data
7e3931
# =========
7e3931
pkgcupsdatadir = $(CUPS_DATADIR)/data
7e3931
pkgcupsdata_DATA = \
7e3931
	data/default.pdf \
7e3931
	data/default-testpage.pdf \
7e3931
	data/testprint
7e3931
7e3931
EXTRA_DIST += $(pkgcupsdata_DATA)
7e3931
7e3931
# ===========
7e3931
# CUPS Config
7e3931
# ===========
7e3931
pkgcupsserverrootdir = $(CUPS_SERVERROOT)
7e3931
pkgcupsserverroot_DATA = \
7e3931
	utils/cups-browsed.conf
7e3931
7e3931
# =======
7e3931
# Drivers
7e3931
# =======
7e3931
pkgdriverdir = $(CUPS_DATADIR)/drv
7e3931
pkgdriver_DATA = \
7e3931
	drv/cupsfilters.drv
7e3931
7e3931
EXTRA_DIST += $(pkgdriver_DATA)
7e3931
7e3931
# =======
7e3931
# Definitions for drivers
7e3931
# =======
7e3931
pkgppdcdir = $(CUPS_DATADIR)/ppdc
7e3931
pkgppdc_DATA = \
7e3931
	filter/pcl.h
7e3931
7e3931
EXTRA_DIST += $(pkgppdc_DATA)
7e3931
7e3931
# =====
7e3931
# MIMEs
7e3931
# =====
7e3931
pkgmimedir = $(CUPS_DATADIR)/mime
7e3931
pkgmime_DATA = \
7e3931
	mime/cupsfilters.convs \
7e3931
	mime/cupsfilters.types
7e3931
7e3931
EXTRA_DIST += $(pkgmime_DATA)
7e3931
7e3931
# =================
7e3931
# Fontembed library
7e3931
# =================
7e3931
pkgfontembedincludedir = $(includedir)/fontembed
7e3931
pkgfontembedinclude_DATA = \
7e3931
        fontembed/bitset.h \
7e3931
        fontembed/embed.h \
7e3931
        fontembed/fontfile.h \
7e3931
        fontembed/iofn.h \
7e3931
        fontembed/sfnt.h
7e3931
7e3931
lib_LTLIBRARIES += libfontembed.la
7e3931
7e3931
bin_PROGRAMS = ttfread
7e3931
7e3931
check_PROGRAMS += \
7e3931
	test_analyze \
7e3931
	test_pdf \
7e3931
	test_ps
7e3931
TESTS += \
7e3931
	test_analyze \
7e3931
	test_pdf \
7e3931
	test_ps
7e3931
7e3931
libfontembed_la_SOURCES = \
7e3931
	fontembed/aglfn13.c \
7e3931
	fontembed/bitset.h \
7e3931
	fontembed/dynstring.c \
7e3931
	fontembed/dynstring.h \
7e3931
	fontembed/embed.c \
7e3931
	fontembed/embed.h \
7e3931
	fontembed/embed_sfnt.c \
7e3931
	fontembed/embed_sfnt_int.h \
7e3931
	fontembed/embed_pdf.c \
7e3931
	fontembed/embed_pdf.h \
7e3931
	fontembed/embed_pdf_int.h \
7e3931
	fontembed/fontfile.c \
7e3931
	fontembed/fontfile.h \
7e3931
	fontembed/frequent.c \
7e3931
	fontembed/frequent.h \
7e3931
	fontembed/iofn.h \
7e3931
	fontembed/macroman.h \
7e3931
	fontembed/sfnt.c \
7e3931
	fontembed/sfnt.h \
7e3931
	fontembed/sfnt_int.h \
7e3931
	fontembed/sfnt_subset.c
7e3931
libfontembed_la_LDFLAGS = \
7e3931
	-no-undefined \
7e3931
	-version-info 1
7e3931
7e3931
ttfread_SOURCES = fontembed/main.c
7e3931
ttfread_LDADD = libfontembed.la
7e3931
7e3931
test_analyze_SOURCES = fontembed/test_analyze.c
7e3931
test_analyze_LDADD = libfontembed.la
7e3931
7e3931
test_pdf_SOURCES = fontembed/test_pdf.c
7e3931
test_pdf_LDADD = libfontembed.la
7e3931
7e3931
test_ps_SOURCES = fontembed/test_ps.c
7e3931
test_ps_LDADD = libfontembed.la
7e3931
7e3931
EXTRA_DIST += \
7e3931
	$(pkgfontembedinclude_DATA) \
7e3931
	fontembed/README
7e3931
7e3931
# ===========
7e3931
# PDF to OPVP
7e3931
# ===========
7e3931
pkgfilterdir = $(CUPS_SERVERBIN)/filter
7e3931
pkgfilter_PROGRAMS = pdftoopvp
7e3931
7e3931
pkgfontconfigdir = $(sysconfdir)/$(FONTDIR)
7e3931
pkgfontconfig_DATA = filter/pdftoopvp/99pdftoopvp.conf
7e3931
7e3931
pdftoopvp_SOURCES = \
7e3931
	filter/pdftoopvp/oprs/OPRS.cxx \
7e3931
	filter/pdftoopvp/oprs/OPRS.h \
7e3931
	filter/pdftoopvp/oprs/OPVPSplashClip.cxx \
7e3931
	filter/pdftoopvp/oprs/OPVPSplashClip.h \
7e3931
	filter/pdftoopvp/oprs/OPVPSplash.cxx \
7e3931
	filter/pdftoopvp/oprs/OPVPSplash.h \
7e3931
	filter/pdftoopvp/oprs/OPVPSplashPath.cxx \
7e3931
	filter/pdftoopvp/oprs/OPVPSplashPath.h \
7e3931
	filter/pdftoopvp/oprs/OPVPSplashState.cxx \
7e3931
	filter/pdftoopvp/oprs/OPVPSplashState.h \
7e3931
	filter/pdftoopvp/oprs/OPVPSplashXPath.cxx \
7e3931
	filter/pdftoopvp/oprs/OPVPSplashXPath.h \
7e3931
	filter/pdftoopvp/oprs/OPVPWrapper.cxx \
7e3931
	filter/pdftoopvp/oprs/OPVPWrapper.h \
7e3931
	filter/pdftoopvp/oprs/OPVPWrapper_0_2.cxx \
7e3931
	filter/pdftoopvp/oprs/OPVPWrapper_0_2.h \
7e3931
	filter/pdftoopvp/OPVPError.h \
7e3931
	filter/pdftoopvp/opvp/opvp_common.h \
7e3931
	filter/pdftoopvp/opvp/opvp.h \
7e3931
	filter/pdftoopvp/opvp/opvp_0_2_0.h \
7e3931
	filter/pdftoopvp/OPVPOutputDev.cxx \
7e3931
	filter/pdftoopvp/OPVPOutputDev.h \
7e3931
	filter/pdftoopvp/pdftoopvp.cxx
7e3931
pdftoopvp_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	$(FREETYPE_CFLAGS) \
7e3931
	$(FONTCONFIG_CFLAGS) \
7e3931
	$(LIBPNG_CFLAGS) \
7e3931
	$(POPPLER_CFLAGS) \
7e3931
	-I$(srcdir)/filter/pdftoopvp/oprs \
7e3931
	-I$(srcdir)/filter/pdftoopvp/opvp
7e3931
pdftoopvp_CXXFLAGS = $(pdftoopvp_CFLAGS)
7e3931
pdftoopvp_LDADD = \
7e3931
	$(CUPS_LIBS) \
7e3931
	$(FREETYPE_LIBS) \
7e3931
	$(FONTCONFIG_LIBS) \
7e3931
	$(LIBPNG_LIBS) \
7e3931
	$(POPPLER_LIBS) \
7e3931
	$(DLOPEN_LIBS)
7e3931
7e3931
EXTRA_DIST += $(pkgfontconfig_DATA)
7e3931
7e3931
# ==========
7e3931
# PDF to PDF 
7e3931
# ==========
7e3931
pkgfilter_PROGRAMS += pdftopdf
7e3931
7e3931
pdftopdf_SOURCES = \
7e3931
	filter/pdftopdf/pdftopdf.cc \
7e3931
	filter/pdftopdf/pdftopdf_jcl.cc \
7e3931
	filter/pdftopdf/pdftopdf_jcl.h \
7e3931
	filter/pdftopdf/pdftopdf_processor.cc \
7e3931
	filter/pdftopdf/pdftopdf_processor.h \
7e3931
	filter/pdftopdf/qpdf_pdftopdf_processor.cc \
7e3931
	filter/pdftopdf/qpdf_pdftopdf_processor.h \
7e3931
	filter/pdftopdf/pptypes.cc \
7e3931
	filter/pdftopdf/pptypes.h \
7e3931
	filter/pdftopdf/nup.cc \
7e3931
	filter/pdftopdf/nup.h \
7e3931
	filter/pdftopdf/intervalset.cc \
7e3931
	filter/pdftopdf/intervalset.h \
7e3931
	filter/pdftopdf/qpdf_tools.cc \
7e3931
	filter/pdftopdf/qpdf_tools.h \
7e3931
	filter/pdftopdf/qpdf_xobject.cc \
7e3931
	filter/pdftopdf/qpdf_xobject.h \
7e3931
	filter/pdftopdf/qpdf_pdftopdf.cc \
7e3931
	filter/pdftopdf/qpdf_pdftopdf.h \
7e3931
	filter/pdftopdf/qpdf_cm.cc \
7e3931
	filter/pdftopdf/qpdf_cm.h
7e3931
pdftopdf_CFLAGS = \
7e3931
	$(LIBQPDF_CFLAGS) \
7e3931
	$(CUPS_CFLAGS)
7e3931
pdftopdf_CXXFLAGS = -std=c++0x $(pdftopdf_CFLAGS)   # -std=c++11
7e3931
pdftopdf_LDADD = \
7e3931
	$(LIBQPDF_LIBS) \
7e3931
	$(CUPS_LIBS)
7e3931
7e3931
# ======================
7e3931
# Simple filter binaries
7e3931
# ======================
7e3931
pkgfilter_SCRIPTS = \
7e3931
	filter/imagetops \
7e3931
	filter/pstopdf \
7e3931
	filter/textonly \
7e3931
	filter/texttops
7e3931
pkgfilter_PROGRAMS += \
7e3931
	bannertopdf \
7e3931
	commandtoescpx \
7e3931
	commandtopclx \
7e3931
	pdftoijs \
7e3931
	pdftops \
7e3931
	pdftoraster \
7e3931
	rastertoescpx \
7e3931
	rastertopclx \
7e3931
	texttopdf \
7e3931
	urftopdf
7e3931
if ENABLE_IMAGEFILTERS
7e3931
pkgfilter_PROGRAMS += \
7e3931
	imagetopdf \
7e3931
	imagetoraster
7e3931
endif
7e3931
7e3931
check_PROGRAMS += \
7e3931
	test_pdf1 \
7e3931
	test_pdf2
7e3931
7e3931
TESTS += \
7e3931
	test_pdf1 \
7e3931
	test_pdf2
7e3931
7e3931
bannertopdf_SOURCES = \
7e3931
	filter/banner.c \
7e3931
	filter/banner.h \
7e3931
	filter/bannertopdf.c \
7e3931
	filter/pdf.cxx \
7e3931
	filter/pdf.h
7e3931
EXTRA_bannertopdf_SOURCES = filter/getline.c
7e3931
bannertopdf_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	$(LIBJPEG_CFLAGS) \
7e3931
	$(LIBPNG_CFLAGS) \
7e3931
	$(POPPLER_CFLAGS) \
7e3931
	$(TIFF_CFLAGS)
7e3931
bannertopdf_CXXFLAGS = $(bannertopdf_CFLAGS)
7e3931
bannertopdf_LDADD = \
7e3931
	$(GETLINE) \
7e3931
	$(CUPS_LIBS) \
7e3931
	$(LIBJPEG_LIBS) \
7e3931
	$(LIBPNG_LIBS) \
7e3931
	$(POPPLER_LIBS) \
7e3931
	$(TIFF_LIBS)
7e3931
bannertopdf_DEPENDENCIES = $(GETLINE)
7e3931
7e3931
commandtoescpx_SOURCES = \
7e3931
	cupsfilters/driver.h \
7e3931
	filter/commandtoescpx.c \
7e3931
	filter/pcl.h
7e3931
commandtoescpx_CFLAGS= \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	-I$(srcdir)/cupsfilters/
7e3931
commandtoescpx_LDADD = $(CUPS_LIBS)
7e3931
7e3931
commandtopclx_SOURCES = \
7e3931
	cupsfilters/driver.h \
7e3931
	filter/commandtopclx.c \
7e3931
	filter/pcl.h
7e3931
commandtopclx_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	-I$(srcdir)/cupsfilters/
7e3931
commandtopclx_LDADD = $(CUPS_LIBS)
7e3931
7e3931
imagetopdf_SOURCES = \
7e3931
	cupsfilters/image.h \
7e3931
	filter/common.c \
7e3931
	filter/common.h \
7e3931
	filter/imagetopdf.c
7e3931
imagetopdf_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	$(LIBJPEG_CFLAGS) \
7e3931
	$(LIBPNG_CFLAGS) \
7e3931
	$(TIFF_CFLAGS) \
7e3931
	-I$(srcdir)/cupsfilters/
7e3931
imagetopdf_LDADD = \
7e3931
	$(CUPS_LIBS) \
7e3931
	$(LIBJPEG_LIBS) \
7e3931
	$(LIBPNG_LIBS) \
7e3931
	$(TIFF_LIBS) \
7e3931
	libcupsfilters.la
7e3931
7e3931
imagetoraster_SOURCES = \
7e3931
	cupsfilters/image.h \
7e3931
	cupsfilters/image-private.h \
7e3931
	filter/common.c \
7e3931
	filter/common.h \
7e3931
	filter/imagetoraster.c
7e3931
imagetoraster_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	-I$(srcdir)/cupsfilters/
7e3931
imagetoraster_LDADD = \
7e3931
	$(CUPS_LIBS) \
7e3931
	libcupsfilters.la
7e3931
7e3931
urftopdf_SOURCES = \
7e3931
	filter/urftopdf.cpp \
7e3931
	filter/unirast.h
7e3931
urftopdf_CXXFLAGS = \
7e3931
	$(LIBQPDF_CFLAGS)
7e3931
urftopdf_LDADD = \
7e3931
	$(LIBQPDF_LIBS)
7e3931
7e3931
pdftoijs_SOURCES = \
7e3931
	filter/pdftoijs.cxx \
7e3931
	filter/PDFError.h
7e3931
pdftoijs_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	$(IJS_CFLAGS) \
7e3931
	$(POPPLER_CFLAGS)
7e3931
pdftoijs_CXXFLAGS = $(pdftoijs_CFLAGS)
7e3931
pdftoijs_LDADD = \
7e3931
	$(CUPS_LIBS) \
7e3931
	$(IJS_LIBS) \
7e3931
	$(POPPLER_LIBS)
7e3931
7e3931
pdftops_SOURCES = \
7e3931
	filter/common.c \
7e3931
	filter/common.h \
7e3931
	filter/pdftops.c
7e3931
EXTRA_pdftops_SOURCES = filter/strcasestr.c
7e3931
pdftops_CFLAGS = $(CUPS_CFLAGS)
7e3931
pdftops_LDADD = $(STRCASESTR) $(CUPS_LIBS)
7e3931
pdftops_DEPENDENCIES = $(STRCASESTR)
7e3931
7e3931
pdftoraster_SOURCES = \
7e3931
	filter/pdftoraster.cxx \
7e3931
	filter/PDFError.h
7e3931
pdftoraster_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	$(LCMS_CFLAGS) \
7e3931
	$(LIBJPEG_CFLAGS) \
7e3931
	$(LIBPNG_CFLAGS) \
7e3931
	$(POPPLER_CFLAGS) \
7e3931
	$(TIFF_CFLAGS) \
7e3931
	-I$(srcdir)/cupsfilters/
7e3931
pdftoraster_CXXFLAGS = $(pdftoraster_CFLAGS)
7e3931
pdftoraster_LDADD = \
7e3931
	$(CUPS_LIBS) \
7e3931
	$(LCMS_LIBS) \
7e3931
	$(LIBJPEG_LIBS) \
7e3931
	$(LIBPNG_LIBS) \
7e3931
	$(POPPLER_LIBS) \
7e3931
	$(TIFF_LIBS) \
7e3931
	libcupsfilters.la
7e3931
7e3931
rastertoescpx_SOURCES = \
7e3931
	cupsfilters/driver.h \
7e3931
	filter/escp.h \
7e3931
	filter/rastertoescpx.c
7e3931
rastertoescpx_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	-I$(srcdir)/cupsfilters/
7e3931
rastertoescpx_LDADD = \
7e3931
	$(CUPS_LIBS) \
7e3931
	libcupsfilters.la
7e3931
7e3931
rastertopclx_SOURCES = \
7e3931
	cupsfilters/driver.h \
7e3931
	filter/pcl.h \
7e3931
	filter/pcl-common.c \
7e3931
	filter/pcl-common.h \
7e3931
	filter/rastertopclx.c
7e3931
rastertopclx_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	$(LIBPNG_CFLAGS) \
7e3931
	-I$(srcdir)/cupsfilters/
7e3931
rastertopclx_LDADD = \
7e3931
	$(CUPS_LIBS) \
7e3931
	$(LIBPNG_LIBS) \
7e3931
	libcupsfilters.la
7e3931
7e3931
test_pdf1_SOURCES = \
7e3931
	filter/pdfutils.c \
7e3931
	filter/pdfutils.h \
7e3931
	filter/test_pdf1.c \
7e3931
	fontembed/embed.h \
7e3931
	fontembed/sfnt.h
7e3931
test_pdf1_CFLAGS = -I$(srcdir)/fontembed/
7e3931
test_pdf1_LDADD = libfontembed.la
7e3931
7e3931
test_pdf2_SOURCES = \
7e3931
	filter/pdfutils.c \
7e3931
	filter/pdfutils.h \
7e3931
	filter/test_pdf2.c \
7e3931
	fontembed/embed.h \
7e3931
	fontembed/sfnt.h
7e3931
test_pdf2_CFLAGS = -I$(srcdir)/fontembed/
7e3931
test_pdf2_LDADD = libfontembed.la
7e3931
7e3931
texttopdf_SOURCES = \
7e3931
	filter/common.c \
7e3931
	filter/common.h \
7e3931
	filter/pdfutils.c \
7e3931
	filter/pdfutils.h \
7e3931
	filter/textcommon.c \
7e3931
	filter/textcommon.h \
7e3931
	filter/texttopdf.c \
7e3931
	fontembed/bitset.h \
7e3931
	fontembed/embed.h \
7e3931
	fontembed/fontfile.h \
7e3931
	fontembed/iofn.h \
7e3931
	fontembed/sfnt.h
7e3931
texttopdf_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	$(FONTCONFIG_CFLAGS) \
7e3931
	-I$(srcdir)/fontembed/
7e3931
texttopdf_LDADD = \
7e3931
	$(CUPS_LIBS) \
7e3931
	$(FONTCONFIG_LIBS) \
7e3931
	libfontembed.la
7e3931
7e3931
# Not reliable bash script
7e3931
#TESTS += filter/test.sh
7e3931
7e3931
EXTRA_DIST += \
7e3931
	$(pkgfilter_SCRIPTS) \
7e3931
	filter/test.sh
7e3931
7e3931
# =====
7e3931
# UTILS
7e3931
# =====
7e3931
7e3931
cups_notifier_sources = \
7e3931
	cups-notifier.c \
7e3931
	cups-notifier.h
7e3931
7e3931
$(cups_notifier_sources): utils/org.cups.cupsd.Notifier.xml
7e3931
	gdbus-codegen \
7e3931
	    --interface-prefix org.cups.cupsd \
7e3931
	    --c-namespace Cups \
7e3931
	    --generate-c-code cups-notifier \
7e3931
	    utils/org.cups.cupsd.Notifier.xml
7e3931
7e3931
sbin_PROGRAMS = \
7e3931
	cups-browsed
7e3931
cups_browsed_SOURCES = \
7e3931
	utils/cups-browsed.c
7e3931
nodist_cups_browsed_SOURCES = \
7e3931
	$(cups_notifier_sources)
7e3931
cups_browsed_CFLAGS = \
7e3931
	$(CUPS_CFLAGS) \
7e3931
	$(AVAHI_CFLAGS) \
7e3931
	$(AVAHI_GLIB_CFLAGS) \
7e3931
	$(GLIB_CFLAGS) \
7e3931
	$(GLIB_CFLAGS) \
7e3931
	$(GIO_CFLAGS) \
7e3931
	$(GIO_UNIX_CFLAGS) \
7e3931
	-I$(srcdir)/cupsfilters/
7e3931
cups_browsed_CXXFLAGS = $(cups_browsed_CFLAGS)
7e3931
cups_browsed_LDADD = \
7e3931
	$(CUPS_LIBS) \
7e3931
	$(AVAHI_LIBS) \
7e3931
	$(AVAHI_GLIB_LIBS) \
7e3931
	$(GLIB_LIBS) \
7e3931
	$(GLIB_LIBS) \
7e3931
	$(GIO_LIBS) \
7e3931
	$(GIO_UNIX_LIBS) \
7e3931
	libcupsfilters.la
7e3931
initrcdir = $(INITDDIR)
7e3931
initrc_SCRIPTS = utils/cups-browsed
7e3931
man_MANS = \
7e3931
	utils/cups-browsed.8 \
7e3931
	utils/cups-browsed.conf.5
7e3931
EXTRA_DIST += utils/cups-browsed.in \
7e3931
	$(man_MANS) \
7e3931
	utils/org.cups.cupsd.Notifier.xml
7e3931
BUILT_SOURCES = $(cups_notifier_sources)
7e3931
CLEANFILES = $(BUILT_SOURCES)
7e3931
7e3931
# ===
7e3931
# PPD
7e3931
# ===
7e3931
ppddir = $(datadir)/ppd/cupsfilters
7e3931
ppd_DATA = \
7e3931
	ppd/Generic-PDF_Printer-PDF.ppd \
7e3931
	ppd/HP-Color_LaserJet_CM3530_MFP-PDF.ppd \
7e3931
	ppd/HP-PhotoSmart_Pro_B8300-hpijs-pdftoijs.ppd \
7e3931
	ppd/textonly.ppd
7e3931
7e3931
EXTRA_DIST += $(ppd_DATA)
7e3931
7e3931
# =========
7e3931
# Scripting
7e3931
# =========
7e3931
if WITH_PHP
7e3931
phpextensiondir = $(PHPDIR)
7e3931
phpextension_LTLIBRARIES = libphpcups.la
7e3931
libphpcups_la_SOURCES = \
7e3931
	scripting/php/phpcups.c \
7e3931
	scripting/php/phpcups.h
7e3931
libphpcups_la_LIBADD = $(CUPS_LIBS)
7e3931
libphpcups_la_CFLAGS = $(CUPS_CFLAGS)
7e3931
libphpcups_la_LDFLAGS = -no-undefined
7e3931
endif # WITH_PHP
7e3931
7e3931
EXTRA_DIST += \
7e3931
	scripting/perl \
7e3931
	scripting/php/README \
7e3931
	scripting/php/phpcups.php
7e3931
7e3931
distclean-local:
7e3931
	rm -rf *.cache *~
7e3931
7e3931
install-exec-hook:
7e3931
	$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
7e3931
	$(INSTALL) -d -m 755 $(DESTDIR)$(pkgfilterdir)
7e3931
	$(INSTALL) -d -m 755 $(DESTDIR)$(pkgbackenddir)
7e3931
7e3931
install-data-hook:
7e3931
if RCLINKS
7e3931
	for level in $(RCLEVELS); do \
7e3931
		$(INSTALL) -d -m 755 $(DESTDIR)$(INITDIR)/rc$${level}.d; \
7e3931
		$(LN_S) -f ../init.d/cups-browsed $(DESTDIR)$(INITDIR)/rc$${level}.d/S$(RCSTART)cups-browsed; \
7e3931
		$(LN_S) -f ../init.d/cups-browsed $(DESTDIR)$(INITDIR)/rc$${level}.d/K$(RCSTOP)cups-browsed; \
7e3931
	done; \
7e3931
	$(INSTALL) -d -m 755 $(DESTDIR)$(INITDIR)/rc0.d; \
7e3931
	$(LN_S) -f ../init.d/cups-browsed $(DESTDIR)$(INITDIR)/rc0.d/K$(RCSTOP)cups-browsed;
7e3931
endif
7e3931
	$(LN_S) -f pdf.utf-8.simple \
7e3931
		$(DESTDIR)$(pkgcharsetdir)/pdf.utf-8
7e3931
7e3931
7e3931
uninstall-hook:
7e3931
if RCLINKS
7e3931
	if test "x$(INITDIR)" != x; then \
7e3931
		$(RM) $(DESTDIR)$(BUILDROOT)$(INITDIR)/rc?.d/[SK]??cups-browsed || :; \
7e3931
		rmdir $(DESTDIR)$(BUILDROOT)$(INITDIR)/rc?.d || :;\
7e3931
	fi
7e3931
endif
7e3931
	$(RM) $(DESTDIR)$(pkgcharsetdir)/pdf.utf-8