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