]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
36080486 | 2 | # "$Id: Makedefs.in 5564 2006-05-22 00:59:11Z mike $" |
ef416fc2 | 3 | # |
4 | # Common makefile definitions for the Common UNIX Printing System (CUPS). | |
5 | # | |
bd7854cb | 6 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 7 | # |
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 | |
13 | # at: | |
14 | # | |
15 | # Attn: CUPS Licensing Information | |
16 | # Easy Software Products | |
17 | # 44141 Airport View Drive, Suite 204 | |
18 | # Hollywood, Maryland 20636 USA | |
19 | # | |
20 | # Voice: (301) 373-9600 | |
21 | # EMail: cups-info@cups.org | |
22 | # WWW: http://www.cups.org | |
23 | # | |
24 | ||
25 | # | |
26 | # Programs... | |
27 | # | |
28 | ||
29 | AR = @AR@ | |
30 | AWK = @AWK@ | |
31 | CC = @LIBTOOL@ @CC@ | |
32 | CXX = @LIBTOOL@ @CXX@ | |
33 | DSO = @DSO@ | |
34 | HTMLDOC = @HTMLDOC@ | |
35 | INSTALL = @INSTALL@ | |
bd7854cb | 36 | LD = @LD@ |
ef416fc2 | 37 | LIBTOOL = @LIBTOOL@ |
38 | LN = @LN@ -sf | |
39 | MV = @MV@ | |
b423cd4c | 40 | PHPCONFIG = @PHPCONFIG@ |
ef416fc2 | 41 | RANLIB = @RANLIB@ |
42 | RM = @RM@ -f | |
757d2cad | 43 | RMDIR = @RMDIR@ |
ef416fc2 | 44 | SED = @SED@ |
45 | SHELL = /bin/sh | |
46 | STRIP = @STRIP@ | |
47 | ||
48 | # | |
49 | # Installation programs... | |
50 | # | |
51 | ||
e00b005a | 52 | INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755 |
09ec0018 | 53 | INSTALL_CONFIG = $(INSTALL) -m @CUPS_CONFIG_FILE_PERM@ |
ef416fc2 | 54 | INSTALL_DATA = $(INSTALL) -m 644 |
55 | INSTALL_DIR = $(INSTALL) -d | |
56 | INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755 | |
57 | INSTALL_MAN = $(INSTALL) -m 644 | |
58 | INSTALL_SCRIPT = $(INSTALL) -m 755 | |
59 | ||
60 | # | |
09ec0018 | 61 | # Default user, group, and system groups for the scheduler... |
ef416fc2 | 62 | # |
63 | ||
64 | CUPS_USER = @CUPS_USER@ | |
65 | CUPS_GROUP = @CUPS_GROUP@ | |
09ec0018 | 66 | CUPS_SYSTEM_GROUPS = @CUPS_SYSTEM_GROUPS@ |
bd7854cb | 67 | CUPS_PRIMARY_SYSTEM_GROUP = @CUPS_PRIMARY_SYSTEM_GROUP@ |
09ec0018 | 68 | |
69 | # | |
70 | # Default permissions... | |
71 | # | |
72 | ||
73 | CUPS_CONFIG_FILE_PERM = @CUPS_CONFIG_FILE_PERM@ | |
74 | CUPS_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@ | |
ef416fc2 | 75 | |
e1d6a774 | 76 | # |
77 | # Languages to install... | |
78 | # | |
79 | ||
80 | LANGUAGES = @LANGUAGES@ | |
81 | ||
ef416fc2 | 82 | # |
83 | # Libraries... | |
84 | # | |
85 | ||
86 | LIBCUPS = @LIBCUPS@ | |
87 | LIBCUPSIMAGE = @LIBCUPSIMAGE@ | |
88 | LIBJPEG = @LIBJPEG@ | |
b423cd4c | 89 | LIBLDAP = @LIBLDAP@ |
ef416fc2 | 90 | LIBMALLOC = @LIBMALLOC@ |
91 | LIBPAPER = @LIBPAPER@ | |
92 | LIBPNG = @LIBPNG@ | |
93 | LIBSLP = @LIBSLP@ | |
94 | LIBTIFF = @LIBTIFF@ | |
95 | LIBZ = @LIBZ@ | |
96 | ||
923edb68 | 97 | # |
98 | # Install static libraries? | |
99 | # | |
100 | ||
101 | INSTALLSTATIC = @INSTALLSTATIC@ | |
102 | ||
ef416fc2 | 103 | # |
104 | # Program options... | |
105 | # | |
e1d6a774 | 106 | # ARCHFLAGS Defines the default architecture build options, used |
107 | # when compiling separate 32/64-bit libraries. | |
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 | ||
e1d6a774 | 118 | ARCHFLAGS = @ARCHFLAGS@ |
ef416fc2 | 119 | ARFLAGS = @ARFLAGS@ |
120 | BACKLIBS = @BACKLIBS@ | |
e53920b9 | 121 | CFLAGS = -I.. $(SSLFLAGS) @CPPFLAGS@ @CFLAGS@ \ |
b423cd4c | 122 | @LARGEFILE@ @PTHREAD_FLAGS@ $(OPTIONS) |
ef416fc2 | 123 | COMMONLIBS = @LIBS@ |
09ec0018 | 124 | CUPSDLIBS = @CUPSDLIBS@ |
e53920b9 | 125 | CXXFLAGS = -I.. $(SSLFLAGS) @CPPFLAGS@ @CXXFLAGS@ \ |
b423cd4c | 126 | @LARGEFILE@ @PTHREAD_FLAGS@ $(OPTIONS) |
ef416fc2 | 127 | CXXLIBS = @CXXLIBS@ |
128 | DSOFLAGS = @DSOFLAGS@ | |
129 | DSOLIBS = @DSOLIBS@ $(COMMONLIBS) | |
130 | IMGLIBS = @IMGLIBS@ -lm | |
e1d6a774 | 131 | IMGFILTERS = @IMGFILTERS@ |
80ca4592 | 132 | LDFLAGS = -L../cups -L../filter $(RC_CFLAGS) $(ARCHFLAGS) \ |
a74454a7 | 133 | @LDFLAGS@ @PIEFLAGS@ $(OPTIM) |
ef416fc2 | 134 | LINKCUPS = @LINKCUPS@ $(SSLLIBS) |
135 | LINKCUPSIMAGE = @LINKCUPSIMAGE@ | |
136 | LIBS = $(LINKCUPS) $(COMMONLIBS) | |
137 | OPTIM = @OPTIM@ | |
138 | OPTIONS = | |
139 | PAMLIBS = @PAMLIBS@ | |
a74454a7 | 140 | PAP = @PAP@ |
e1d6a774 | 141 | PDFTOPS = @PDFTOPS@ |
b423cd4c | 142 | PHPDIR = @PHPDIR@ |
ef416fc2 | 143 | SSLFLAGS = @SSLFLAGS@ |
144 | SSLLIBS = @SSLLIBS@ | |
a4d04587 | 145 | LAUNCHDLIBS = @LAUNCHDLIBS@ |
ef416fc2 | 146 | |
e1d6a774 | 147 | # |
148 | # Separate 32/64-bit library support... | |
149 | # | |
150 | ||
151 | ARCH32FLAGS = @ARCH32FLAGS@ | |
f301802f | 152 | DSO32FLAGS = @DSO32FLAGS@ |
e1d6a774 | 153 | INSTALL32 = @INSTALL32@ |
154 | LIB32CUPS = @LIB32CUPS@ | |
155 | LIB32CUPSIMAGE = @LIB32CUPSIMAGE@ | |
156 | LIB32DIR = $(BUILDROOT)@LIB32DIR@ | |
157 | UNINSTALL32 = @UNINSTALL32@ | |
158 | ||
159 | ARCH64FLAGS = @ARCH64FLAGS@ | |
f301802f | 160 | DSO64FLAGS = @DSO64FLAGS@ |
e1d6a774 | 161 | INSTALL64 = @INSTALL64@ |
162 | LIB64CUPS = @LIB64CUPS@ | |
163 | LIB64CUPSIMAGE = @LIB64CUPSIMAGE@ | |
164 | LIB64DIR = $(BUILDROOT)@LIB64DIR@ | |
165 | UNINSTALL64 = @UNINSTALL64@ | |
166 | ||
ef416fc2 | 167 | # |
168 | # Directories... | |
169 | # | |
170 | # The first section uses the GNU names (which are *extremely* | |
171 | # difficult to find in a makefile because they are lowercase...) | |
172 | # We have to define these first because autoconf uses ${prefix} | |
173 | # and ${exec_prefix} for most of the other directories... | |
174 | # | |
175 | # This is immediately followed by definition in ALL CAPS for the | |
176 | # needed directories... | |
177 | # | |
178 | ||
179 | bindir = @bindir@ | |
180 | datadir = @datadir@ | |
181 | exec_prefix = @exec_prefix@ | |
182 | includedir = @includedir@ | |
183 | infodir = @infodir@ | |
184 | libdir = @libdir@ | |
185 | libexecdir = @libexecdir@ | |
186 | localstatedir = @localstatedir@ | |
187 | mandir = @mandir@ | |
188 | oldincludedir = @oldincludedir@ | |
189 | prefix = @prefix@ | |
190 | sbindir = @sbindir@ | |
191 | sharedstatedir = @sharedstatedir@ | |
192 | srcdir = @srcdir@ | |
193 | sysconfdir = @sysconfdir@ | |
194 | top_srcdir = @top_srcdir@ | |
195 | ||
196 | BUILDROOT = $(DSTROOT) | |
197 | ||
198 | AMANDIR = $(BUILDROOT)@AMANDIR@ | |
199 | BINDIR = $(BUILDROOT)@bindir@ | |
200 | CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@ | |
201 | DATADIR = $(BUILDROOT)@CUPS_DATADIR@ | |
202 | DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@ | |
203 | INCLUDEDIR = $(BUILDROOT)$(includedir) | |
204 | INITDIR = @INITDIR@ | |
205 | INITDDIR = @INITDDIR@ | |
206 | LIBDIR = $(BUILDROOT)$(libdir) | |
207 | LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@ | |
208 | LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@ | |
209 | MANDIR = $(BUILDROOT)@mandir@ | |
210 | PMANDIR = $(BUILDROOT)@PMANDIR@ | |
211 | REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@ | |
212 | SBINDIR = $(BUILDROOT)@sbindir@ | |
213 | SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@ | |
214 | SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@ | |
215 | STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@ | |
e1d6a774 | 216 | XINETD = @XINETD@ |
ef416fc2 | 217 | |
218 | MAN1EXT = @MAN1EXT@ | |
219 | MAN5EXT = @MAN5EXT@ | |
bd7854cb | 220 | MAN7EXT = @MAN7EXT@ |
ef416fc2 | 221 | MAN8EXT = @MAN8EXT@ |
222 | MAN8DIR = @MAN8DIR@ | |
223 | ||
b423cd4c | 224 | PAMDIR = @PAMDIR@ |
ef416fc2 | 225 | PAMFILE = @PAMFILE@ |
226 | ||
b423cd4c | 227 | DEFAULT_LAUNCHD_CONF = @DEFAULT_LAUNCHD_CONF@ |
bd7854cb | 228 | DBUSDIR = @DBUSDIR@ |
a4d04587 | 229 | |
ef416fc2 | 230 | |
231 | # | |
232 | # Rules... | |
233 | # | |
234 | ||
235 | .SILENT: | |
e1d6a774 | 236 | .SUFFIXES: .1 .1.gz .1m .1m.gz .5 .5.gz .7 .7.gz .8 .8.gz .a .c .cxx .h .man .o .32.o .64.o .gz |
ef416fc2 | 237 | |
238 | .c.o: | |
239 | echo Compiling $<... | |
e1d6a774 | 240 | $(CC) $(ARCHFLAGS) $(OPTIM) $(CFLAGS) -c $< |
241 | ||
242 | .c.32.o: | |
243 | echo Compiling 32-bit $<... | |
244 | $(CC) $(ARCH32FLAGS) $(OPTIM) $(CFLAGS) -c -o $@ $< | |
245 | ||
246 | .c.64.o: | |
247 | echo Compiling 64-bit $<... | |
248 | $(CC) $(ARCH64FLAGS) $(OPTIM) $(CFLAGS) -c -o $@ $< | |
ef416fc2 | 249 | |
250 | .cxx.o: | |
251 | echo Compiling $<... | |
e1d6a774 | 252 | $(CXX) $(ARCHFLAGS) $(OPTIM) $(CXXFLAGS) -c $< |
ef416fc2 | 253 | |
bd7854cb | 254 | .man.1 .man.1m .man.5 .man.7 .man.8: |
ef416fc2 | 255 | echo Linking $<... |
256 | $(RM) $@ | |
257 | $(LN) $< $@ | |
258 | ||
bd7854cb | 259 | .man.1.gz .man.1m.gz .man.5.gz .man.7.gz .man.8.gz .man.gz: |
ef416fc2 | 260 | echo -n Compressing $<... |
261 | $(RM) $@ | |
262 | gzip -v9 <$< >$@ | |
263 | ||
264 | ||
265 | # | |
36080486 | 266 | # End of "$Id: Makedefs.in 5564 2006-05-22 00:59:11Z mike $" |
ef416fc2 | 267 | # |