]>
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 |
50 | INSTALL_DATA = $(INSTALL) -m 644 | |
51 | INSTALL_DIR = $(INSTALL) -d | |
52 | INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755 | |
53 | INSTALL_MAN = $(INSTALL) -m 644 | |
54 | INSTALL_SCRIPT = $(INSTALL) -m 755 | |
55 | ||
56 | # | |
57 | # Default user and group for the scheduler... | |
58 | # | |
59 | ||
60 | CUPS_USER = @CUPS_USER@ | |
61 | CUPS_GROUP = @CUPS_GROUP@ | |
a3e17a89 | 62 | |
7e8966ca | 63 | # |
64 | # Libraries... | |
65 | # | |
66 | ||
b4f2ed46 | 67 | LIBCUPS = @LIBCUPS@ |
68 | LIBCUPSIMAGE = @LIBCUPSIMAGE@ | |
69 | LIBJPEG = @LIBJPEG@ | |
70 | LIBMALLOC = @LIBMALLOC@ | |
71 | LIBPAPER = @LIBPAPER@ | |
72 | LIBPNG = @LIBPNG@ | |
73 | LIBSLP = @LIBSLP@ | |
74 | LIBTIFF = @LIBTIFF@ | |
75 | LIBZ = @LIBZ@ | |
7e8966ca | 76 | |
a810d5d8 | 77 | # |
78 | # Program options... | |
79 | # | |
80 | # OPTIM defines the common compiler optimization/debugging options. | |
81 | # OPTIONS defines other compile-time options (currently only -dDEBUG for | |
82 | # extra debug info) | |
83 | # | |
84 | ||
b4f2ed46 | 85 | ARFLAGS = @ARFLAGS@ |
86 | BACKLIBS = @BACKLIBS@ | |
1479646d | 87 | CFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CFLAGS@ \ |
88 | @LARGEFILE@ $(OPTIONS) | |
6c240d71 | 89 | COMMONLIBS = @LIBS@ |
1479646d | 90 | CXXFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CXXFLAGS@ \ |
91 | @LARGEFILE@ $(OPTIONS) | |
b4f2ed46 | 92 | CXXLIBS = @CXXLIBS@ |
33c76e27 | 93 | DSOFLAGS = @DSOFLAGS@ |
b4f2ed46 | 94 | DSOLIBS = @DSOLIBS@ $(COMMONLIBS) |
95 | IMGLIBS = @IMGLIBS@ -lm | |
96 | LDFLAGS = -L../cups -L../filter $(RC_CFLAGS) @LDFLAGS@ $(OPTIM) | |
1a59b1c1 | 97 | LINKCUPS = @LINKCUPS@ $(SSLLIBS) |
b4f2ed46 | 98 | LINKCUPSIMAGE = @LINKCUPSIMAGE@ |
6c240d71 | 99 | LIBS = $(LINKCUPS) $(COMMONLIBS) |
b4f2ed46 | 100 | OPTIM = @OPTIM@ |
101 | OPTIONS = | |
102 | PAMLIBS = @PAMLIBS@ | |
a603272c | 103 | SSLFLAGS = @SSLFLAGS@ |
b4f2ed46 | 104 | SSLLIBS = @SSLLIBS@ |
a810d5d8 | 105 | |
106 | # | |
107 | # Directories... | |
108 | # | |
109 | # The first section uses the GNU names (which are *extremely* | |
110 | # difficult to find in a makefile because they are lowercase...) | |
111 | # We have to define these first because autoconf uses ${prefix} | |
112 | # and ${exec_prefix} for most of the other directories... | |
113 | # | |
114 | # This is immediately followed by definition in ALL CAPS for the | |
115 | # needed directories... | |
116 | # | |
117 | ||
118 | bindir = @bindir@ | |
119 | datadir = @datadir@ | |
120 | exec_prefix = @exec_prefix@ | |
121 | includedir = @includedir@ | |
122 | infodir = @infodir@ | |
123 | libdir = @libdir@ | |
124 | libexecdir = @libexecdir@ | |
125 | localstatedir = @localstatedir@ | |
126 | mandir = @mandir@ | |
127 | oldincludedir = @oldincludedir@ | |
128 | prefix = @prefix@ | |
129 | sbindir = @sbindir@ | |
130 | sharedstatedir = @sharedstatedir@ | |
131 | srcdir = @srcdir@ | |
132 | sysconfdir = @sysconfdir@ | |
133 | top_srcdir = @top_srcdir@ | |
134 | ||
f915b00f | 135 | BUILDROOT = $(DSTROOT) |
136 | ||
753453e4 | 137 | AMANDIR = $(BUILDROOT)@AMANDIR@ |
138 | BINDIR = $(BUILDROOT)@bindir@ | |
f2bc527f | 139 | CACHEDIR = $(BUILDROOT)@CUPS_CACHEDIR@ |
753453e4 | 140 | DATADIR = $(BUILDROOT)@CUPS_DATADIR@ |
141 | DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@ | |
142 | INCLUDEDIR = $(BUILDROOT)$(includedir) | |
7f30fc5e | 143 | INITDIR = @INITDIR@ |
144 | INITDDIR = @INITDDIR@ | |
753453e4 | 145 | LIBDIR = $(BUILDROOT)$(libdir) |
146 | LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@ | |
147 | LOGDIR = $(BUILDROOT)@CUPS_LOGDIR@ | |
148 | MANDIR = $(BUILDROOT)@mandir@ | |
753453e4 | 149 | PMANDIR = $(BUILDROOT)@PMANDIR@ |
150 | REQUESTS = $(BUILDROOT)@CUPS_REQUESTS@ | |
151 | SBINDIR = $(BUILDROOT)@sbindir@ | |
152 | SERVERBIN = $(BUILDROOT)@CUPS_SERVERBIN@ | |
153 | SERVERROOT = $(BUILDROOT)@CUPS_SERVERROOT@ | |
62485fd0 | 154 | STATEDIR = $(BUILDROOT)@CUPS_STATEDIR@ |
a810d5d8 | 155 | |
0efda061 | 156 | MAN1EXT = @MAN1EXT@ |
157 | MAN5EXT = @MAN5EXT@ | |
ae40876c | 158 | MAN8EXT = @MAN8EXT@ |
753453e4 | 159 | MAN8DIR = @MAN8DIR@ |
e64cfc6d | 160 | |
5aad2002 | 161 | PAMDIR = $(BUILDROOT)@PAMDIR@ |
162 | PAMFILE = @PAMFILE@ | |
163 | ||
164 | ||
a810d5d8 | 165 | # |
166 | # Rules... | |
167 | # | |
168 | ||
7e8966ca | 169 | .SILENT: |
0efda061 | 170 | .SUFFIXES: .1 .1.gz .1m .1m.gz .5 .5.gz .8 .8.gz .a .c .cxx .h .man .o .gz |
171 | ||
3a57cba8 | 172 | .c.o: |
8391453b | 173 | echo Compiling $<... |
f6fb02d3 | 174 | $(CC) $(OPTIM) $(CFLAGS) -c $< |
0efda061 | 175 | |
0e60aede | 176 | .cxx.o: |
177 | echo Compiling $<... | |
f6fb02d3 | 178 | $(CXX) $(OPTIM) $(CXXFLAGS) -c $< |
0efda061 | 179 | |
180 | .man.1 .man.1m .man.5 .man.8: | |
181 | echo Linking $<... | |
182 | $(RM) $@ | |
183 | $(LN) $< $@ | |
184 | ||
185 | .man.1.gz .man.1m.gz .man.5.gz .man.8.gz .man.gz: | |
e43e7922 | 186 | echo -n Compressing $<... |
f63a2256 | 187 | $(RM) $@ |
0efda061 | 188 | gzip -v9 <$< >$@ |
5b28477f | 189 | |
3a57cba8 | 190 | |
191 | # | |
c9d3f842 | 192 | # End of "$Id$" |
3a57cba8 | 193 | # |