4 # Common makefile definitions for CUPS.
6 # Copyright 2007-2014 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/".
40 # Installation programs...
43 INSTALL_BIN = $(LIBTOOL) $(INSTALL) -c -m 555 @INSTALL_STRIP@
44 INSTALL_COMPDATA = $(INSTALL) -c -m 444 @INSTALL_GZIP@
45 INSTALL_CONFIG = $(INSTALL) -c -m @CUPS_CONFIG_FILE_PERM@
46 INSTALL_DATA = $(INSTALL) -c -m 444
47 INSTALL_DIR = $(INSTALL) -d
48 INSTALL_LIB = $(LIBTOOL) $(INSTALL) -c -m 555 @INSTALL_STRIP@
49 INSTALL_MAN = $(INSTALL) -c -m 444
50 INSTALL_SCRIPT = $(INSTALL) -c -m 555
53 # Default user, group, and system groups for the scheduler...
56 CUPS_USER = @CUPS_USER@
57 CUPS_GROUP = @CUPS_GROUP@
58 CUPS_SYSTEM_GROUPS = @CUPS_SYSTEM_GROUPS@
59 CUPS_PRIMARY_SYSTEM_GROUP = @CUPS_PRIMARY_SYSTEM_GROUP@
62 # Default permissions...
65 CUPS_CONFIG_FILE_PERM = @CUPS_CONFIG_FILE_PERM@
66 CUPS_CUPSD_FILE_PERM = @CUPS_CUPSD_FILE_PERM@
67 CUPS_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@
70 # Languages to install...
73 LANGUAGES = @LANGUAGES@
74 INSTALL_LANGUAGES = @INSTALL_LANGUAGES@
75 UNINSTALL_LANGUAGES = @UNINSTALL_LANGUAGES@
82 LIBCUPSCGI = @LIBCUPSCGI@
83 LIBCUPSIMAGE = @LIBCUPSIMAGE@
84 LIBCUPSMIME = @LIBCUPSMIME@
85 LIBCUPSPPDC = @LIBCUPSPPDC@
86 LIBCUPSSTATIC = @LIBCUPSSTATIC@
87 LIBGSSAPI = @LIBGSSAPI@
88 LIBMALLOC = @LIBMALLOC@
96 # Install static libraries?
99 INSTALLSTATIC = @INSTALLSTATIC@
102 # IPP backend aliases...
105 IPPALIASES = @IPPALIASES@
108 # Install XPC backends?
111 INSTALLXPC = @INSTALLXPC@
116 # ARCHFLAGS Defines the default architecture build options.
117 # OPTIM Defines the common compiler optimization/debugging options
118 # for all architectures.
119 # OPTIONS Defines other compile-time options (currently only -DDEBUG
120 # for extra debug info)
123 ALL_CFLAGS = -I.. -D_CUPS_SOURCE $(CFLAGS) $(SSLFLAGS) \
124 @LARGEFILE@ @PTHREAD_FLAGS@ $(ONDEMANDFLAGS) $(OPTIONS)
125 ALL_CXXFLAGS = -I.. -D_CUPS_SOURCE $(CXXFLAGS) $(SSLFLAGS) \
126 @LARGEFILE@ @PTHREAD_FLAGS@ $(ONDEMANDFLAGS) $(OPTIONS)
127 ARCHFLAGS = @ARCHFLAGS@
129 BACKLIBS = @BACKLIBS@
130 BUILDDIRS = @BUILDDIRS@
131 CFLAGS = @CPPFLAGS@ @CFLAGS@
133 CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@
135 DBUS_NOTIFIER = @DBUS_NOTIFIER@
136 DBUS_NOTIFIERLIBS = @DBUS_NOTIFIERLIBS@
137 DNSSD_BACKEND = @DNSSD_BACKEND@
138 DSOFLAGS = -L../cups @DSOFLAGS@
139 DSOLIBS = @DSOLIBS@ $(COMMONLIBS)
140 DNSSDLIBS = @DNSSDLIBS@
141 IPPFIND_BIN = @IPPFIND_BIN@
142 IPPFIND_MAN = @IPPFIND_MAN@
143 LDFLAGS = -L../cgi-bin -L../cups -L../filter -L../ppdc \
144 -L../scheduler @LDARCHFLAGS@ \
145 @LDFLAGS@ @RELROFLAGS@ @PIEFLAGS@ $(OPTIM)
146 LINKCUPS = @LINKCUPS@ $(LIBGSSAPI) $(DNSSDLIBS) $(LIBZ)
147 LINKCUPSIMAGE = @LINKCUPSIMAGE@
148 LIBS = $(LINKCUPS) $(COMMONLIBS)
149 ONDEMANDFLAGS = @ONDEMANDFLAGS@
150 ONDEMANDLIBS = @ONDEMANDLIBS@
154 SERVERLIBS = @SERVERLIBS@
155 SSLFLAGS = @SSLFLAGS@
157 UNITTESTS = @UNITTESTS@
163 # The first section uses the GNU names (which are *extremely*
164 # difficult to find in a makefile because they are lowercase...)
165 # We have to define these first because autoconf uses ${prefix}
166 # and ${exec_prefix} for most of the other directories...
168 # The "datarootdir" variable may not get defined if you are using
169 # a version of autoconf prior to 2.60.
171 # This is immediately followed by definition in ALL CAPS for the
172 # needed directories...
177 datarootdir = @datarootdir@
178 exec_prefix = @exec_prefix@
179 includedir = @includedir@
182 libexecdir = @libexecdir@
183 localstatedir = @localstatedir@
185 oldincludedir = @oldincludedir@
187 privateinclude = @privateinclude@
189 sharedstatedir = @sharedstatedir@
191 sysconfdir = @sysconfdir@
192 top_srcdir = @top_srcdir@
194 BUILDROOT = $(DSTROOT)
196 AMANDIR = $(BUILDROOT)@AMANDIR@
197 BINDIR = $(BUILDROOT)@bindir@
198 BUNDLEDIR = @CUPS_BUNDLEDIR@
199 CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@
200 DATADIR = $(BUILDROOT)@CUPS_DATADIR@
201 DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@
203 INCLUDEDIR = $(BUILDROOT)$(includedir)
204 LIBDIR = $(BUILDROOT)$(libdir)
205 LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@
206 LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@
207 MANDIR = $(BUILDROOT)@mandir@
209 PMANDIR = $(BUILDROOT)@PMANDIR@
210 PRIVATEINCLUDE = $(BUILDROOT)@PRIVATEINCLUDE@
211 RCLEVELS = @RCLEVELS@
214 REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@
215 SBINDIR = $(BUILDROOT)@sbindir@
216 SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@
217 SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@
218 STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@
231 INITDDIR = @INITDDIR@
232 LAUNCHD_DIR = @LAUNCHD_DIR@
233 SMFMANIFESTDIR = @SMFMANIFESTDIR@
234 SYSTEMD_DIR = @SYSTEMD_DIR@
237 USBQUIRKS = @USBQUIRKS@
245 .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
249 $(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $<
253 $(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c -o $@ $<
255 .man.1 .man.1m .man.3 .man.5 .man.7 .man.8:
260 .man.1.gz .man.1m.gz .man.3.gz .man.5.gz .man.7.gz .man.8.gz .man.gz:
261 echo -n Compressing $<...