]>
Commit | Line | Data |
---|---|---|
3a57cba8 | 1 | # |
c9d3f842 | 2 | # "$Id$" |
3a57cba8 | 3 | # |
4 | # Common makefile definitions for the Common UNIX Printing System (CUPS). | |
5 | # | |
c9d3f842 | 6 | # Copyright 1997-2005 by Easy Software Products, all rights reserved. |
3a57cba8 | 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 | |
c9e6a22c | 17 | # 44141 Airport View Drive, Suite 204 |
c9d3f842 | 18 | # Hollywood, Maryland 20636 USA |
3a57cba8 | 19 | # |
9639c4de | 20 | # Voice: (301) 373-9600 |
3a57cba8 | 21 | # EMail: cups-info@cups.org |
22 | # WWW: http://www.cups.org | |
23 | # | |
24 | ||
a810d5d8 | 25 | # |
26 | # Programs... | |
27 | # | |
28 | ||
b4f2ed46 | 29 | AR = @AR@ |
30 | AWK = @AWK@ | |
31 | CC = @LIBTOOL@ @CC@ | |
32 | CXX = @LIBTOOL@ @CXX@ | |
33 | DSO = @DSO@ | |
34 | HTMLDOC = @HTMLDOC@ | |
35 | INSTALL = @INSTALL@ | |
36 | LIBTOOL = @LIBTOOL@ | |
2abcdcaa | 37 | LN = @LN@ -sf |
b4f2ed46 | 38 | MV = @MV@ |
b4f2ed46 | 39 | RANLIB = @RANLIB@ |
40 | RM = @RM@ -f | |
41 | SED = @SED@ | |
42 | SHELL = /bin/sh | |
43 | STRIP = @STRIP@ | |
3a57cba8 | 44 | |
a3e17a89 | 45 | # |
46 | # Installation programs... | |
47 | # | |
48 | ||
753453e4 | 49 | INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755 -s |
6dc66910 | 50 | INSTALL_CONFIG = $(INSTALL) -m @CUPS_CONFIG_FILE_PERM@ |
753453e4 | 51 | INSTALL_DATA = $(INSTALL) -m 644 |
52 | INSTALL_DIR = $(INSTALL) -d | |
53 | INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755 | |
54 | INSTALL_MAN = $(INSTALL) -m 644 | |
55 | INSTALL_SCRIPT = $(INSTALL) -m 755 | |
56 | ||
57 | # | |
6dc66910 | 58 | # Default user, group, and system groups for the scheduler... |
753453e4 | 59 | # |
60 | ||
61 | CUPS_USER = @CUPS_USER@ | |
62 | CUPS_GROUP = @CUPS_GROUP@ | |
6dc66910 | 63 | CUPS_SYSTEM_GROUPS = @CUPS_SYSTEM_GROUPS@ |
64 | ||
65 | # | |
66 | # Default permissions... | |
67 | # | |
68 | ||
69 | CUPS_CONFIG_FILE_PERM = @CUPS_CONFIG_FILE_PERM@ | |
70 | CUPS_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@ | |
a3e17a89 | 71 | |
7e8966ca | 72 | # |
73 | # Libraries... | |
74 | # | |
75 | ||
b4f2ed46 | 76 | LIBCUPS = @LIBCUPS@ |
77 | LIBCUPSIMAGE = @LIBCUPSIMAGE@ | |
78 | LIBJPEG = @LIBJPEG@ | |
79 | LIBMALLOC = @LIBMALLOC@ | |
80 | LIBPAPER = @LIBPAPER@ | |
81 | LIBPNG = @LIBPNG@ | |
82 | LIBSLP = @LIBSLP@ | |
83 | LIBTIFF = @LIBTIFF@ | |
84 | LIBZ = @LIBZ@ | |
7e8966ca | 85 | |
be72435b | 86 | # |
87 | # Install static libraries? | |
88 | # | |
89 | ||
90 | INSTALLSTATIC = @INSTALLSTATIC@ | |
91 | ||
a810d5d8 | 92 | # |
93 | # Program options... | |
94 | # | |
95 | # OPTIM defines the common compiler optimization/debugging options. | |
96 | # OPTIONS defines other compile-time options (currently only -dDEBUG for | |
97 | # extra debug info) | |
98 | # | |
99 | ||
b4f2ed46 | 100 | ARFLAGS = @ARFLAGS@ |
101 | BACKLIBS = @BACKLIBS@ | |
1479646d | 102 | CFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CFLAGS@ \ |
103 | @LARGEFILE@ $(OPTIONS) | |
6c240d71 | 104 | COMMONLIBS = @LIBS@ |
6de33945 | 105 | CUPSDLIBS = @CUPSDLIBS@ |
1479646d | 106 | CXXFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CXXFLAGS@ \ |
107 | @LARGEFILE@ $(OPTIONS) | |
b4f2ed46 | 108 | CXXLIBS = @CXXLIBS@ |
33c76e27 | 109 | DSOFLAGS = @DSOFLAGS@ |
b4f2ed46 | 110 | DSOLIBS = @DSOLIBS@ $(COMMONLIBS) |
111 | IMGLIBS = @IMGLIBS@ -lm | |
112 | LDFLAGS = -L../cups -L../filter $(RC_CFLAGS) @LDFLAGS@ $(OPTIM) | |
1a59b1c1 | 113 | LINKCUPS = @LINKCUPS@ $(SSLLIBS) |
b4f2ed46 | 114 | LINKCUPSIMAGE = @LINKCUPSIMAGE@ |
6c240d71 | 115 | LIBS = $(LINKCUPS) $(COMMONLIBS) |
b4f2ed46 | 116 | OPTIM = @OPTIM@ |
117 | OPTIONS = | |
118 | PAMLIBS = @PAMLIBS@ | |
a603272c | 119 | SSLFLAGS = @SSLFLAGS@ |
b4f2ed46 | 120 | SSLLIBS = @SSLLIBS@ |
a810d5d8 | 121 | |
122 | # | |
123 | # Directories... | |
124 | # | |
125 | # The first section uses the GNU names (which are *extremely* | |
126 | # difficult to find in a makefile because they are lowercase...) | |
127 | # We have to define these first because autoconf uses ${prefix} | |
128 | # and ${exec_prefix} for most of the other directories... | |
129 | # | |
130 | # This is immediately followed by definition in ALL CAPS for the | |
131 | # needed directories... | |
132 | # | |
133 | ||
134 | bindir = @bindir@ | |
135 | datadir = @datadir@ | |
136 | exec_prefix = @exec_prefix@ | |
137 | includedir = @includedir@ | |
138 | infodir = @infodir@ | |
139 | libdir = @libdir@ | |
140 | libexecdir = @libexecdir@ | |
141 | localstatedir = @localstatedir@ | |
142 | mandir = @mandir@ | |
143 | oldincludedir = @oldincludedir@ | |
144 | prefix = @prefix@ | |
145 | sbindir = @sbindir@ | |
146 | sharedstatedir = @sharedstatedir@ | |
147 | srcdir = @srcdir@ | |
148 | sysconfdir = @sysconfdir@ | |
149 | top_srcdir = @top_srcdir@ | |
150 | ||
f915b00f | 151 | BUILDROOT = $(DSTROOT) |
152 | ||
753453e4 | 153 | AMANDIR = $(BUILDROOT)@AMANDIR@ |
154 | BINDIR = $(BUILDROOT)@bindir@ | |
f2bc527f | 155 | CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@ |
753453e4 | 156 | DATADIR = $(BUILDROOT)@CUPS_DATADIR@ |
157 | DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@ | |
158 | INCLUDEDIR = $(BUILDROOT)$(includedir) | |
7f30fc5e | 159 | INITDIR = @INITDIR@ |
160 | INITDDIR = @INITDDIR@ | |
753453e4 | 161 | LIBDIR = $(BUILDROOT)$(libdir) |
162 | LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@ | |
163 | LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@ | |
164 | MANDIR = $(BUILDROOT)@mandir@ | |
753453e4 | 165 | PMANDIR = $(BUILDROOT)@PMANDIR@ |
166 | REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@ | |
167 | SBINDIR = $(BUILDROOT)@sbindir@ | |
168 | SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@ | |
169 | SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@ | |
62485fd0 | 170 | STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@ |
a810d5d8 | 171 | |
0efda061 | 172 | MAN1EXT = @MAN1EXT@ |
173 | MAN5EXT = @MAN5EXT@ | |
ae40876c | 174 | MAN8EXT = @MAN8EXT@ |
753453e4 | 175 | MAN8DIR = @MAN8DIR@ |
e64cfc6d | 176 | |
5aad2002 | 177 | PAMDIR = $(BUILDROOT)@PAMDIR@ |
178 | PAMFILE = @PAMFILE@ | |
179 | ||
180 | ||
a810d5d8 | 181 | # |
182 | # Rules... | |
183 | # | |
184 | ||
7e8966ca | 185 | .SILENT: |
0efda061 | 186 | .SUFFIXES: .1 .1.gz .1m .1m.gz .5 .5.gz .8 .8.gz .a .c .cxx .h .man .o .gz |
187 | ||
3a57cba8 | 188 | .c.o: |
8391453b | 189 | echo Compiling $<... |
f6fb02d3 | 190 | $(CC) $(OPTIM) $(CFLAGS) -c $< |
0efda061 | 191 | |
0e60aede | 192 | .cxx.o: |
193 | echo Compiling $<... | |
f6fb02d3 | 194 | $(CXX) $(OPTIM) $(CXXFLAGS) -c $< |
0efda061 | 195 | |
196 | .man.1 .man.1m .man.5 .man.8: | |
197 | echo Linking $<... | |
198 | $(RM) $@ | |
199 | $(LN) $< $@ | |
200 | ||
201 | .man.1.gz .man.1m.gz .man.5.gz .man.8.gz .man.gz: | |
e43e7922 | 202 | echo -n Compressing $<... |
f63a2256 | 203 | $(RM) $@ |
0efda061 | 204 | gzip -v9 <$< >$@ |
5b28477f | 205 | |
3a57cba8 | 206 | |
207 | # | |
c9d3f842 | 208 | # End of "$Id$" |
3a57cba8 | 209 | # |