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