4
# Common makefile definitions for OpenPrinting CUPS Filters.
6
# Copyright 2007-2011 by Apple Inc.
7
# Copyright 1997-2007 by Easy Software Products, all rights reserved.
9
# These coded instructions, statements, and computer programs are the
10
# property of Apple Inc. and are protected by Federal copyright
11
# law. Distribution and use rights are outlined in the file "LICENSE.txt"
12
# which should have been included with this file. If this file is
13
# file is missing or damaged, see the license at "http://www.cups.org/".
30
PHPCONFIG = @PHPCONFIG@
38
# Installation programs...
41
INSTALL_BIN = $(LIBTOOL) $(INSTALL) -c -m 555 @INSTALL_STRIP@
42
INSTALL_CONFIG = $(INSTALL) -c -m @CUPS_CONFIG_FILE_PERM@
43
INSTALL_DATA = $(INSTALL) -c -m 444
44
INSTALL_DIR = $(INSTALL) -d
45
INSTALL_LIB = $(LIBTOOL) $(INSTALL) -c -m 555 @INSTALL_STRIP@
46
INSTALL_SCRIPT = $(INSTALL) -c -m 555
52
LIBCUPSFILTERS = @LIBCUPSFILTERS@
61
# OPTIM Defines the common compiler optimization/debugging options
62
# for all architectures.
63
# OPTIONS Defines other compile-time options.
66
ALL_CFLAGS = -Ifontembed -I.. $(CFLAGS) @LARGEFILE@ $(OPTIONS)
67
ALL_CXXFLAGS = -Ioprs -Iopvp -I../opvp -I../.. -I.. $(CXXFLAGS) \
68
@LARGEFILE@ $(OPTIONS)
71
CFLAGS = @CPPFLAGS@ @CFLAGS@
72
CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@
73
COMMONLIBS = @LIBS@ $(LINKCUPS)
75
DSOLIBS = @DSOLIBS@ $(COMMONLIBS)
77
LDFLAGS = @LDFLAGS@ @RELROFLAGS@ @PIEFLAGS@ $(OPTIM)
79
LCMS_LIBS = @LCMS_LIBS@ $(LIBS)
80
FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ $(LIBS)
81
FREETYPE_LIBS = @FREETYPE_LIBS@ $(LIBS)
82
IJS_LIBS = @IJS_LIBS@ $(LIBS)
83
POPPLER_LIBS = @POPPLER_LIBS@ $(LIBS)
85
LINKCUPSFILTERS = @LINKCUPSFILTERS@
89
PHPOPTIONS = @PHPOPTIONS@ -I../.. `$(PHPCONFIG) --includes`
94
# The first section uses the GNU names (which are *extremely*
95
# difficult to find in a makefile because they are lowercase...)
96
# We have to define these first because autoconf uses ${prefix}
97
# and ${exec_prefix} for most of the other directories...
99
# This is immediately followed by definition in ALL CAPS for the
100
# needed directories...
105
datarootdir = @datarootdir@
106
exec_prefix = @exec_prefix@
107
includedir = @includedir@
109
libexecdir = @libexecdir@
113
sysconfdir = @sysconfdir@
114
top_srcdir = @top_srcdir@
116
BUILDROOT = $(DSTROOT)
117
DATADIR = $(BUILDROOT)@CUPS_DATADIR@
118
FONTPATH = $(BUILDROOT)@CUPS_FONTPATH@
119
INCLUDEDIR = $(BUILDROOT)$(includedir)
120
LIBDIR = $(BUILDROOT)$(libdir)
121
SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@
128
.SUFFIXES: .a .c .cxx .h .o
132
$(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $<
136
$(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c -o $@ $<