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