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 -s
50 INSTALL_DATA = $(INSTALL) -m 644
51 INSTALL_DIR = $(INSTALL) -d
52 INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755
53 INSTALL_MAN = $(INSTALL) -m 644
54 INSTALL_SCRIPT = $(INSTALL) -m 755
57 # Default user and group for the scheduler...
60 CUPS_USER = @CUPS_USER@
61 CUPS_GROUP = @CUPS_GROUP@
68 LIBCUPSIMAGE = @LIBCUPSIMAGE@
70 LIBMALLOC = @LIBMALLOC@
80 # OPTIM defines the common compiler optimization/debugging options.
81 # OPTIONS defines other compile-time options (currently only -dDEBUG for
87 CFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CFLAGS@ \
88 @LARGEFILE@ $(OPTIONS)
90 CXXFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CXXFLAGS@ \
91 @LARGEFILE@ $(OPTIONS)
94 DSOLIBS = @DSOLIBS@ $(COMMONLIBS)
95 IMGLIBS = @IMGLIBS@ -lm
96 LDFLAGS = -L../cups -L../filter $(RC_CFLAGS) @LDFLAGS@ $(OPTIM)
97 LINKCUPS = @LINKCUPS@ $(SSLLIBS)
98 LINKCUPSIMAGE = @LINKCUPSIMAGE@
99 LIBS = $(LINKCUPS) $(COMMONLIBS)
103 SSLFLAGS = @SSLFLAGS@
109 # The first section uses the GNU names (which are *extremely*
110 # difficult to find in a makefile because they are lowercase...)
111 # We have to define these first because autoconf uses ${prefix}
112 # and ${exec_prefix} for most of the other directories...
114 # This is immediately followed by definition in ALL CAPS for the
115 # needed directories...
120 exec_prefix = @exec_prefix@
121 includedir = @includedir@
124 libexecdir = @libexecdir@
125 localstatedir = @localstatedir@
127 oldincludedir = @oldincludedir@
130 sharedstatedir = @sharedstatedir@
132 sysconfdir = @sysconfdir@
133 top_srcdir = @top_srcdir@
135 BUILDROOT = $(DSTROOT)
137 AMANDIR = $(BUILDROOT)@AMANDIR@
138 BINDIR = $(BUILDROOT)@bindir@
139 CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@
140 DATADIR = $(BUILDROOT)@CUPS_DATADIR@
141 DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@
142 INCLUDEDIR = $(BUILDROOT)$(includedir)
144 INITDDIR = @INITDDIR@
145 LIBDIR = $(BUILDROOT)$(libdir)
146 LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@
147 LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@
148 MANDIR = $(BUILDROOT)@mandir@
149 PMANDIR = $(BUILDROOT)@PMANDIR@
150 REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@
151 SBINDIR = $(BUILDROOT)@sbindir@
152 SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@
153 SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@
154 STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@
161 PAMDIR = $(BUILDROOT)@PAMDIR@
170 .SUFFIXES: .1 .1.gz .1m .1m.gz .5 .5.gz .8 .8.gz .a .c .cxx .h .man .o .gz
174 $(CC) $(OPTIM) $(CFLAGS) -c $<
178 $(CXX) $(OPTIM) $(CXXFLAGS) -c $<
180 .man.1 .man.1m .man.5 .man.8:
185 .man.1.gz .man.1m.gz .man.5.gz .man.8.gz .man.gz:
186 echo -n Compressing $<...