Merge changes from CUPS 1.4svn-r7874.
[thirdparty/cups.git] / Makedefs.in
1 #
2 # "$Id: Makedefs.in 7687 2008-06-24 01:28:36Z mike $"
3 #
4 #   Common makefile definitions for the Common UNIX Printing System (CUPS).
5 #
6 #   Copyright 2007-2008 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 CXX             =       @LIBTOOL@ @CXX@
24 DSO             =       @DSO@
25 DSOXX           =       @DSOXX@
26 HTMLDOC         =       @HTMLDOC@
27 INSTALL         =       @INSTALL@
28 LD              =       @LD@
29 LIBTOOL         =       @LIBTOOL@
30 LN              =       @LN@ -sf
31 MV              =       @MV@
32 PHPCONFIG       =       @PHPCONFIG@
33 RANLIB          =       @RANLIB@
34 RM              =       @RM@ -f
35 RMDIR           =       @RMDIR@
36 SED             =       @SED@
37 SHELL           =       /bin/sh
38
39
40 #
41 # Installation programs...
42 #
43
44 INSTALL_BIN     =       $(LIBTOOL) $(INSTALL) -m 755 @INSTALL_STRIP@
45 INSTALL_CONFIG  =       $(INSTALL) -m @CUPS_CONFIG_FILE_PERM@
46 INSTALL_DATA    =       $(INSTALL) -m 644
47 INSTALL_DIR     =       $(INSTALL) -d
48 INSTALL_LIB     =       $(LIBTOOL) $(INSTALL) -m 755 @INSTALL_STRIP@
49 INSTALL_MAN     =       $(INSTALL) -m 644
50 INSTALL_SCRIPT  =       $(INSTALL) -m 755
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_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@
67
68 #
69 # Languages to install...
70 #
71
72 LANGUAGES       =       @LANGUAGES@
73 INSTALL_LANGUAGES =     @INSTALL_LANGUAGES@
74 UNINSTALL_LANGUAGES =   @UNINSTALL_LANGUAGES@
75
76 #
77 # Libraries...
78 #
79
80 LIBCUPS         =       @LIBCUPS@
81 LIBCUPSCGI      =       @LIBCUPSCGI@
82 LIBCUPSDRIVER   =       @LIBCUPSDRIVER@
83 LIBCUPSIMAGE    =       @LIBCUPSIMAGE@
84 LIBCUPSMIME     =       @LIBCUPSMIME@
85 LIBCUPSPPDC     =       @LIBCUPSPPDC@
86 LIBJPEG         =       @LIBJPEG@
87 LIBLDAP         =       @LIBLDAP@
88 LIBMALLOC       =       @LIBMALLOC@
89 LIBPAPER        =       @LIBPAPER@
90 LIBPNG          =       @LIBPNG@
91 LIBSLP          =       @LIBSLP@
92 LIBGSSAPI       =       @LIBGSSAPI@
93 LIBTIFF         =       @LIBTIFF@
94 LIBUSB          =       @LIBUSB@
95 LIBWRAP         =       @LIBWRAP@
96 LIBZ            =       @LIBZ@
97
98 #
99 # Install static libraries?
100 #
101
102 INSTALLSTATIC   =       @INSTALLSTATIC@
103
104 #
105 # Program options...
106 #
107 # ARCHFLAGS     Defines the default architecture build options.
108 # ARCH32FLAGS   Defines the 32-bit architecture build options, used
109 #               when compiling separate 32/64-bit libraries.
110 # ARCH64FLAGS   Defines the 64-bit architecture build options, used
111 #               when compiling separate 32/64-bit libraries.
112 # OPTIM         Defines the common compiler optimization/debugging options
113 #               for all architectures.
114 # OPTIONS       Defines other compile-time options (currently only -DDEBUG
115 #               for extra debug info)
116 #
117
118 ALL_CFLAGS      =       -I.. -D_CUPS_SOURCE $(CFLAGS) $(SSLFLAGS) \
119                         @LARGEFILE@ @PTHREAD_FLAGS@ $(OPTIONS)
120 ALL_CXXFLAGS    =       -I.. -D_CUPS_SOURCE $(CXXFLAGS) $(SSLFLAGS) \
121                         @LARGEFILE@ @PTHREAD_FLAGS@ $(OPTIONS)
122 ARCHFLAGS       =       @ARCHFLAGS@
123 ARFLAGS         =       @ARFLAGS@
124 BACKLIBS        =       @BACKLIBS@
125 CFLAGS          =       @CPPFLAGS@ @CFLAGS@
126 COMMONLIBS      =       @LIBS@
127 CUPSDLIBS       =       @CUPSDLIBS@
128 CXXFLAGS        =       @CPPFLAGS@ @CXXFLAGS@
129 CXXLIBS         =       @CXXLIBS@
130 DSOFLAGS        =       -L../cups @DSOFLAGS@
131 DSOLIBS         =       @DSOLIBS@ $(COMMONLIBS)
132 DNSSDLIBS       =       @DNSSDLIBS@
133 FONTS           =       @FONTS@
134 IMGLIBS         =       @IMGLIBS@
135 IMGFILTERS      =       @IMGFILTERS@
136 LAUNCHDLIBS     =       @LAUNCHDLIBS@
137 LDFLAGS         =       -L../cups -L../filter @LDARCHFLAGS@ \
138                         @LDFLAGS@ @RELROFLAGS@ @PIEFLAGS@ $(OPTIM)
139 LEGACY_BACKENDS =       @LEGACY_BACKENDS@
140 LIBCUPSORDER    =       @LIBCUPSORDER@
141 LIBCUPSIMAGEORDER =     @LIBCUPSIMAGEORDER@
142 LINKCUPS        =       @LINKCUPS@ $(SSLLIBS)
143 LINKCUPSIMAGE   =       @LINKCUPSIMAGE@
144 LIBS            =       $(LINKCUPS) $(COMMONLIBS)
145 MDNS            =       @MDNS@
146 OPTIM           =       @OPTIM@
147 OPTIONS         =
148 PAMLIBS         =       @PAMLIBS@
149 PAP             =       @PAP@
150 PDFTOPS         =       @PDFTOPS@
151 PHPDIR          =       @PHPDIR@
152 PHPOPTIONS      =       @PHPOPTIONS@ -I../.. `$(PHPCONFIG) --includes`
153 SSLFLAGS        =       @SSLFLAGS@
154 SSLLIBS         =       @SSLLIBS@
155 UNITTESTS       =       @UNITTESTS@
156
157
158 #
159 # Separate 32/64-bit library support...
160 #
161
162 ARCH32FLAGS     =       @ARCH32FLAGS@
163 DSO32FLAGS      =       @DSO32FLAGS@
164 INSTALL32       =       @INSTALL32@
165 LIB32CUPS       =       @LIB32CUPS@
166 LIB32CUPSIMAGE  =       @LIB32CUPSIMAGE@
167 LIB32DIR        =       $(BUILDROOT)@LIB32DIR@
168 UNINSTALL32     =       @UNINSTALL32@
169
170 ARCH64FLAGS     =       @ARCH64FLAGS@
171 DSO64FLAGS      =       @DSO64FLAGS@
172 INSTALL64       =       @INSTALL64@
173 LIB64CUPS       =       @LIB64CUPS@
174 LIB64CUPSIMAGE  =       @LIB64CUPSIMAGE@
175 LIB64DIR        =       $(BUILDROOT)@LIB64DIR@
176 UNINSTALL64     =       @UNINSTALL64@
177
178 #
179 # Directories...
180 #
181 # The first section uses the GNU names (which are *extremely*
182 # difficult to find in a makefile because they are lowercase...)
183 # We have to define these first because autoconf uses ${prefix}
184 # and ${exec_prefix} for most of the other directories...
185 #
186 # The "datarootdir" variable may not get defined if you are using
187 # a version of autoconf prior to 2.60.
188 #
189 # This is immediately followed by definition in ALL CAPS for the
190 # needed directories...
191 #
192
193 bindir          =       @bindir@
194 datadir         =       @datadir@
195 datarootdir     =       @datarootdir@
196 exec_prefix     =       @exec_prefix@
197 includedir      =       @includedir@
198 infodir         =       @infodir@
199 libdir          =       @libdir@
200 libexecdir      =       @libexecdir@
201 localstatedir   =       @localstatedir@
202 mandir          =       @mandir@
203 oldincludedir   =       @oldincludedir@
204 prefix          =       @prefix@
205 sbindir         =       @sbindir@
206 sharedstatedir  =       @sharedstatedir@
207 srcdir          =       @srcdir@
208 sysconfdir      =       @sysconfdir@
209 top_srcdir      =       @top_srcdir@
210
211 BUILDROOT       =       $(DSTROOT)
212
213 AMANDIR         =       $(BUILDROOT)@AMANDIR@
214 BINDIR          =       $(BUILDROOT)@bindir@
215 CACHEDIR        =       $(BUILDROOT)@CUPS_CACHEDIR@
216 DATADIR         =       $(BUILDROOT)@CUPS_DATADIR@
217 DOCDIR          =       $(BUILDROOT)@CUPS_DOCROOT@
218 ICONDIR         =       @ICONDIR@
219 INCLUDEDIR      =       $(BUILDROOT)$(includedir)
220 INITDIR         =       @INITDIR@
221 INITDDIR        =       @INITDDIR@
222 LIBDIR          =       $(BUILDROOT)$(libdir)
223 LOCALEDIR       =       $(BUILDROOT)@CUPS_LOCALEDIR@
224 LOGDIR          =       $(BUILDROOT)@CUPS_LOGDIR@
225 MANDIR          =       $(BUILDROOT)@mandir@
226 MENUDIR         =       @MENUDIR@
227 PMANDIR         =       $(BUILDROOT)@PMANDIR@
228 RCLEVELS        =       @RCLEVELS@
229 RCSTART         =       @RCSTART@
230 RCSTOP          =       @RCSTOP@
231 REQUESTS        =       $(BUILDROOT)@CUPS_REQUESTS@
232 SBINDIR         =       $(BUILDROOT)@sbindir@
233 SERVERBIN       =       $(BUILDROOT)@CUPS_SERVERBIN@
234 SERVERROOT      =       $(BUILDROOT)@CUPS_SERVERROOT@
235 SMFMANIFESTDIR  =       @SMFMANIFESTDIR@
236 STATEDIR        =       $(BUILDROOT)@CUPS_STATEDIR@
237 XINETD          =       @XINETD@
238
239 MAN1EXT         =       @MAN1EXT@
240 MAN5EXT         =       @MAN5EXT@
241 MAN7EXT         =       @MAN7EXT@
242 MAN8EXT         =       @MAN8EXT@
243 MAN8DIR         =       @MAN8DIR@
244
245 PAMDIR          =       @PAMDIR@
246 PAMFILE         =       @PAMFILE@
247
248 DEFAULT_LAUNCHD_CONF =  @DEFAULT_LAUNCHD_CONF@
249 DBUSDIR         =       @DBUSDIR@
250
251
252 #
253 # Rules...
254 #
255
256 .SILENT:
257 .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 .32.o .64.o .gz
258
259 .c.o:
260         echo Compiling $<...
261         $(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c $<
262
263 .c.32.o:
264         echo Compiling 32-bit $<...
265         $(CC) $(ARCH32FLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $<
266
267 .c.64.o:
268         echo Compiling 64-bit $<...
269         $(CC) $(ARCH64FLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $<
270
271 .cxx.o:
272         echo Compiling $<...
273         $(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c $<
274
275 .man.1 .man.1m .man.3 .man.5 .man.7 .man.8:
276         echo Linking $<...
277         $(RM) $@
278         $(LN) $< $@
279
280 .man.1.gz .man.1m.gz .man.3.gz .man.5.gz .man.7.gz .man.8.gz .man.gz:
281         echo -n Compressing $<...
282         $(RM) $@
283         gzip -v9 <$< >$@
284
285
286 #
287 # End of "$Id: Makedefs.in 7687 2008-06-24 01:28:36Z mike $"
288 #