]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
757d2cad | 2 | # "$Id: Makefile 5229 2006-03-05 16:48:12Z 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 | ||
27 | TARGETS = accept cancel cupsaddsmb cupstestppd lp lpadmin lpinfo \ | |
28 | lpmove lpoptions lppasswd lpstat | |
29 | OBJS = accept.o cancel.o cupsaddsmb.o cupstestppd.o lp.o \ | |
30 | lpadmin.o lpinfo.o lpmove.o lpoptions.o lppasswd.o \ | |
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) |
72 | $(INSTALL_BIN) cupstestppd $(BINDIR) | |
923edb68 | 73 | $(RM) $(SBINDIR)/cupsdisable |
74 | $(LN) accept $(SBINDIR)/cupsdisable | |
75 | $(RM) $(SBINDIR)/cupsenable | |
76 | $(LN) accept $(SBINDIR)/cupsenable | |
ef416fc2 | 77 | $(INSTALL_BIN) lp $(BINDIR) |
78 | $(INSTALL_BIN) lpoptions $(BINDIR) | |
79 | $(INSTALL_BIN) lpstat $(BINDIR) | |
80 | $(INSTALL_BIN) -m 4755 -o $(CUPS_USER) -g $(CUPS_GROUP) lppasswd $(BINDIR) || $(INSTALL_BIN) lppasswd $(BINDIR) | |
81 | ||
82 | ||
757d2cad | 83 | # |
84 | # Uninstall all targets... | |
85 | # | |
86 | ||
87 | uninstall: | |
88 | $(RM) $(BINDIR)/cancel | |
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 | ||
137 | # | |
138 | # cupstestppd | |
139 | # | |
140 | ||
141 | cupstestppd: cupstestppd.o ../cups/$(LIBCUPS) | |
142 | echo Linking $@... | |
143 | $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LIBS) | |
144 | ||
145 | ||
146 | # | |
147 | # lp | |
148 | # | |
149 | ||
150 | lp: lp.o ../cups/$(LIBCUPS) | |
151 | echo Linking $@... | |
152 | $(CC) $(LDFLAGS) -o lp lp.o $(LIBS) | |
153 | ||
154 | ||
155 | # | |
156 | # lpadmin | |
157 | # | |
158 | ||
159 | lpadmin: lpadmin.o ../cups/$(LIBCUPS) | |
160 | echo Linking $@... | |
161 | $(CC) $(LDFLAGS) -o lpadmin lpadmin.o $(LIBZ) $(LIBS) | |
162 | ||
163 | ||
164 | # | |
165 | # lpinfo | |
166 | # | |
167 | ||
168 | lpinfo: lpinfo.o ../cups/$(LIBCUPS) | |
169 | echo Linking $@... | |
170 | $(CC) $(LDFLAGS) -o lpinfo lpinfo.o $(LIBS) | |
171 | ||
172 | ||
173 | # | |
174 | # lpmove | |
175 | # | |
176 | ||
177 | lpmove: lpmove.o ../cups/$(LIBCUPS) | |
178 | echo Linking $@... | |
179 | $(CC) $(LDFLAGS) -o lpmove lpmove.o $(LIBS) | |
180 | ||
181 | ||
182 | # | |
183 | # lpoptions | |
184 | # | |
185 | ||
186 | lpoptions: lpoptions.o ../cups/$(LIBCUPS) | |
187 | echo Linking $@... | |
188 | $(CC) $(LDFLAGS) -o lpoptions lpoptions.o $(LIBZ) $(LIBS) | |
189 | ||
190 | ||
191 | # | |
192 | # lppasswd | |
193 | # | |
194 | ||
195 | lppasswd: lppasswd.o ../cups/$(LIBCUPS) | |
196 | echo Linking $@... | |
197 | $(CC) $(LDFLAGS) -o lppasswd lppasswd.o $(LIBZ) $(LIBS) | |
198 | ||
199 | ||
200 | # | |
201 | # lpstat | |
202 | # | |
203 | ||
204 | lpstat: lpstat.o ../cups/$(LIBCUPS) | |
205 | echo Linking $@... | |
206 | $(CC) $(LDFLAGS) -o lpstat lpstat.o $(LIBS) | |
207 | ||
208 | ||
209 | # | |
210 | # Dependencies... | |
211 | # | |
212 | ||
213 | include Dependencies | |
214 | ||
215 | ||
216 | # | |
757d2cad | 217 | # End of "$Id: Makefile 5229 2006-03-05 16:48:12Z mike $". |
ef416fc2 | 218 | # |