4 # Common makefile definitions for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2005 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
46 # Installation programs...
49 INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755
50 INSTALL_CONFIG = $(INSTALL) -m @CUPS_CONFIG_FILE_PERM@
51 INSTALL_DATA = $(INSTALL) -m 644
52 INSTALL_DIR = $(INSTALL) -d
53 INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755
54 INSTALL_MAN = $(INSTALL) -m 644
55 INSTALL_SCRIPT = $(INSTALL) -m 755
58 # Default user, group, and system groups for the scheduler...
61 CUPS_USER = @CUPS_USER@
62 CUPS_GROUP = @CUPS_GROUP@
63 CUPS_SYSTEM_GROUPS = @CUPS_SYSTEM_GROUPS@
66 # Default permissions...
69 CUPS_CONFIG_FILE_PERM = @CUPS_CONFIG_FILE_PERM@
70 CUPS_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@
77 LIBCUPSIMAGE = @LIBCUPSIMAGE@
79 LIBMALLOC = @LIBMALLOC@
87 # Install static libraries?
90 INSTALLSTATIC = @INSTALLSTATIC@
95 # OPTIM defines the common compiler optimization/debugging options.
96 # OPTIONS defines other compile-time options (currently only -dDEBUG for
101 BACKLIBS = @BACKLIBS@
102 CFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CFLAGS@ \
103 @LARGEFILE@ $(OPTIONS)
105 CUPSDLIBS = @CUPSDLIBS@
106 CXXFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CXXFLAGS@ \
107 @LARGEFILE@ $(OPTIONS)
109 DSOFLAGS = @DSOFLAGS@
110 DSOLIBS = @DSOLIBS@ $(COMMONLIBS)
111 IMGLIBS = @IMGLIBS@ -lm
112 LDFLAGS = -L../cups -L../filter $(RC_CFLAGS) @LDFLAGS@ $(OPTIM)
113 LINKCUPS = @LINKCUPS@ $(SSLLIBS)
114 LINKCUPSIMAGE = @LINKCUPSIMAGE@
115 LIBS = $(LINKCUPS) $(COMMONLIBS)
119 SSLFLAGS = @SSLFLAGS@
121 LAUNCHDLIBS = @LAUNCHDLIBS@
126 # The first section uses the GNU names (which are *extremely*
127 # difficult to find in a makefile because they are lowercase...)
128 # We have to define these first because autoconf uses ${prefix}
129 # and ${exec_prefix} for most of the other directories...
131 # This is immediately followed by definition in ALL CAPS for the
132 # needed directories...
137 exec_prefix = @exec_prefix@
138 includedir = @includedir@
141 libexecdir = @libexecdir@
142 localstatedir = @localstatedir@
144 oldincludedir = @oldincludedir@
147 sharedstatedir = @sharedstatedir@
149 sysconfdir = @sysconfdir@
150 top_srcdir = @top_srcdir@
152 BUILDROOT = $(DSTROOT)
154 AMANDIR = $(BUILDROOT)@AMANDIR@
155 BINDIR = $(BUILDROOT)@bindir@
156 CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@
157 DATADIR = $(BUILDROOT)@CUPS_DATADIR@
158 DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@
159 INCLUDEDIR = $(BUILDROOT)$(includedir)
161 INITDDIR = @INITDDIR@
162 LIBDIR = $(BUILDROOT)$(libdir)
163 LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@
164 LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@
165 MANDIR = $(BUILDROOT)@mandir@
166 PMANDIR = $(BUILDROOT)@PMANDIR@
167 REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@
168 SBINDIR = $(BUILDROOT)@sbindir@
169 SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@
170 SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@
171 STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@
178 PAMDIR = $(BUILDROOT)@PAMDIR@
181 DEFAULT_LAUNCHD_CONF = @DEFAULT_LAUNCHD_CONF@
189 .SUFFIXES: .1 .1.gz .1m .1m.gz .5 .5.gz .8 .8.gz .a .c .cxx .h .man .o .gz
193 $(CC) $(OPTIM) $(CFLAGS) -c $<
197 $(CXX) $(OPTIM) $(CXXFLAGS) -c $<
199 .man.1 .man.1m .man.5 .man.8:
204 .man.1.gz .man.1m.gz .man.5.gz .man.8.gz .man.gz:
205 echo -n Compressing $<...