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