]> git.ipfire.org Git - thirdparty/cups.git/blob - Makedefs.in
Fax queues did not work when shared via Bonjour (<rdar://problem/14498310>)
[thirdparty/cups.git] / Makedefs.in
1 #
2 # "$Id$"
3 #
4 # Common makefile definitions for CUPS.
5 #
6 # Copyright 2007-2013 by Apple Inc.
7 # Copyright 1997-2007 by Easy Software Products, all rights reserved.
8 #
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/".
14 #
15
16 #
17 # Programs...
18 #
19
20 AR = @AR@
21 AWK = @AWK@
22 CC = @LIBTOOL@ @CC@
23 CHMOD = @CHMOD@
24 CXX = @LIBTOOL@ @CXX@
25 DSO = @DSO@
26 DSOXX = @DSOXX@
27 GZIP = @GZIP@
28 INSTALL = @INSTALL@
29 LD = @LD@
30 LIBTOOL = @LIBTOOL@
31 LN = @LN@ -sf
32 MV = @MV@
33 RANLIB = @RANLIB@
34 RM = @RM@ -f
35 RMDIR = @RMDIR@
36 SED = @SED@
37 SHELL = /bin/sh
38
39 #
40 # Installation programs...
41 #
42
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
51
52 #
53 # Default user, group, and system groups for the scheduler...
54 #
55
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@
60
61 #
62 # Default permissions...
63 #
64
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@
68
69 #
70 # Languages to install...
71 #
72
73 LANGUAGES = @LANGUAGES@
74 INSTALL_LANGUAGES = @INSTALL_LANGUAGES@
75 UNINSTALL_LANGUAGES = @UNINSTALL_LANGUAGES@
76
77 #
78 # Libraries...
79 #
80
81 LIBCUPS = @LIBCUPS@
82 LIBCUPSCGI = @LIBCUPSCGI@
83 LIBCUPSIMAGE = @LIBCUPSIMAGE@
84 LIBCUPSMIME = @LIBCUPSMIME@
85 LIBCUPSPPDC = @LIBCUPSPPDC@
86 LIBCUPSSTATIC = @LIBCUPSSTATIC@
87 LIBGSSAPI = @LIBGSSAPI@
88 LIBMALLOC = @LIBMALLOC@
89 LIBMXML = @LIBMXML@
90 LIBPAPER = @LIBPAPER@
91 LIBUSB = @LIBUSB@
92 LIBWRAP = @LIBWRAP@
93 LIBZ = @LIBZ@
94
95 #
96 # Install static libraries?
97 #
98
99 INSTALLSTATIC = @INSTALLSTATIC@
100
101 #
102 # IPP backend aliases...
103 #
104
105 IPPALIASES = @IPPALIASES@
106
107 #
108 # Install XPC backends?
109 #
110
111 INSTALLXPC = @INSTALLXPC@
112
113 #
114 # Program options...
115 #
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)
121 #
122
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@
128 ARFLAGS = @ARFLAGS@
129 BACKLIBS = @BACKLIBS@
130 BUILDDIRS = @BUILDDIRS@
131 CFLAGS = @CPPFLAGS@ @CFLAGS@
132 COMMONLIBS = @LIBS@
133 CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@
134 CXXLIBS = @CXXLIBS@
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)
150 OPTIM = @OPTIM@
151 OPTIONS =
152 PAMLIBS = @PAMLIBS@
153 SERVERLIBS = @SERVERLIBS@
154 SSLFLAGS = @SSLFLAGS@
155 SSLLIBS = @SSLLIBS@
156 UNITTESTS = @UNITTESTS@
157
158
159 #
160 # Directories...
161 #
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...
166 #
167 # The "datarootdir" variable may not get defined if you are using
168 # a version of autoconf prior to 2.60.
169 #
170 # This is immediately followed by definition in ALL CAPS for the
171 # needed directories...
172 #
173
174 bindir = @bindir@
175 datadir = @datadir@
176 datarootdir = @datarootdir@
177 exec_prefix = @exec_prefix@
178 includedir = @includedir@
179 infodir = @infodir@
180 libdir = @libdir@
181 libexecdir = @libexecdir@
182 localstatedir = @localstatedir@
183 mandir = @mandir@
184 oldincludedir = @oldincludedir@
185 prefix = @prefix@
186 privateinclude = @privateinclude@
187 sbindir = @sbindir@
188 sharedstatedir = @sharedstatedir@
189 srcdir = @srcdir@
190 sysconfdir = @sysconfdir@
191 top_srcdir = @top_srcdir@
192
193 BUILDROOT = $(DSTROOT)
194
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@
201 ICONDIR = @ICONDIR@
202 INCLUDEDIR = $(BUILDROOT)$(includedir)
203 INITDIR = @INITDIR@
204 INITDDIR = @INITDDIR@
205 LIBDIR = $(BUILDROOT)$(libdir)
206 LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@
207 LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@
208 MANDIR = $(BUILDROOT)@mandir@
209 MENUDIR = @MENUDIR@
210 PMANDIR = $(BUILDROOT)@PMANDIR@
211 PRIVATEINCLUDE = $(BUILDROOT)@PRIVATEINCLUDE@
212 RCLEVELS = @RCLEVELS@
213 RCSTART = @RCSTART@
214 RCSTOP = @RCSTOP@
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@
222 XINETD = @XINETD@
223
224 MAN1EXT = @MAN1EXT@
225 MAN5EXT = @MAN5EXT@
226 MAN7EXT = @MAN7EXT@
227 MAN8EXT = @MAN8EXT@
228 MAN8DIR = @MAN8DIR@
229
230 PAMDIR = @PAMDIR@
231 PAMFILE = @PAMFILE@
232
233 DEFAULT_LAUNCHD_CONF = @DEFAULT_LAUNCHD_CONF@
234 DBUSDIR = @DBUSDIR@
235
236
237 #
238 # Rules...
239 #
240
241 .SILENT:
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
243
244 .c.o:
245 echo Compiling $<...
246 $(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $<
247
248 .cxx.o:
249 echo Compiling $<...
250 $(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c -o $@ $<
251
252 .man.1 .man.1m .man.3 .man.5 .man.7 .man.8:
253 echo Linking $<...
254 $(RM) $@
255 $(LN) $< $@
256
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 $<...
259 $(RM) $@
260 gzip -v9 <$< >$@
261
262
263 #
264 # End of "$Id$"
265 #