4 # Common makefile definitions for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
8 # These coded instructions, statements, and computer programs are the
9 # property of Easy Software Products and are protected by Federal
10 # copyright law. Distribution and use rights are outlined in the file
11 # "LICENSE.txt" which should have been included with this file. If this
12 # file is missing or damaged please contact Easy Software Products
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636 USA
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
47 # Installation programs...
50 INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755
51 INSTALL_CONFIG = $(INSTALL) -m @CUPS_CONFIG_FILE_PERM@
52 INSTALL_DATA = $(INSTALL) -m 644
53 INSTALL_DIR = $(INSTALL) -d
54 INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755
55 INSTALL_MAN = $(INSTALL) -m 644
56 INSTALL_SCRIPT = $(INSTALL) -m 755
59 # Default user, group, and system groups for the scheduler...
62 CUPS_USER = @CUPS_USER@
63 CUPS_GROUP = @CUPS_GROUP@
64 CUPS_SYSTEM_GROUPS = @CUPS_SYSTEM_GROUPS@
65 CUPS_PRIMARY_SYSTEM_GROUP = @CUPS_PRIMARY_SYSTEM_GROUP@
68 # Default permissions...
71 CUPS_CONFIG_FILE_PERM = @CUPS_CONFIG_FILE_PERM@
72 CUPS_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@
79 LIBCUPSIMAGE = @LIBCUPSIMAGE@
82 LIBMALLOC = @LIBMALLOC@
90 # Install static libraries?
93 INSTALLSTATIC = @INSTALLSTATIC@
98 # OPTIM defines the common compiler optimization/debugging options.
99 # OPTIONS defines other compile-time options (currently only -dDEBUG for
104 BACKLIBS = @BACKLIBS@
105 CFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CFLAGS@ \
106 @LARGEFILE@ $(OPTIONS)
108 CUPSDLIBS = @CUPSDLIBS@
109 CXXFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CXXFLAGS@ \
110 @LARGEFILE@ $(OPTIONS)
112 DSOFLAGS = @DSOFLAGS@
113 DSOLIBS = @DSOLIBS@ $(COMMONLIBS)
114 IMGLIBS = @IMGLIBS@ -lm
115 LDFLAGS = -L../cups -L../filter $(RC_CFLAGS) @LDFLAGS@ $(OPTIM)
116 LINKCUPS = @LINKCUPS@ $(SSLLIBS)
117 LINKCUPSIMAGE = @LINKCUPSIMAGE@
118 LIBS = $(LINKCUPS) $(COMMONLIBS)
122 SSLFLAGS = @SSLFLAGS@
124 LAUNCHDLIBS = @LAUNCHDLIBS@
129 # The first section uses the GNU names (which are *extremely*
130 # difficult to find in a makefile because they are lowercase...)
131 # We have to define these first because autoconf uses ${prefix}
132 # and ${exec_prefix} for most of the other directories...
134 # This is immediately followed by definition in ALL CAPS for the
135 # needed directories...
140 exec_prefix = @exec_prefix@
141 includedir = @includedir@
144 libexecdir = @libexecdir@
145 localstatedir = @localstatedir@
147 oldincludedir = @oldincludedir@
150 sharedstatedir = @sharedstatedir@
152 sysconfdir = @sysconfdir@
153 top_srcdir = @top_srcdir@
155 BUILDROOT = $(DSTROOT)
157 AMANDIR = $(BUILDROOT)@AMANDIR@
158 BINDIR = $(BUILDROOT)@bindir@
159 CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@
160 DATADIR = $(BUILDROOT)@CUPS_DATADIR@
161 DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@
162 INCLUDEDIR = $(BUILDROOT)$(includedir)
164 INITDDIR = @INITDDIR@
165 LIBDIR = $(BUILDROOT)$(libdir)
166 LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@
167 LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@
168 MANDIR = $(BUILDROOT)@mandir@
169 PMANDIR = $(BUILDROOT)@PMANDIR@
170 REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@
171 SBINDIR = $(BUILDROOT)@sbindir@
172 SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@
173 SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@
174 STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@
182 PAMDIR = $(BUILDROOT)@PAMDIR@
185 DEFAULT_LAUNCHD_CONF = @DEFAULT_LAUNCHD_CONF@
194 .SUFFIXES: .1 .1.gz .1m .1m.gz .5 .5.gz .7 .7.gz .8 .8.gz .a .c .cxx .h .man .o .gz
198 $(CC) $(OPTIM) $(CFLAGS) -c $<
202 $(CXX) $(OPTIM) $(CXXFLAGS) -c $<
204 .man.1 .man.1m .man.5 .man.7 .man.8:
209 .man.1.gz .man.1m.gz .man.5.gz .man.7.gz .man.8.gz .man.gz:
210 echo -n Compressing $<...