]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
bc44d920 | 2 | # "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | # |
4 | # System V commands makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
568fa3fa | 6 | # Copyright 2007-2008 by Apple Inc. |
bd7854cb | 7 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 8 | # |
9 | # These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | # property of Apple Inc. and are protected by Federal copyright |
11 | # law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | # which should have been included with this file. If this file is | |
13 | # file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 14 | # |
15 | ||
16 | include ../Makedefs | |
17 | ||
bc44d920 | 18 | TARGETS = accept cancel cupsaddsmb cupsctl cupstestdsc cupstestppd \ |
80ca4592 | 19 | lp lpadmin lpinfo lpmove lpoptions lppasswd lpstat |
bc44d920 | 20 | OBJS = accept.o cancel.o cupsaddsmb.o cupsctl.o cupstestdsc.o \ |
21 | cupstestppd.o lp.o lpadmin.o lpinfo.o lpmove.o lpoptions.o \ | |
22 | lppasswd.o lpstat.o | |
ef416fc2 | 23 | |
24 | ||
25 | # | |
26 | # Make all targets... | |
27 | # | |
28 | ||
29 | all: $(TARGETS) | |
30 | ||
31 | ||
c9fc04c6 MS |
32 | # |
33 | # Make library targets... | |
34 | # | |
35 | ||
36 | libs: | |
37 | ||
38 | ||
ef416fc2 | 39 | # |
40 | # Clean all object files... | |
41 | # | |
42 | ||
43 | clean: | |
4744bd90 | 44 | $(RM) $(OBJS) $(TARGETS) cupsdisable cupsenable reject |
ef416fc2 | 45 | |
46 | ||
47 | # | |
48 | # Update dependencies (without system header dependencies...) | |
49 | # | |
50 | ||
51 | depend: | |
52 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
53 | ||
54 | ||
55 | # | |
56 | # Install all targets... | |
57 | # | |
58 | ||
50fe7201 MS |
59 | install: all install-data install-headers install-libs install-exec |
60 | ||
61 | ||
62 | # | |
63 | # Install data files... | |
64 | # | |
65 | ||
66 | install-data: | |
67 | ||
68 | ||
69 | # | |
70 | # Install programs... | |
71 | # | |
72 | ||
73 | install-exec: | |
bd7854cb | 74 | $(INSTALL_DIR) -m 755 $(SBINDIR) |
ef416fc2 | 75 | $(INSTALL_BIN) accept $(SBINDIR) |
76 | $(RM) $(SBINDIR)/reject | |
77 | $(LN) accept $(SBINDIR)/reject | |
78 | $(INSTALL_BIN) cupsaddsmb $(SBINDIR) | |
bc44d920 | 79 | $(INSTALL_BIN) cupsctl $(SBINDIR) |
ef416fc2 | 80 | $(INSTALL_BIN) lpadmin $(SBINDIR) |
81 | $(INSTALL_BIN) lpinfo $(SBINDIR) | |
82 | $(INSTALL_BIN) lpmove $(SBINDIR) | |
bd7854cb | 83 | $(INSTALL_DIR) -m 755 $(BINDIR) |
ef416fc2 | 84 | $(INSTALL_BIN) cancel $(BINDIR) |
80ca4592 | 85 | $(INSTALL_BIN) cupstestdsc $(BINDIR) |
ef416fc2 | 86 | $(INSTALL_BIN) cupstestppd $(BINDIR) |
923edb68 | 87 | $(RM) $(SBINDIR)/cupsdisable |
88 | $(LN) accept $(SBINDIR)/cupsdisable | |
89 | $(RM) $(SBINDIR)/cupsenable | |
90 | $(LN) accept $(SBINDIR)/cupsenable | |
ef416fc2 | 91 | $(INSTALL_BIN) lp $(BINDIR) |
92 | $(INSTALL_BIN) lpoptions $(BINDIR) | |
93 | $(INSTALL_BIN) lpstat $(BINDIR) | |
568fa3fa | 94 | $(INSTALL_BIN) lppasswd $(BINDIR) |
09a101d6 | 95 | if test "x$(SYMROOT)" != "x"; then \ |
96 | $(INSTALL_DIR) $(SYMROOT); \ | |
97 | for file in $(TARGETS); do \ | |
98 | cp $$file $(SYMROOT); \ | |
99 | done \ | |
100 | fi | |
ef416fc2 | 101 | |
102 | ||
50fe7201 MS |
103 | # |
104 | # Install headers... | |
105 | # | |
106 | ||
107 | install-headers: | |
108 | ||
109 | ||
110 | # | |
111 | # Install libraries... | |
112 | # | |
113 | ||
114 | install-libs: | |
115 | ||
116 | ||
757d2cad | 117 | # |
118 | # Uninstall all targets... | |
119 | # | |
120 | ||
121 | uninstall: | |
122 | $(RM) $(BINDIR)/cancel | |
80ca4592 | 123 | $(RM) $(BINDIR)/cupstestdsc |
757d2cad | 124 | $(RM) $(BINDIR)/cupstestppd |
125 | $(RM) $(BINDIR)/lp | |
126 | $(RM) $(BINDIR)/lpoptions | |
127 | $(RM) $(BINDIR)/lppasswd | |
128 | $(RM) $(BINDIR)/lpstat | |
129 | -$(RMDIR) $(BINDIR) | |
130 | $(RM) $(SBINDIR)/accept | |
131 | $(RM) $(SBINDIR)/cupsaddsmb | |
132 | $(RM) $(SBINDIR)/cupsdisable | |
133 | $(RM) $(SBINDIR)/cupsenable | |
134 | $(RM) $(SBINDIR)/lpadmin | |
135 | $(RM) $(SBINDIR)/lpinfo | |
136 | $(RM) $(SBINDIR)/lpmove | |
137 | $(RM) $(SBINDIR)/reject | |
138 | -$(RMDIR) $(SBINDIR) | |
139 | ||
140 | ||
ef416fc2 | 141 | # |
142 | # accept | |
143 | # | |
144 | ||
145 | accept: accept.o ../cups/$(LIBCUPS) | |
146 | echo Linking $@... | |
147 | $(CC) $(LDFLAGS) -o accept accept.o $(LIBS) | |
4744bd90 | 148 | $(RM) reject cupsenable cupsdisable |
ef416fc2 | 149 | $(LN) accept reject |
4744bd90 | 150 | $(LN) accept cupsenable |
151 | $(LN) accept cupsdisable | |
ef416fc2 | 152 | |
153 | ||
154 | # | |
155 | # cancel | |
156 | # | |
157 | ||
158 | cancel: cancel.o ../cups/$(LIBCUPS) | |
159 | echo Linking $@... | |
160 | $(CC) $(LDFLAGS) -o cancel cancel.o $(LIBS) | |
161 | ||
162 | ||
163 | # | |
164 | # cupsaddsmb | |
165 | # | |
166 | ||
167 | cupsaddsmb: cupsaddsmb.o ../cups/$(LIBCUPS) | |
168 | echo Linking $@... | |
169 | $(CC) $(LDFLAGS) -o cupsaddsmb cupsaddsmb.o $(LIBS) | |
170 | ||
171 | ||
bc44d920 | 172 | # |
173 | # cupsctl | |
174 | # | |
175 | ||
176 | cupsctl: cupsctl.o ../cups/$(LIBCUPS) | |
177 | echo Linking $@... | |
178 | $(CC) $(LDFLAGS) -o cupsctl cupsctl.o $(LIBS) | |
179 | ||
180 | ||
80ca4592 | 181 | # |
182 | # cupstestdsc | |
183 | # | |
184 | ||
185 | cupstestdsc: cupstestdsc.o ../cups/$(LIBCUPS) | |
186 | echo Linking $@... | |
187 | $(CC) $(LDFLAGS) -o $@ cupstestdsc.o $(LIBS) | |
188 | ||
189 | ||
ef416fc2 | 190 | # |
191 | # cupstestppd | |
192 | # | |
193 | ||
09a101d6 | 194 | cupstestppd: cupstestppd.o ../cups/$(LIBCUPS) ../filter/$(LIBCUPSIMAGE) |
ef416fc2 | 195 | echo Linking $@... |
09a101d6 | 196 | $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS) |
ef416fc2 | 197 | |
198 | ||
199 | # | |
200 | # lp | |
201 | # | |
202 | ||
203 | lp: lp.o ../cups/$(LIBCUPS) | |
204 | echo Linking $@... | |
205 | $(CC) $(LDFLAGS) -o lp lp.o $(LIBS) | |
206 | ||
207 | ||
208 | # | |
209 | # lpadmin | |
210 | # | |
211 | ||
212 | lpadmin: lpadmin.o ../cups/$(LIBCUPS) | |
213 | echo Linking $@... | |
214 | $(CC) $(LDFLAGS) -o lpadmin lpadmin.o $(LIBZ) $(LIBS) | |
215 | ||
216 | ||
217 | # | |
218 | # lpinfo | |
219 | # | |
220 | ||
221 | lpinfo: lpinfo.o ../cups/$(LIBCUPS) | |
222 | echo Linking $@... | |
223 | $(CC) $(LDFLAGS) -o lpinfo lpinfo.o $(LIBS) | |
224 | ||
225 | ||
226 | # | |
227 | # lpmove | |
228 | # | |
229 | ||
230 | lpmove: lpmove.o ../cups/$(LIBCUPS) | |
231 | echo Linking $@... | |
232 | $(CC) $(LDFLAGS) -o lpmove lpmove.o $(LIBS) | |
233 | ||
234 | ||
235 | # | |
236 | # lpoptions | |
237 | # | |
238 | ||
239 | lpoptions: lpoptions.o ../cups/$(LIBCUPS) | |
240 | echo Linking $@... | |
241 | $(CC) $(LDFLAGS) -o lpoptions lpoptions.o $(LIBZ) $(LIBS) | |
242 | ||
243 | ||
244 | # | |
245 | # lppasswd | |
246 | # | |
247 | ||
248 | lppasswd: lppasswd.o ../cups/$(LIBCUPS) | |
249 | echo Linking $@... | |
250 | $(CC) $(LDFLAGS) -o lppasswd lppasswd.o $(LIBZ) $(LIBS) | |
251 | ||
252 | ||
253 | # | |
254 | # lpstat | |
255 | # | |
256 | ||
257 | lpstat: lpstat.o ../cups/$(LIBCUPS) | |
258 | echo Linking $@... | |
259 | $(CC) $(LDFLAGS) -o lpstat lpstat.o $(LIBS) | |
260 | ||
261 | ||
262 | # | |
263 | # Dependencies... | |
264 | # | |
265 | ||
266 | include Dependencies | |
267 | ||
268 | ||
269 | # | |
bc44d920 | 270 | # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 271 | # |