Blame SOURCES/Makefile.am

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