]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
757d2cad | 2 | # "$Id: Makedefs.in 5229 2006-03-05 16:48:12Z 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 | |
76 | # | |
77 | # Libraries... | |
78 | # | |
79 | ||
80 | LIBCUPS = @LIBCUPS@ | |
81 | LIBCUPSIMAGE = @LIBCUPSIMAGE@ | |
82 | LIBJPEG = @LIBJPEG@ | |
b423cd4c | 83 | LIBLDAP = @LIBLDAP@ |
ef416fc2 | 84 | LIBMALLOC = @LIBMALLOC@ |
85 | LIBPAPER = @LIBPAPER@ | |
86 | LIBPNG = @LIBPNG@ | |
87 | LIBSLP = @LIBSLP@ | |
88 | LIBTIFF = @LIBTIFF@ | |
89 | LIBZ = @LIBZ@ | |
90 | ||
923edb68 | 91 | # |
92 | # Install static libraries? | |
93 | # | |
94 | ||
95 | INSTALLSTATIC = @INSTALLSTATIC@ | |
96 | ||
ef416fc2 | 97 | # |
98 | # Program options... | |
99 | # | |
100 | # OPTIM defines the common compiler optimization/debugging options. | |
101 | # OPTIONS defines other compile-time options (currently only -dDEBUG for | |
102 | # extra debug info) | |
103 | # | |
104 | ||
105 | ARFLAGS = @ARFLAGS@ | |
106 | BACKLIBS = @BACKLIBS@ | |
107 | CFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CFLAGS@ \ | |
b423cd4c | 108 | @LARGEFILE@ @PTHREAD_FLAGS@ $(OPTIONS) |
ef416fc2 | 109 | COMMONLIBS = @LIBS@ |
09ec0018 | 110 | CUPSDLIBS = @CUPSDLIBS@ |
ef416fc2 | 111 | CXXFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CXXFLAGS@ \ |
b423cd4c | 112 | @LARGEFILE@ @PTHREAD_FLAGS@ $(OPTIONS) |
ef416fc2 | 113 | CXXLIBS = @CXXLIBS@ |
114 | DSOFLAGS = @DSOFLAGS@ | |
115 | DSOLIBS = @DSOLIBS@ $(COMMONLIBS) | |
116 | IMGLIBS = @IMGLIBS@ -lm | |
117 | LDFLAGS = -L../cups -L../filter $(RC_CFLAGS) @LDFLAGS@ $(OPTIM) | |
118 | LINKCUPS = @LINKCUPS@ $(SSLLIBS) | |
119 | LINKCUPSIMAGE = @LINKCUPSIMAGE@ | |
120 | LIBS = $(LINKCUPS) $(COMMONLIBS) | |
121 | OPTIM = @OPTIM@ | |
122 | OPTIONS = | |
123 | PAMLIBS = @PAMLIBS@ | |
b423cd4c | 124 | PHPDIR = @PHPDIR@ |
ef416fc2 | 125 | SSLFLAGS = @SSLFLAGS@ |
126 | SSLLIBS = @SSLLIBS@ | |
a4d04587 | 127 | LAUNCHDLIBS = @LAUNCHDLIBS@ |
ef416fc2 | 128 | |
129 | # | |
130 | # Directories... | |
131 | # | |
132 | # The first section uses the GNU names (which are *extremely* | |
133 | # difficult to find in a makefile because they are lowercase...) | |
134 | # We have to define these first because autoconf uses ${prefix} | |
135 | # and ${exec_prefix} for most of the other directories... | |
136 | # | |
137 | # This is immediately followed by definition in ALL CAPS for the | |
138 | # needed directories... | |
139 | # | |
140 | ||
141 | bindir = @bindir@ | |
142 | datadir = @datadir@ | |
143 | exec_prefix = @exec_prefix@ | |
144 | includedir = @includedir@ | |
145 | infodir = @infodir@ | |
146 | libdir = @libdir@ | |
147 | libexecdir = @libexecdir@ | |
148 | localstatedir = @localstatedir@ | |
149 | mandir = @mandir@ | |
150 | oldincludedir = @oldincludedir@ | |
151 | prefix = @prefix@ | |
152 | sbindir = @sbindir@ | |
153 | sharedstatedir = @sharedstatedir@ | |
154 | srcdir = @srcdir@ | |
155 | sysconfdir = @sysconfdir@ | |
156 | top_srcdir = @top_srcdir@ | |
157 | ||
158 | BUILDROOT = $(DSTROOT) | |
159 | ||
160 | AMANDIR = $(BUILDROOT)@AMANDIR@ | |
161 | BINDIR = $(BUILDROOT)@bindir@ | |
162 | CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@ | |
163 | DATADIR = $(BUILDROOT)@CUPS_DATADIR@ | |
164 | DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@ | |
165 | INCLUDEDIR = $(BUILDROOT)$(includedir) | |
166 | INITDIR = @INITDIR@ | |
167 | INITDDIR = @INITDDIR@ | |
168 | LIBDIR = $(BUILDROOT)$(libdir) | |
169 | LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@ | |
170 | LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@ | |
171 | MANDIR = $(BUILDROOT)@mandir@ | |
172 | PMANDIR = $(BUILDROOT)@PMANDIR@ | |
173 | REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@ | |
174 | SBINDIR = $(BUILDROOT)@sbindir@ | |
175 | SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@ | |
176 | SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@ | |
177 | STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@ | |
178 | ||
179 | MAN1EXT = @MAN1EXT@ | |
180 | MAN5EXT = @MAN5EXT@ | |
bd7854cb | 181 | MAN7EXT = @MAN7EXT@ |
ef416fc2 | 182 | MAN8EXT = @MAN8EXT@ |
183 | MAN8DIR = @MAN8DIR@ | |
184 | ||
b423cd4c | 185 | PAMDIR = @PAMDIR@ |
ef416fc2 | 186 | PAMFILE = @PAMFILE@ |
187 | ||
b423cd4c | 188 | DEFAULT_LAUNCHD_CONF = @DEFAULT_LAUNCHD_CONF@ |
bd7854cb | 189 | DBUSDIR = @DBUSDIR@ |
a4d04587 | 190 | |
ef416fc2 | 191 | |
192 | # | |
193 | # Rules... | |
194 | # | |
195 | ||
196 | .SILENT: | |
bd7854cb | 197 | .SUFFIXES: .1 .1.gz .1m .1m.gz .5 .5.gz .7 .7.gz .8 .8.gz .a .c .cxx .h .man .o .gz |
ef416fc2 | 198 | |
199 | .c.o: | |
200 | echo Compiling $<... | |
201 | $(CC) $(OPTIM) $(CFLAGS) -c $< | |
202 | ||
203 | .cxx.o: | |
204 | echo Compiling $<... | |
205 | $(CXX) $(OPTIM) $(CXXFLAGS) -c $< | |
206 | ||
bd7854cb | 207 | .man.1 .man.1m .man.5 .man.7 .man.8: |
ef416fc2 | 208 | echo Linking $<... |
209 | $(RM) $@ | |
210 | $(LN) $< $@ | |
211 | ||
bd7854cb | 212 | .man.1.gz .man.1m.gz .man.5.gz .man.7.gz .man.8.gz .man.gz: |
ef416fc2 | 213 | echo -n Compressing $<... |
214 | $(RM) $@ | |
215 | gzip -v9 <$< >$@ | |
216 | ||
217 | ||
218 | # | |
757d2cad | 219 | # End of "$Id: Makedefs.in 5229 2006-03-05 16:48:12Z mike $" |
ef416fc2 | 220 | # |