2 # Common makefile definitions for CUPS.
4 # Copyright 2007-2018 by Apple Inc.
5 # Copyright 1997-2007 by Easy Software Products, all rights reserved.
7 # These coded instructions, statements, and computer programs are the
8 # property of Apple Inc. and are protected by Federal copyright
9 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 # which should have been included with this file. If this file is
11 # missing or damaged, see the license at "http://www.cups.org/".
18 CUPS_VERSION = @CUPS_VERSION@
27 CC = @LIBTOOL_CC@ @CC@
29 CXX = @LIBTOOL_CXX@ @CXX@
48 # Installation programs...
51 INSTALL_BIN = @LIBTOOL_INSTALL@ $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ @INSTALL_STRIP@
52 INSTALL_COMPDATA = $(INSTALL) -c -m 444 @INSTALL_GZIP@
53 INSTALL_CONFIG = $(INSTALL) -c -m @CUPS_CONFIG_FILE_PERM@
54 INSTALL_DATA = $(INSTALL) -c -m 444
55 INSTALL_DIR = $(INSTALL) -d
56 INSTALL_LIB = @LIBTOOL_INSTALL@ $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ @INSTALL_STRIP@
57 INSTALL_MAN = $(INSTALL) -c -m 444
58 INSTALL_SCRIPT = $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@
61 # Default user, group, and system groups for the scheduler...
64 CUPS_USER = @CUPS_USER@
65 CUPS_GROUP = @CUPS_GROUP@
66 CUPS_SYSTEM_GROUPS = @CUPS_SYSTEM_GROUPS@
67 CUPS_PRIMARY_SYSTEM_GROUP = @CUPS_PRIMARY_SYSTEM_GROUP@
70 # Default permissions...
73 CUPS_CONFIG_FILE_PERM = @CUPS_CONFIG_FILE_PERM@
74 CUPS_CUPSD_FILE_PERM = @CUPS_CUPSD_FILE_PERM@
75 CUPS_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@
78 # Languages to install...
81 LANGUAGES = @LANGUAGES@
82 INSTALL_LANGUAGES = @INSTALL_LANGUAGES@
83 UNINSTALL_LANGUAGES = @UNINSTALL_LANGUAGES@
86 # Cross-compilation support: "local" target is used for any tools that are
87 # built and run locally.
90 LOCALTARGET = @LOCALTARGET@
98 LIBCUPSCGI = @LIBCUPSCGI@
99 LIBCUPSIMAGE = @LIBCUPSIMAGE@
100 LIBCUPSMIME = @LIBCUPSMIME@
101 LIBCUPSPPDC = @LIBCUPSPPDC@
102 LIBCUPSSTATIC = @LIBCUPSSTATIC@
103 LIBGSSAPI = @LIBGSSAPI@
104 LIBMALLOC = @LIBMALLOC@
106 LIBPAPER = @LIBPAPER@
112 # Install static libraries?
115 INSTALLSTATIC = @INSTALLSTATIC@
118 # IPP backend aliases...
121 IPPALIASES = @IPPALIASES@
124 # Install XPC backends?
127 INSTALLXPC = @INSTALLXPC@
133 CODE_SIGN = @CODE_SIGN@
134 CODE_SIGN_IDENTITY = -
139 # ARCHFLAGS Defines the default architecture build options.
140 # OPTIM Defines the common compiler optimization/debugging options
141 # for all architectures.
142 # OPTIONS Defines other compile-time options (currently only -DDEBUG
143 # for extra debug info)
146 ALL_CFLAGS = -I.. -D_CUPS_SOURCE $(CFLAGS) $(SSLFLAGS) \
147 @LARGEFILE@ @PTHREAD_FLAGS@ $(ONDEMANDFLAGS) $(OPTIONS)
148 ALL_CXXFLAGS = -I.. -D_CUPS_SOURCE $(CXXFLAGS) $(SSLFLAGS) \
149 @LARGEFILE@ @PTHREAD_FLAGS@ $(ONDEMANDFLAGS) $(OPTIONS)
150 ARCHFLAGS = @ARCHFLAGS@
152 BACKLIBS = @BACKLIBS@
153 BUILDDIRS = @BUILDDIRS@
154 CFLAGS = @CPPFLAGS@ @CFLAGS@
156 CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@
158 DBUS_NOTIFIER = @DBUS_NOTIFIER@
159 DBUS_NOTIFIERLIBS = @DBUS_NOTIFIERLIBS@
160 DNSSD_BACKEND = @DNSSD_BACKEND@
161 DSOFLAGS = -L../cups @DSOFLAGS@
162 DSOLIBS = @DSOLIBS@ $(COMMONLIBS)
163 DNSSDLIBS = @DNSSDLIBS@
164 IPPFIND_BIN = @IPPFIND_BIN@
165 IPPFIND_MAN = @IPPFIND_MAN@
166 LDFLAGS = -L../cgi-bin -L../cups -L../filter -L../ppdc \
167 -L../scheduler @LDARCHFLAGS@ \
168 @LDFLAGS@ @RELROFLAGS@ @PIEFLAGS@ $(OPTIM)
169 LINKCUPS = @LINKCUPS@ $(LIBGSSAPI) $(DNSSDLIBS) $(SSLLIBS) $(LIBZ)
170 LINKCUPSIMAGE = @LINKCUPSIMAGE@
171 LIBS = $(LINKCUPS) $(COMMONLIBS)
172 ONDEMANDFLAGS = @ONDEMANDFLAGS@
173 ONDEMANDLIBS = @ONDEMANDLIBS@
177 SERVERLIBS = @SERVERLIBS@
178 SSLFLAGS = @SSLFLAGS@
180 UNITTESTS = @UNITTESTS@
186 # The first section uses the GNU names (which are *extremely*
187 # difficult to find in a makefile because they are lowercase...)
188 # We have to define these first because autoconf uses ${prefix}
189 # and ${exec_prefix} for most of the other directories...
191 # The "datarootdir" variable may not get defined if you are using
192 # a version of autoconf prior to 2.60.
194 # This is immediately followed by definition in ALL CAPS for the
195 # needed directories...
200 datarootdir = @datarootdir@
201 exec_prefix = @exec_prefix@
202 includedir = @includedir@
205 libexecdir = @libexecdir@
206 localstatedir = @localstatedir@
208 oldincludedir = @oldincludedir@
210 privateinclude = @privateinclude@
212 sharedstatedir = @sharedstatedir@
214 sysconfdir = @sysconfdir@
215 top_srcdir = @top_srcdir@
217 BUILDROOT = $(DSTROOT)
219 AMANDIR = $(BUILDROOT)@AMANDIR@
220 BINDIR = $(BUILDROOT)@bindir@
221 BUNDLEDIR = @CUPS_BUNDLEDIR@
222 CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@
223 DATADIR = $(BUILDROOT)@CUPS_DATADIR@
224 DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@
226 INCLUDEDIR = $(BUILDROOT)$(includedir)
227 LIBDIR = $(BUILDROOT)$(libdir)
228 LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@
229 LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@
230 MANDIR = $(BUILDROOT)@mandir@
232 PMANDIR = $(BUILDROOT)@PMANDIR@
233 PRIVATEINCLUDE = $(BUILDROOT)@PRIVATEINCLUDE@
234 RCLEVELS = @RCLEVELS@
237 REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@
238 SBINDIR = $(BUILDROOT)@sbindir@
239 SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@
240 SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@
241 STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@
254 INITDDIR = @INITDDIR@
255 LAUNCHD_DIR = @LAUNCHD_DIR@
256 SMFMANIFESTDIR = @SMFMANIFESTDIR@
257 SYSTEMD_DIR = @SYSTEMD_DIR@
260 USBQUIRKS = @USBQUIRKS@
268 .SUFFIXES: .1 .1.gz .1m .1m.gz .3 .3.gz .5 .5.gz .7 .7.gz .8 .8.gz .a .c .cxx .h .man .o .gz
272 $(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $<
276 $(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c -o $@ $<
278 .man.1 .man.1m .man.3 .man.5 .man.7 .man.8:
283 .man.1.gz .man.1m.gz .man.3.gz .man.5.gz .man.7.gz .man.8.gz .man.gz:
284 echo -n Compressing $<...