Blame SOURCES/Makefile.am

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