]> git.ipfire.org Git - thirdparty/cups.git/blob - systemv/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / systemv / Makefile
1 #
2 # "$Id: Makefile 5222 2006-03-03 18:57:56Z 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 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:
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) cupstestppd $(BINDIR)
73 $(RM) $(SBINDIR)/cupsdisable
74 $(LN) accept $(SBINDIR)/cupsdisable
75 $(RM) $(SBINDIR)/cupsenable
76 $(LN) accept $(SBINDIR)/cupsenable
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
83 #
84 # accept
85 #
86
87 accept: accept.o ../cups/$(LIBCUPS)
88 echo Linking $@...
89 $(CC) $(LDFLAGS) -o accept accept.o $(LIBS)
90 $(RM) reject cupsenable cupsdisable
91 $(LN) accept reject
92 $(LN) accept cupsenable
93 $(LN) accept cupsdisable
94
95
96 #
97 # cancel
98 #
99
100 cancel: cancel.o ../cups/$(LIBCUPS)
101 echo Linking $@...
102 $(CC) $(LDFLAGS) -o cancel cancel.o $(LIBS)
103
104
105 #
106 # cupsaddsmb
107 #
108
109 cupsaddsmb: cupsaddsmb.o ../cups/$(LIBCUPS)
110 echo Linking $@...
111 $(CC) $(LDFLAGS) -o cupsaddsmb cupsaddsmb.o $(LIBS)
112
113
114 #
115 # cupstestppd
116 #
117
118 cupstestppd: cupstestppd.o ../cups/$(LIBCUPS)
119 echo Linking $@...
120 $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LIBS)
121
122
123 #
124 # lp
125 #
126
127 lp: lp.o ../cups/$(LIBCUPS)
128 echo Linking $@...
129 $(CC) $(LDFLAGS) -o lp lp.o $(LIBS)
130
131
132 #
133 # lpadmin
134 #
135
136 lpadmin: lpadmin.o ../cups/$(LIBCUPS)
137 echo Linking $@...
138 $(CC) $(LDFLAGS) -o lpadmin lpadmin.o $(LIBZ) $(LIBS)
139
140
141 #
142 # lpinfo
143 #
144
145 lpinfo: lpinfo.o ../cups/$(LIBCUPS)
146 echo Linking $@...
147 $(CC) $(LDFLAGS) -o lpinfo lpinfo.o $(LIBS)
148
149
150 #
151 # lpmove
152 #
153
154 lpmove: lpmove.o ../cups/$(LIBCUPS)
155 echo Linking $@...
156 $(CC) $(LDFLAGS) -o lpmove lpmove.o $(LIBS)
157
158
159 #
160 # lpoptions
161 #
162
163 lpoptions: lpoptions.o ../cups/$(LIBCUPS)
164 echo Linking $@...
165 $(CC) $(LDFLAGS) -o lpoptions lpoptions.o $(LIBZ) $(LIBS)
166
167
168 #
169 # lppasswd
170 #
171
172 lppasswd: lppasswd.o ../cups/$(LIBCUPS)
173 echo Linking $@...
174 $(CC) $(LDFLAGS) -o lppasswd lppasswd.o $(LIBZ) $(LIBS)
175
176
177 #
178 # lpstat
179 #
180
181 lpstat: lpstat.o ../cups/$(LIBCUPS)
182 echo Linking $@...
183 $(CC) $(LDFLAGS) -o lpstat lpstat.o $(LIBS)
184
185
186 #
187 # Dependencies...
188 #
189
190 include Dependencies
191
192
193 #
194 # End of "$Id: Makefile 5222 2006-03-03 18:57:56Z mike $".
195 #