]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
724e1819 | 2 | # Common makefile definitions for CUPS. |
ef416fc2 | 3 | # |
083672b1 | 4 | # Copyright © 2007-2019 by Apple Inc. |
14435106 | 5 | # Copyright © 1997-2007 by Easy Software Products, all rights reserved. |
ef416fc2 | 6 | # |
00dbe99f MS |
7 | # Licensed under Apache License v2.0. See the file "LICENSE" for more |
8 | # information. | |
ef416fc2 | 9 | # |
10 | ||
44b3f161 MS |
11 | # |
12 | # CUPS version... | |
13 | # | |
14 | ||
15 | CUPS_VERSION = @CUPS_VERSION@ | |
16 | ||
17 | ||
ef416fc2 | 18 | # |
19 | # Programs... | |
20 | # | |
21 | ||
22 | AR = @AR@ | |
23 | AWK = @AWK@ | |
b94f7488 | 24 | CC = @LIBTOOL_CC@ @CC@ |
97c9a8d7 | 25 | CHMOD = @CHMOD@ |
b94f7488 | 26 | CXX = @LIBTOOL_CXX@ @CXX@ |
ef416fc2 | 27 | DSO = @DSO@ |
50fe7201 | 28 | DSOXX = @DSOXX@ |
a29fd7dd | 29 | GZIP = @GZIP@ |
ef416fc2 | 30 | INSTALL = @INSTALL@ |
bd7854cb | 31 | LD = @LD@ |
07cb7247 MS |
32 | LD_CC = @LD_CC@ |
33 | LD_CXX = @LD_CXX@ | |
ef416fc2 | 34 | LIBTOOL = @LIBTOOL@ |
35 | LN = @LN@ -sf | |
9964a31a | 36 | MKDIR = @MKDIR@ -p |
ef416fc2 | 37 | MV = @MV@ |
38 | RANLIB = @RANLIB@ | |
39 | RM = @RM@ -f | |
757d2cad | 40 | RMDIR = @RMDIR@ |
ef416fc2 | 41 | SED = @SED@ |
42 | SHELL = /bin/sh | |
839a51c8 | 43 | |
ef416fc2 | 44 | # |
45 | # Installation programs... | |
46 | # | |
47 | ||
b94f7488 | 48 | INSTALL_BIN = @LIBTOOL_INSTALL@ $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ @INSTALL_STRIP@ |
82cc1f9a | 49 | INSTALL_COMPDATA = $(INSTALL) -c -m 444 @INSTALL_GZIP@ |
a29fd7dd | 50 | INSTALL_CONFIG = $(INSTALL) -c -m @CUPS_CONFIG_FILE_PERM@ |
e07d4801 | 51 | INSTALL_DATA = $(INSTALL) -c -m 444 |
ef416fc2 | 52 | INSTALL_DIR = $(INSTALL) -d |
b94f7488 | 53 | INSTALL_LIB = @LIBTOOL_INSTALL@ $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ @INSTALL_STRIP@ |
e07d4801 | 54 | INSTALL_MAN = $(INSTALL) -c -m 444 |
d4a895f8 | 55 | INSTALL_SCRIPT = $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ |
ef416fc2 | 56 | |
57 | # | |
09ec0018 | 58 | # Default user, group, and system groups for the scheduler... |
ef416fc2 | 59 | # |
60 | ||
61 | CUPS_USER = @CUPS_USER@ | |
62 | CUPS_GROUP = @CUPS_GROUP@ | |
09ec0018 | 63 | CUPS_SYSTEM_GROUPS = @CUPS_SYSTEM_GROUPS@ |
bd7854cb | 64 | CUPS_PRIMARY_SYSTEM_GROUP = @CUPS_PRIMARY_SYSTEM_GROUP@ |
09ec0018 | 65 | |
66 | # | |
67 | # Default permissions... | |
68 | # | |
69 | ||
70 | CUPS_CONFIG_FILE_PERM = @CUPS_CONFIG_FILE_PERM@ | |
82cc1f9a | 71 | CUPS_CUPSD_FILE_PERM = @CUPS_CUPSD_FILE_PERM@ |
09ec0018 | 72 | CUPS_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@ |
ef416fc2 | 73 | |
e1d6a774 | 74 | # |
75 | # Languages to install... | |
76 | # | |
77 | ||
78 | LANGUAGES = @LANGUAGES@ | |
ed486911 | 79 | INSTALL_LANGUAGES = @INSTALL_LANGUAGES@ |
80 | UNINSTALL_LANGUAGES = @UNINSTALL_LANGUAGES@ | |
e1d6a774 | 81 | |
105922ec MS |
82 | # |
83 | # Cross-compilation support: "local" target is used for any tools that are | |
84 | # built and run locally. | |
85 | # | |
86 | ||
87 | LOCALTARGET = @LOCALTARGET@ | |
88 | ||
89 | ||
ef416fc2 | 90 | # |
91 | # Libraries... | |
92 | # | |
93 | ||
94 | LIBCUPS = @LIBCUPS@ | |
95 | LIBCUPSIMAGE = @LIBCUPSIMAGE@ | |
58b64dbb | 96 | LIBCUPSOBJS = @LIBCUPSOBJS@ |
f8b3a85b | 97 | LIBCUPSSTATIC = @LIBCUPSSTATIC@ |
12f89d24 | 98 | LIBGSSAPI = @LIBGSSAPI@ |
ffbf1e61 MS |
99 | LIBHEADERS = @LIBHEADERS@ |
100 | LIBHEADERSPRIV = @LIBHEADERSPRIV@ | |
ef416fc2 | 101 | LIBMALLOC = @LIBMALLOC@ |
102 | LIBPAPER = @LIBPAPER@ | |
75bd9771 | 103 | LIBUSB = @LIBUSB@ |
749b1e90 | 104 | LIBWRAP = @LIBWRAP@ |
ef416fc2 | 105 | LIBZ = @LIBZ@ |
106 | ||
923edb68 | 107 | # |
108 | # Install static libraries? | |
109 | # | |
110 | ||
111 | INSTALLSTATIC = @INSTALLSTATIC@ | |
112 | ||
ef416fc2 | 113 | # |
eac3a0a0 MS |
114 | # IPP backend aliases... |
115 | # | |
116 | ||
117 | IPPALIASES = @IPPALIASES@ | |
118 | ||
6641bd0d MS |
119 | |
120 | # | |
121 | # ippeveprinter commands... | |
122 | # | |
123 | ||
124 | IPPEVECOMMANDS = @IPPEVECOMMANDS@ | |
125 | ||
126 | ||
eac3a0a0 MS |
127 | # |
128 | # Install XPC backends? | |
129 | # | |
130 | ||
131 | INSTALLXPC = @INSTALLXPC@ | |
132 | ||
00dbe99f MS |
133 | # |
134 | # Code signing... | |
135 | # | |
136 | ||
137 | CODE_SIGN = @CODE_SIGN@ | |
138 | CODE_SIGN_IDENTITY = - | |
139 | ||
eac3a0a0 | 140 | # |
ef416fc2 | 141 | # Program options... |
142 | # | |
09a101d6 | 143 | # ARCHFLAGS Defines the default architecture build options. |
e1d6a774 | 144 | # OPTIM Defines the common compiler optimization/debugging options |
145 | # for all architectures. | |
146 | # OPTIONS Defines other compile-time options (currently only -DDEBUG | |
147 | # for extra debug info) | |
ef416fc2 | 148 | # |
149 | ||
f518bf7e MS |
150 | ALL_CFLAGS = -I.. -D_CUPS_SOURCE $(CFLAGS) \ |
151 | $(SSLFLAGS) @LARGEFILE@ @PTHREAD_FLAGS@ \ | |
152 | $(ONDEMANDFLAGS) $(OPTIONS) | |
153 | ALL_CXXFLAGS = -I.. -D_CUPS_SOURCE $(CXXFLAGS) \ | |
154 | $(SSLFLAGS) @LARGEFILE@ @PTHREAD_FLAGS@ \ | |
155 | $(ONDEMANDFLAGS) $(OPTIONS) | |
21609267 MS |
156 | ALL_DSOFLAGS = -L../cups @ARCHFLAGS@ @RELROFLAGS@ $(DSOFLAGS) $(OPTIM) |
157 | ALL_LDFLAGS = -L../cups @LDARCHFLAGS@ @RELROFLAGS@ $(LDFLAGS) \ | |
158 | @PIEFLAGS@ $(OPTIM) | |
e1d6a774 | 159 | ARCHFLAGS = @ARCHFLAGS@ |
ef416fc2 | 160 | ARFLAGS = @ARFLAGS@ |
161 | BACKLIBS = @BACKLIBS@ | |
6d2f911b | 162 | BUILDDIRS = @BUILDDIRS@ |
5bd77a73 | 163 | CFLAGS = @CPPFLAGS@ @CFLAGS@ |
ef416fc2 | 164 | COMMONLIBS = @LIBS@ |
ac884b6a MS |
165 | CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ |
166 | CXXLIBS = @CXXLIBS@ | |
c5571a1d MS |
167 | DBUS_NOTIFIER = @DBUS_NOTIFIER@ |
168 | DBUS_NOTIFIERLIBS = @DBUS_NOTIFIERLIBS@ | |
169 | DNSSD_BACKEND = @DNSSD_BACKEND@ | |
21609267 | 170 | DSOFLAGS = @DSOFLAGS@ |
ef416fc2 | 171 | DSOLIBS = @DSOLIBS@ $(COMMONLIBS) |
f7deaa1a | 172 | DNSSDLIBS = @DNSSDLIBS@ |
766a8229 MS |
173 | IPPFIND_BIN = @IPPFIND_BIN@ |
174 | IPPFIND_MAN = @IPPFIND_MAN@ | |
21609267 | 175 | LDFLAGS = @LDFLAGS@ |
de4966cb | 176 | LINKCUPS = @LINKCUPS@ $(LIBGSSAPI) $(DNSSDLIBS) $(SSLLIBS) $(LIBZ) |
ef416fc2 | 177 | LINKCUPSIMAGE = @LINKCUPSIMAGE@ |
178 | LIBS = $(LINKCUPS) $(COMMONLIBS) | |
f2b8078b MS |
179 | ONDEMANDFLAGS = @ONDEMANDFLAGS@ |
180 | ONDEMANDLIBS = @ONDEMANDLIBS@ | |
ef416fc2 | 181 | OPTIM = @OPTIM@ |
f518bf7e | 182 | OPTIONS = @WARNING_OPTIONS@ |
ef416fc2 | 183 | PAMLIBS = @PAMLIBS@ |
cc754834 | 184 | SERVERLIBS = @SERVERLIBS@ |
ef416fc2 | 185 | SSLFLAGS = @SSLFLAGS@ |
186 | SSLLIBS = @SSLLIBS@ | |
5f64df29 MS |
187 | UNITTESTS = @UNITTESTS@ |
188 | ||
ef416fc2 | 189 | |
190 | # | |
191 | # Directories... | |
192 | # | |
193 | # The first section uses the GNU names (which are *extremely* | |
194 | # difficult to find in a makefile because they are lowercase...) | |
195 | # We have to define these first because autoconf uses ${prefix} | |
196 | # and ${exec_prefix} for most of the other directories... | |
197 | # | |
d09495fa | 198 | # The "datarootdir" variable may not get defined if you are using |
199 | # a version of autoconf prior to 2.60. | |
200 | # | |
ef416fc2 | 201 | # This is immediately followed by definition in ALL CAPS for the |
202 | # needed directories... | |
203 | # | |
204 | ||
205 | bindir = @bindir@ | |
206 | datadir = @datadir@ | |
d09495fa | 207 | datarootdir = @datarootdir@ |
ef416fc2 | 208 | exec_prefix = @exec_prefix@ |
209 | includedir = @includedir@ | |
210 | infodir = @infodir@ | |
211 | libdir = @libdir@ | |
212 | libexecdir = @libexecdir@ | |
213 | localstatedir = @localstatedir@ | |
214 | mandir = @mandir@ | |
215 | oldincludedir = @oldincludedir@ | |
216 | prefix = @prefix@ | |
71e16022 | 217 | privateinclude = @privateinclude@ |
ef416fc2 | 218 | sbindir = @sbindir@ |
219 | sharedstatedir = @sharedstatedir@ | |
220 | srcdir = @srcdir@ | |
221 | sysconfdir = @sysconfdir@ | |
222 | top_srcdir = @top_srcdir@ | |
223 | ||
083672b1 | 224 | BUILDROOT = $(DSTROOT)$(DESTDIR) |
ef416fc2 | 225 | |
226 | AMANDIR = $(BUILDROOT)@AMANDIR@ | |
227 | BINDIR = $(BUILDROOT)@bindir@ | |
0837b7e8 | 228 | BUNDLEDIR = @CUPS_BUNDLEDIR@ |
ef416fc2 | 229 | CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@ |
230 | DATADIR = $(BUILDROOT)@CUPS_DATADIR@ | |
231 | DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@ | |
f7deaa1a | 232 | ICONDIR = @ICONDIR@ |
fb458c34 | 233 | INCLUDEDIR = $(BUILDROOT)$(includedir) |
ef416fc2 | 234 | LIBDIR = $(BUILDROOT)$(libdir) |
235 | LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@ | |
236 | LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@ | |
237 | MANDIR = $(BUILDROOT)@mandir@ | |
f7deaa1a | 238 | MENUDIR = @MENUDIR@ |
ef416fc2 | 239 | PMANDIR = $(BUILDROOT)@PMANDIR@ |
fb458c34 | 240 | PRIVATEINCLUDE = $(BUILDROOT)@PRIVATEINCLUDE@ |
f7deaa1a | 241 | RCLEVELS = @RCLEVELS@ |
242 | RCSTART = @RCSTART@ | |
243 | RCSTOP = @RCSTOP@ | |
ef416fc2 | 244 | REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@ |
e4b72d7e | 245 | RESOURCEDIR = @CUPS_RESOURCEDIR@ |
ef416fc2 | 246 | SBINDIR = $(BUILDROOT)@sbindir@ |
247 | SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@ | |
248 | SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@ | |
249 | STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@ | |
250 | ||
251 | MAN1EXT = @MAN1EXT@ | |
252 | MAN5EXT = @MAN5EXT@ | |
bd7854cb | 253 | MAN7EXT = @MAN7EXT@ |
ef416fc2 | 254 | MAN8EXT = @MAN8EXT@ |
255 | MAN8DIR = @MAN8DIR@ | |
256 | ||
b423cd4c | 257 | PAMDIR = @PAMDIR@ |
ef416fc2 | 258 | PAMFILE = @PAMFILE@ |
259 | ||
bd7854cb | 260 | DBUSDIR = @DBUSDIR@ |
f2b8078b MS |
261 | INITDIR = @INITDIR@ |
262 | INITDDIR = @INITDDIR@ | |
263 | LAUNCHD_DIR = @LAUNCHD_DIR@ | |
264 | SMFMANIFESTDIR = @SMFMANIFESTDIR@ | |
265 | SYSTEMD_DIR = @SYSTEMD_DIR@ | |
266 | XINETD = @XINETD@ | |
267 | ||
268 | USBQUIRKS = @USBQUIRKS@ | |
a4d04587 | 269 | |
ef416fc2 | 270 | |
271 | # | |
272 | # Rules... | |
273 | # | |
274 | ||
275 | .SILENT: | |
12f89d24 | 276 | .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 |
ef416fc2 | 277 | |
278 | .c.o: | |
279 | echo Compiling $<... | |
6d2f911b | 280 | $(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $< |
e1d6a774 | 281 | |
ac884b6a MS |
282 | .cxx.o: |
283 | echo Compiling $<... | |
6d2f911b | 284 | $(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c -o $@ $< |
ac884b6a MS |
285 | |
286 | .man.1 .man.1m .man.3 .man.5 .man.7 .man.8: | |
ef416fc2 | 287 | echo Linking $<... |
288 | $(RM) $@ | |
289 | $(LN) $< $@ | |
290 | ||
ac884b6a | 291 | .man.1.gz .man.1m.gz .man.3.gz .man.5.gz .man.7.gz .man.8.gz .man.gz: |
ef416fc2 | 292 | echo -n Compressing $<... |
293 | $(RM) $@ | |
294 | gzip -v9 <$< >$@ |