4 # Common makefile definitions for CUPS.
6 # Copyright 2007-2013 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@ $(OPTIONS)
125 ALL_CXXFLAGS = -I.. -D_CUPS_SOURCE $(CXXFLAGS) $(SSLFLAGS) \
126 @LARGEFILE@ @PTHREAD_FLAGS@ $(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 LAUNCHDLIBS = @LAUNCHDLIBS@
144 LDFLAGS = -L../cgi-bin -L../cups -L../filter -L../ppdc \
145 -L../scheduler @LDARCHFLAGS@ \
146 @LDFLAGS@ @RELROFLAGS@ @PIEFLAGS@ $(OPTIM)
147 LINKCUPS = @LINKCUPS@ $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(LIBZ)
148 LINKCUPSIMAGE = @LINKCUPSIMAGE@
149 LIBS = $(LINKCUPS) $(COMMONLIBS)
153 SERVERLIBS = @SERVERLIBS@
154 SSLFLAGS = @SSLFLAGS@
156 UNITTESTS = @UNITTESTS@
162 # The first section uses the GNU names (which are *extremely*
163 # difficult to find in a makefile because they are lowercase...)
164 # We have to define these first because autoconf uses ${prefix}
165 # and ${exec_prefix} for most of the other directories...
167 # The "datarootdir" variable may not get defined if you are using
168 # a version of autoconf prior to 2.60.
170 # This is immediately followed by definition in ALL CAPS for the
171 # needed directories...
176 datarootdir = @datarootdir@
177 exec_prefix = @exec_prefix@
178 includedir = @includedir@
181 libexecdir = @libexecdir@
182 localstatedir = @localstatedir@
184 oldincludedir = @oldincludedir@
186 privateinclude = @privateinclude@
188 sharedstatedir = @sharedstatedir@
190 sysconfdir = @sysconfdir@
191 top_srcdir = @top_srcdir@
193 BUILDROOT = $(DSTROOT)
195 AMANDIR = $(BUILDROOT)@AMANDIR@
196 BINDIR = $(BUILDROOT)@bindir@
197 BUNDLEDIR = @CUPS_BUNDLEDIR@
198 CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@
199 DATADIR = $(BUILDROOT)@CUPS_DATADIR@
200 DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@
202 INCLUDEDIR = $(BUILDROOT)$(includedir)
204 INITDDIR = @INITDDIR@
205 LIBDIR = $(BUILDROOT)$(libdir)
206 LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@
207 LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@
208 MANDIR = $(BUILDROOT)@mandir@
210 PMANDIR = $(BUILDROOT)@PMANDIR@
211 PRIVATEINCLUDE = $(BUILDROOT)@PRIVATEINCLUDE@
212 RCLEVELS = @RCLEVELS@
215 REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@
216 SBINDIR = $(BUILDROOT)@sbindir@
217 SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@
218 SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@
219 SMFMANIFESTDIR = @SMFMANIFESTDIR@
220 STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@
221 USBQUIRKS = @USBQUIRKS@
233 DEFAULT_LAUNCHD_CONF = @DEFAULT_LAUNCHD_CONF@
242 .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
246 $(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $<
250 $(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c -o $@ $<
252 .man.1 .man.1m .man.3 .man.5 .man.7 .man.8:
257 .man.1.gz .man.1m.gz .man.3.gz .man.5.gz .man.7.gz .man.8.gz .man.gz:
258 echo -n Compressing $<...