]>
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 | # | |
bc44d920 | 6 | # Copyright 2007 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 | ||
32 | # | |
33 | # Clean all object files... | |
34 | # | |
35 | ||
36 | clean: | |
4744bd90 | 37 | $(RM) $(OBJS) $(TARGETS) cupsdisable cupsenable reject |
ef416fc2 | 38 | |
39 | ||
40 | # | |
41 | # Update dependencies (without system header dependencies...) | |
42 | # | |
43 | ||
44 | depend: | |
45 | makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1 | |
46 | ||
47 | ||
48 | # | |
49 | # Install all targets... | |
50 | # | |
51 | ||
52 | install: all | |
bd7854cb | 53 | $(INSTALL_DIR) -m 755 $(SBINDIR) |
ef416fc2 | 54 | $(INSTALL_BIN) accept $(SBINDIR) |
55 | $(RM) $(SBINDIR)/reject | |
56 | $(LN) accept $(SBINDIR)/reject | |
57 | $(INSTALL_BIN) cupsaddsmb $(SBINDIR) | |
bc44d920 | 58 | $(INSTALL_BIN) cupsctl $(SBINDIR) |
ef416fc2 | 59 | $(INSTALL_BIN) lpadmin $(SBINDIR) |
60 | $(INSTALL_BIN) lpinfo $(SBINDIR) | |
61 | $(INSTALL_BIN) lpmove $(SBINDIR) | |
bd7854cb | 62 | $(INSTALL_DIR) -m 755 $(BINDIR) |
ef416fc2 | 63 | $(INSTALL_BIN) cancel $(BINDIR) |
80ca4592 | 64 | $(INSTALL_BIN) cupstestdsc $(BINDIR) |
ef416fc2 | 65 | $(INSTALL_BIN) cupstestppd $(BINDIR) |
923edb68 | 66 | $(RM) $(SBINDIR)/cupsdisable |
67 | $(LN) accept $(SBINDIR)/cupsdisable | |
68 | $(RM) $(SBINDIR)/cupsenable | |
69 | $(LN) accept $(SBINDIR)/cupsenable | |
ef416fc2 | 70 | $(INSTALL_BIN) lp $(BINDIR) |
71 | $(INSTALL_BIN) lpoptions $(BINDIR) | |
72 | $(INSTALL_BIN) lpstat $(BINDIR) | |
ed486911 | 73 | $(INSTALL_BIN) -m 4755 -o root lppasswd $(BINDIR) || $(INSTALL_BIN) lppasswd $(BINDIR) |
09a101d6 | 74 | if test "x$(SYMROOT)" != "x"; then \ |
75 | $(INSTALL_DIR) $(SYMROOT); \ | |
76 | for file in $(TARGETS); do \ | |
77 | cp $$file $(SYMROOT); \ | |
78 | done \ | |
79 | fi | |
ef416fc2 | 80 | |
81 | ||
757d2cad | 82 | # |
83 | # Uninstall all targets... | |
84 | # | |
85 | ||
86 | uninstall: | |
87 | $(RM) $(BINDIR)/cancel | |
80ca4592 | 88 | $(RM) $(BINDIR)/cupstestdsc |
757d2cad | 89 | $(RM) $(BINDIR)/cupstestppd |
90 | $(RM) $(BINDIR)/lp | |
91 | $(RM) $(BINDIR)/lpoptions | |
92 | $(RM) $(BINDIR)/lppasswd | |
93 | $(RM) $(BINDIR)/lpstat | |
94 | -$(RMDIR) $(BINDIR) | |
95 | $(RM) $(SBINDIR)/accept | |
96 | $(RM) $(SBINDIR)/cupsaddsmb | |
97 | $(RM) $(SBINDIR)/cupsdisable | |
98 | $(RM) $(SBINDIR)/cupsenable | |
99 | $(RM) $(SBINDIR)/lpadmin | |
100 | $(RM) $(SBINDIR)/lpinfo | |
101 | $(RM) $(SBINDIR)/lpmove | |
102 | $(RM) $(SBINDIR)/reject | |
103 | -$(RMDIR) $(SBINDIR) | |
104 | ||
105 | ||
ef416fc2 | 106 | # |
107 | # accept | |
108 | # | |
109 | ||
110 | accept: accept.o ../cups/$(LIBCUPS) | |
111 | echo Linking $@... | |
112 | $(CC) $(LDFLAGS) -o accept accept.o $(LIBS) | |
4744bd90 | 113 | $(RM) reject cupsenable cupsdisable |
ef416fc2 | 114 | $(LN) accept reject |
4744bd90 | 115 | $(LN) accept cupsenable |
116 | $(LN) accept cupsdisable | |
ef416fc2 | 117 | |
118 | ||
119 | # | |
120 | # cancel | |
121 | # | |
122 | ||
123 | cancel: cancel.o ../cups/$(LIBCUPS) | |
124 | echo Linking $@... | |
125 | $(CC) $(LDFLAGS) -o cancel cancel.o $(LIBS) | |
126 | ||
127 | ||
128 | # | |
129 | # cupsaddsmb | |
130 | # | |
131 | ||
132 | cupsaddsmb: cupsaddsmb.o ../cups/$(LIBCUPS) | |
133 | echo Linking $@... | |
134 | $(CC) $(LDFLAGS) -o cupsaddsmb cupsaddsmb.o $(LIBS) | |
135 | ||
136 | ||
bc44d920 | 137 | # |
138 | # cupsctl | |
139 | # | |
140 | ||
141 | cupsctl: cupsctl.o ../cups/$(LIBCUPS) | |
142 | echo Linking $@... | |
143 | $(CC) $(LDFLAGS) -o cupsctl cupsctl.o $(LIBS) | |
144 | ||
145 | ||
80ca4592 | 146 | # |
147 | # cupstestdsc | |
148 | # | |
149 | ||
150 | cupstestdsc: cupstestdsc.o ../cups/$(LIBCUPS) | |
151 | echo Linking $@... | |
152 | $(CC) $(LDFLAGS) -o $@ cupstestdsc.o $(LIBS) | |
153 | ||
154 | ||
ef416fc2 | 155 | # |
156 | # cupstestppd | |
157 | # | |
158 | ||
09a101d6 | 159 | cupstestppd: cupstestppd.o ../cups/$(LIBCUPS) ../filter/$(LIBCUPSIMAGE) |
ef416fc2 | 160 | echo Linking $@... |
09a101d6 | 161 | $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS) |
ef416fc2 | 162 | |
163 | ||
164 | # | |
165 | # lp | |
166 | # | |
167 | ||
168 | lp: lp.o ../cups/$(LIBCUPS) | |
169 | echo Linking $@... | |
170 | $(CC) $(LDFLAGS) -o lp lp.o $(LIBS) | |
171 | ||
172 | ||
173 | # | |
174 | # lpadmin | |
175 | # | |
176 | ||
177 | lpadmin: lpadmin.o ../cups/$(LIBCUPS) | |
178 | echo Linking $@... | |
179 | $(CC) $(LDFLAGS) -o lpadmin lpadmin.o $(LIBZ) $(LIBS) | |
180 | ||
181 | ||
182 | # | |
183 | # lpinfo | |
184 | # | |
185 | ||
186 | lpinfo: lpinfo.o ../cups/$(LIBCUPS) | |
187 | echo Linking $@... | |
188 | $(CC) $(LDFLAGS) -o lpinfo lpinfo.o $(LIBS) | |
189 | ||
190 | ||
191 | # | |
192 | # lpmove | |
193 | # | |
194 | ||
195 | lpmove: lpmove.o ../cups/$(LIBCUPS) | |
196 | echo Linking $@... | |
197 | $(CC) $(LDFLAGS) -o lpmove lpmove.o $(LIBS) | |
198 | ||
199 | ||
200 | # | |
201 | # lpoptions | |
202 | # | |
203 | ||
204 | lpoptions: lpoptions.o ../cups/$(LIBCUPS) | |
205 | echo Linking $@... | |
206 | $(CC) $(LDFLAGS) -o lpoptions lpoptions.o $(LIBZ) $(LIBS) | |
207 | ||
208 | ||
209 | # | |
210 | # lppasswd | |
211 | # | |
212 | ||
213 | lppasswd: lppasswd.o ../cups/$(LIBCUPS) | |
214 | echo Linking $@... | |
215 | $(CC) $(LDFLAGS) -o lppasswd lppasswd.o $(LIBZ) $(LIBS) | |
216 | ||
217 | ||
218 | # | |
219 | # lpstat | |
220 | # | |
221 | ||
222 | lpstat: lpstat.o ../cups/$(LIBCUPS) | |
223 | echo Linking $@... | |
224 | $(CC) $(LDFLAGS) -o lpstat lpstat.o $(LIBS) | |
225 | ||
226 | ||
227 | # | |
228 | # Dependencies... | |
229 | # | |
230 | ||
231 | include Dependencies | |
232 | ||
233 | ||
234 | # | |
bc44d920 | 235 | # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 236 | # |