]> git.ipfire.org Git - thirdparty/cups.git/blob - Makedefs.in
Fix infinite loop on bad PUT (<rdar://problem/23132803>)
[thirdparty/cups.git] / Makedefs.in
1 #
2 # "$Id$"
3 #
4 # Common makefile definitions for CUPS.
5 #
6 # Copyright 2007-2014 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@ $(ONDEMANDFLAGS) $(OPTIONS)
125 ALL_CXXFLAGS = -I.. -D_CUPS_SOURCE $(CXXFLAGS) $(SSLFLAGS) \
126 @LARGEFILE@ @PTHREAD_FLAGS@ $(ONDEMANDFLAGS) $(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 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@
151 OPTIM = @OPTIM@
152 OPTIONS =
153 PAMLIBS = @PAMLIBS@
154 SERVERLIBS = @SERVERLIBS@
155 SSLFLAGS = @SSLFLAGS@
156 SSLLIBS = @SSLLIBS@
157 UNITTESTS = @UNITTESTS@
158
159
160 #
161 # Directories...
162 #
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...
167 #
168 # The "datarootdir" variable may not get defined if you are using
169 # a version of autoconf prior to 2.60.
170 #
171 # This is immediately followed by definition in ALL CAPS for the
172 # needed directories...
173 #
174
175 bindir = @bindir@
176 datadir = @datadir@
177 datarootdir = @datarootdir@
178 exec_prefix = @exec_prefix@
179 includedir = @includedir@
180 infodir = @infodir@
181 libdir = @libdir@
182 libexecdir = @libexecdir@
183 localstatedir = @localstatedir@
184 mandir = @mandir@
185 oldincludedir = @oldincludedir@
186 prefix = @prefix@
187 privateinclude = @privateinclude@
188 sbindir = @sbindir@
189 sharedstatedir = @sharedstatedir@
190 srcdir = @srcdir@
191 sysconfdir = @sysconfdir@
192 top_srcdir = @top_srcdir@
193
194 BUILDROOT = $(DSTROOT)
195
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@
202 ICONDIR = @ICONDIR@
203 INCLUDEDIR = $(BUILDROOT)$(includedir)
204 LIBDIR = $(BUILDROOT)$(libdir)
205 LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@
206 LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@
207 MANDIR = $(BUILDROOT)@mandir@
208 MENUDIR = @MENUDIR@
209 PMANDIR = $(BUILDROOT)@PMANDIR@
210 PRIVATEINCLUDE = $(BUILDROOT)@PRIVATEINCLUDE@
211 RCLEVELS = @RCLEVELS@
212 RCSTART = @RCSTART@
213 RCSTOP = @RCSTOP@
214 REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@
215 SBINDIR = $(BUILDROOT)@sbindir@
216 SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@
217 SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@
218 STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@
219
220 MAN1EXT = @MAN1EXT@
221 MAN5EXT = @MAN5EXT@
222 MAN7EXT = @MAN7EXT@
223 MAN8EXT = @MAN8EXT@
224 MAN8DIR = @MAN8DIR@
225
226 PAMDIR = @PAMDIR@
227 PAMFILE = @PAMFILE@
228
229 DBUSDIR = @DBUSDIR@
230 INITDIR = @INITDIR@
231 INITDDIR = @INITDDIR@
232 LAUNCHD_DIR = @LAUNCHD_DIR@
233 SMFMANIFESTDIR = @SMFMANIFESTDIR@
234 SYSTEMD_DIR = @SYSTEMD_DIR@
235 XINETD = @XINETD@
236
237 USBQUIRKS = @USBQUIRKS@
238
239
240 #
241 # Rules...
242 #
243
244 .SILENT:
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
246
247 .c.o:
248 echo Compiling $<...
249 $(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $<
250
251 .cxx.o:
252 echo Compiling $<...
253 $(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c -o $@ $<
254
255 .man.1 .man.1m .man.3 .man.5 .man.7 .man.8:
256 echo Linking $<...
257 $(RM) $@
258 $(LN) $< $@
259
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 $<...
262 $(RM) $@
263 gzip -v9 <$< >$@
264
265
266 #
267 # End of "$Id$"
268 #