]> git.ipfire.org Git - thirdparty/cups.git/blob - systemv/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / systemv / Makefile
1 #
2 # "$Id: Makefile 5628 2006-06-05 15:25:23Z mike $"
3 #
4 # System V commands makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
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 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 \
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:
46 $(RM) $(OBJS) $(TARGETS) cupsdisable cupsenable reject
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
62 $(INSTALL_DIR) -m 755 $(SBINDIR)
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)
70 $(INSTALL_DIR) -m 755 $(BINDIR)
71 $(INSTALL_BIN) cancel $(BINDIR)
72 $(INSTALL_BIN) cupstestdsc $(BINDIR)
73 $(INSTALL_BIN) cupstestppd $(BINDIR)
74 $(RM) $(SBINDIR)/cupsdisable
75 $(LN) accept $(SBINDIR)/cupsdisable
76 $(RM) $(SBINDIR)/cupsenable
77 $(LN) accept $(SBINDIR)/cupsenable
78 $(INSTALL_BIN) lp $(BINDIR)
79 $(INSTALL_BIN) lpoptions $(BINDIR)
80 $(INSTALL_BIN) lpstat $(BINDIR)
81 $(INSTALL_BIN) -m 4755 -o root lppasswd $(BINDIR) || $(INSTALL_BIN) lppasswd $(BINDIR)
82
83
84 #
85 # Uninstall all targets...
86 #
87
88 uninstall:
89 $(RM) $(BINDIR)/cancel
90 $(RM) $(BINDIR)/cupstestdsc
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
108 #
109 # accept
110 #
111
112 accept: accept.o ../cups/$(LIBCUPS)
113 echo Linking $@...
114 $(CC) $(LDFLAGS) -o accept accept.o $(LIBS)
115 $(RM) reject cupsenable cupsdisable
116 $(LN) accept reject
117 $(LN) accept cupsenable
118 $(LN) accept cupsdisable
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
139 #
140 # cupstestdsc
141 #
142
143 cupstestdsc: cupstestdsc.o ../cups/$(LIBCUPS)
144 echo Linking $@...
145 $(CC) $(LDFLAGS) -o $@ cupstestdsc.o $(LIBS)
146
147
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 #
228 # End of "$Id: Makefile 5628 2006-06-05 15:25:23Z mike $".
229 #