Merge changes from CUPS 1.4svn-r7874.
[thirdparty/cups.git] / Makedefs.in
CommitLineData
ef416fc2 1#
75bd9771 2# "$Id: Makedefs.in 7687 2008-06-24 01:28:36Z mike $"
ef416fc2 3#
4# Common makefile definitions for the Common UNIX Printing System (CUPS).
5#
5bd77a73 6# Copyright 2007-2008 by Apple Inc.
f7deaa1a 7# Copyright 1997-2007 by Easy Software Products, all rights reserved.
ef416fc2 8#
9# These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 14#
15
16#
17# Programs...
18#
19
20AR = @AR@
21AWK = @AWK@
22CC = @LIBTOOL@ @CC@
ac884b6a 23CXX = @LIBTOOL@ @CXX@
ef416fc2 24DSO = @DSO@
50fe7201 25DSOXX = @DSOXX@
ef416fc2 26HTMLDOC = @HTMLDOC@
27INSTALL = @INSTALL@
bd7854cb 28LD = @LD@
ef416fc2 29LIBTOOL = @LIBTOOL@
30LN = @LN@ -sf
31MV = @MV@
b423cd4c 32PHPCONFIG = @PHPCONFIG@
ef416fc2 33RANLIB = @RANLIB@
34RM = @RM@ -f
757d2cad 35RMDIR = @RMDIR@
ef416fc2 36SED = @SED@
37SHELL = /bin/sh
839a51c8 38
ef416fc2 39
40#
41# Installation programs...
42#
43
50fe7201 44INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755 @INSTALL_STRIP@
09ec0018 45INSTALL_CONFIG = $(INSTALL) -m @CUPS_CONFIG_FILE_PERM@
ef416fc2 46INSTALL_DATA = $(INSTALL) -m 644
47INSTALL_DIR = $(INSTALL) -d
50fe7201 48INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755 @INSTALL_STRIP@
ef416fc2 49INSTALL_MAN = $(INSTALL) -m 644
50INSTALL_SCRIPT = $(INSTALL) -m 755
51
52#
09ec0018 53# Default user, group, and system groups for the scheduler...
ef416fc2 54#
55
56CUPS_USER = @CUPS_USER@
57CUPS_GROUP = @CUPS_GROUP@
09ec0018 58CUPS_SYSTEM_GROUPS = @CUPS_SYSTEM_GROUPS@
bd7854cb 59CUPS_PRIMARY_SYSTEM_GROUP = @CUPS_PRIMARY_SYSTEM_GROUP@
09ec0018 60
61#
62# Default permissions...
63#
64
65CUPS_CONFIG_FILE_PERM = @CUPS_CONFIG_FILE_PERM@
66CUPS_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@
ef416fc2 67
e1d6a774 68#
69# Languages to install...
70#
71
72LANGUAGES = @LANGUAGES@
ed486911 73INSTALL_LANGUAGES = @INSTALL_LANGUAGES@
74UNINSTALL_LANGUAGES = @UNINSTALL_LANGUAGES@
e1d6a774 75
ef416fc2 76#
77# Libraries...
78#
79
80LIBCUPS = @LIBCUPS@
50fe7201
MS
81LIBCUPSCGI = @LIBCUPSCGI@
82LIBCUPSDRIVER = @LIBCUPSDRIVER@
ef416fc2 83LIBCUPSIMAGE = @LIBCUPSIMAGE@
50fe7201
MS
84LIBCUPSMIME = @LIBCUPSMIME@
85LIBCUPSPPDC = @LIBCUPSPPDC@
ef416fc2 86LIBJPEG = @LIBJPEG@
b423cd4c 87LIBLDAP = @LIBLDAP@
ef416fc2 88LIBMALLOC = @LIBMALLOC@
89LIBPAPER = @LIBPAPER@
90LIBPNG = @LIBPNG@
91LIBSLP = @LIBSLP@
f7deaa1a 92LIBGSSAPI = @LIBGSSAPI@
ef416fc2 93LIBTIFF = @LIBTIFF@
75bd9771 94LIBUSB = @LIBUSB@
749b1e90 95LIBWRAP = @LIBWRAP@
ef416fc2 96LIBZ = @LIBZ@
97
923edb68 98#
99# Install static libraries?
100#
101
102INSTALLSTATIC = @INSTALLSTATIC@
103
ef416fc2 104#
105# Program options...
106#
09a101d6 107# ARCHFLAGS Defines the default architecture build options.
e1d6a774 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)
ef416fc2 116#
117
5bd77a73
MS
118ALL_CFLAGS = -I.. -D_CUPS_SOURCE $(CFLAGS) $(SSLFLAGS) \
119 @LARGEFILE@ @PTHREAD_FLAGS@ $(OPTIONS)
ac884b6a
MS
120ALL_CXXFLAGS = -I.. -D_CUPS_SOURCE $(CXXFLAGS) $(SSLFLAGS) \
121 @LARGEFILE@ @PTHREAD_FLAGS@ $(OPTIONS)
e1d6a774 122ARCHFLAGS = @ARCHFLAGS@
ef416fc2 123ARFLAGS = @ARFLAGS@
124BACKLIBS = @BACKLIBS@
5bd77a73 125CFLAGS = @CPPFLAGS@ @CFLAGS@
ef416fc2 126COMMONLIBS = @LIBS@
09ec0018 127CUPSDLIBS = @CUPSDLIBS@
ac884b6a
MS
128CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@
129CXXLIBS = @CXXLIBS@
50fe7201 130DSOFLAGS = -L../cups @DSOFLAGS@
ef416fc2 131DSOLIBS = @DSOLIBS@ $(COMMONLIBS)
f7deaa1a 132DNSSDLIBS = @DNSSDLIBS@
09a101d6 133FONTS = @FONTS@
ed486911 134IMGLIBS = @IMGLIBS@
e1d6a774 135IMGFILTERS = @IMGFILTERS@
f7deaa1a 136LAUNCHDLIBS = @LAUNCHDLIBS@
09a101d6 137LDFLAGS = -L../cups -L../filter @LDARCHFLAGS@ \
f7deaa1a 138 @LDFLAGS@ @RELROFLAGS@ @PIEFLAGS@ $(OPTIM)
09a101d6 139LEGACY_BACKENDS = @LEGACY_BACKENDS@
140LIBCUPSORDER = @LIBCUPSORDER@
cc0d019f 141LIBCUPSIMAGEORDER = @LIBCUPSIMAGEORDER@
ef416fc2 142LINKCUPS = @LINKCUPS@ $(SSLLIBS)
143LINKCUPSIMAGE = @LINKCUPSIMAGE@
144LIBS = $(LINKCUPS) $(COMMONLIBS)
7a14d768 145MDNS = @MDNS@
ef416fc2 146OPTIM = @OPTIM@
147OPTIONS =
148PAMLIBS = @PAMLIBS@
a74454a7 149PAP = @PAP@
e1d6a774 150PDFTOPS = @PDFTOPS@
b423cd4c 151PHPDIR = @PHPDIR@
7a14d768 152PHPOPTIONS = @PHPOPTIONS@ -I../.. `$(PHPCONFIG) --includes`
ef416fc2 153SSLFLAGS = @SSLFLAGS@
154SSLLIBS = @SSLLIBS@
5f64df29
MS
155UNITTESTS = @UNITTESTS@
156
ef416fc2 157
e1d6a774 158#
159# Separate 32/64-bit library support...
160#
161
162ARCH32FLAGS = @ARCH32FLAGS@
f301802f 163DSO32FLAGS = @DSO32FLAGS@
e1d6a774 164INSTALL32 = @INSTALL32@
165LIB32CUPS = @LIB32CUPS@
166LIB32CUPSIMAGE = @LIB32CUPSIMAGE@
167LIB32DIR = $(BUILDROOT)@LIB32DIR@
168UNINSTALL32 = @UNINSTALL32@
169
170ARCH64FLAGS = @ARCH64FLAGS@
f301802f 171DSO64FLAGS = @DSO64FLAGS@
e1d6a774 172INSTALL64 = @INSTALL64@
173LIB64CUPS = @LIB64CUPS@
174LIB64CUPSIMAGE = @LIB64CUPSIMAGE@
175LIB64DIR = $(BUILDROOT)@LIB64DIR@
176UNINSTALL64 = @UNINSTALL64@
177
ef416fc2 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#
d09495fa 186# The "datarootdir" variable may not get defined if you are using
187# a version of autoconf prior to 2.60.
188#
ef416fc2 189# This is immediately followed by definition in ALL CAPS for the
190# needed directories...
191#
192
193bindir = @bindir@
194datadir = @datadir@
d09495fa 195datarootdir = @datarootdir@
ef416fc2 196exec_prefix = @exec_prefix@
197includedir = @includedir@
198infodir = @infodir@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203oldincludedir = @oldincludedir@
204prefix = @prefix@
205sbindir = @sbindir@
206sharedstatedir = @sharedstatedir@
207srcdir = @srcdir@
208sysconfdir = @sysconfdir@
209top_srcdir = @top_srcdir@
210
211BUILDROOT = $(DSTROOT)
212
213AMANDIR = $(BUILDROOT)@AMANDIR@
214BINDIR = $(BUILDROOT)@bindir@
215CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@
216DATADIR = $(BUILDROOT)@CUPS_DATADIR@
217DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@
f7deaa1a 218ICONDIR = @ICONDIR@
ef416fc2 219INCLUDEDIR = $(BUILDROOT)$(includedir)
220INITDIR = @INITDIR@
221INITDDIR = @INITDDIR@
222LIBDIR = $(BUILDROOT)$(libdir)
223LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@
224LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@
225MANDIR = $(BUILDROOT)@mandir@
f7deaa1a 226MENUDIR = @MENUDIR@
ef416fc2 227PMANDIR = $(BUILDROOT)@PMANDIR@
f7deaa1a 228RCLEVELS = @RCLEVELS@
229RCSTART = @RCSTART@
230RCSTOP = @RCSTOP@
ef416fc2 231REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@
232SBINDIR = $(BUILDROOT)@sbindir@
233SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@
234SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@
749b1e90 235SMFMANIFESTDIR = @SMFMANIFESTDIR@
ef416fc2 236STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@
e1d6a774 237XINETD = @XINETD@
ef416fc2 238
239MAN1EXT = @MAN1EXT@
240MAN5EXT = @MAN5EXT@
bd7854cb 241MAN7EXT = @MAN7EXT@
ef416fc2 242MAN8EXT = @MAN8EXT@
243MAN8DIR = @MAN8DIR@
244
b423cd4c 245PAMDIR = @PAMDIR@
ef416fc2 246PAMFILE = @PAMFILE@
247
b423cd4c 248DEFAULT_LAUNCHD_CONF = @DEFAULT_LAUNCHD_CONF@
bd7854cb 249DBUSDIR = @DBUSDIR@
a4d04587 250
ef416fc2 251
252#
253# Rules...
254#
255
256.SILENT:
ac884b6a 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
ef416fc2 258
259.c.o:
260 echo Compiling $<...
09a101d6 261 $(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c $<
e1d6a774 262
263.c.32.o:
264 echo Compiling 32-bit $<...
09a101d6 265 $(CC) $(ARCH32FLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $<
e1d6a774 266
267.c.64.o:
268 echo Compiling 64-bit $<...
09a101d6 269 $(CC) $(ARCH64FLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $<
ef416fc2 270
ac884b6a
MS
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:
ef416fc2 276 echo Linking $<...
277 $(RM) $@
278 $(LN) $< $@
279
ac884b6a 280.man.1.gz .man.1m.gz .man.3.gz .man.5.gz .man.7.gz .man.8.gz .man.gz:
ef416fc2 281 echo -n Compressing $<...
282 $(RM) $@
283 gzip -v9 <$< >$@
284
285
286#
75bd9771 287# End of "$Id: Makedefs.in 7687 2008-06-24 01:28:36Z mike $"
ef416fc2 288#