]> git.ipfire.org Git - thirdparty/cups.git/blob - systemv/Makefile
Merge changes from 1.1.x into 1.2 devel.
[thirdparty/cups.git] / systemv / Makefile
1 #
2 # "$Id: Makefile,v 1.23.2.1 2001/12/26 16:52:56 mike Exp $"
3 #
4 # System V commands makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1997-2001 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-3111 USA
19 #
20 # Voice: (301) 373-9603
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
23 #
24
25 include ../Makedefs
26
27 TARGETS = accept cancel cupsaddsmb lp lpadmin lpinfo lpmove \
28 lpoptions lppasswd lpstat
29 OBJS = accept.o cancel.o cupsaddsmb.o lp.o lpadmin.o \
30 lpinfo.o lpmove.o lpoptions.o lppasswd.o lpstat.o
31
32
33 #
34 # Make all targets...
35 #
36
37 all: $(TARGETS)
38
39
40 #
41 # Clean all object files...
42 #
43
44 clean:
45 $(RM) $(OBJS) $(TARGETS)
46
47
48 #
49 # Install all targets...
50 #
51
52 install:
53 $(INSTALL_DIR) $(BINDIR)
54 $(INSTALL_BIN) accept $(SBINDIR)
55 $(RM) $(SBINDIR)/reject
56 $(LN) accept $(SBINDIR)/reject
57 $(INSTALL_BIN) cupsaddsmb $(SBINDIR)
58 $(INSTALL_BIN) lpadmin $(SBINDIR)
59 $(INSTALL_BIN) lpinfo $(SBINDIR)
60 $(INSTALL_BIN) lpmove $(SBINDIR)
61 $(INSTALL_BIN) cancel $(BINDIR)
62 $(RM) $(BINDIR)/disable
63 $(LN) ../sbin/accept $(BINDIR)/disable
64 $(RM) $(BINDIR)/enable
65 $(LN) ../sbin/accept $(BINDIR)/enable
66 $(INSTALL_BIN) lp $(BINDIR)
67 $(INSTALL_BIN) lpoptions $(BINDIR)
68 $(INSTALL_BIN) lpstat $(BINDIR)
69 $(INSTALL_BIN) -m 4755 -o $(CUPS_USER) -g $(CUPS_GROUP) lppasswd $(BINDIR)
70
71
72 #
73 # accept
74 #
75
76 accept: accept.o ../cups/$(LIBCUPS)
77 echo Linking $@...
78 $(CC) $(LDFLAGS) -o accept accept.o $(LIBS)
79 $(RM) reject enable disable
80 $(LN) accept reject
81 $(LN) accept enable
82 $(LN) accept disable
83
84 accept.o: ../cups/cups.h
85
86
87 #
88 # cancel
89 #
90
91 cancel: cancel.o ../cups/$(LIBCUPS)
92 echo Linking $@...
93 $(CC) $(LDFLAGS) -o cancel cancel.o $(LIBS)
94
95 cancel.o: ../cups/cups.h
96
97
98 #
99 # cupsaddsmb
100 #
101
102 cupsaddsmb: cupsaddsmb.o ../cups/$(LIBCUPS)
103 echo Linking $@...
104 $(CC) $(LDFLAGS) -o cupsaddsmb cupsaddsmb.o $(LIBS)
105
106 cupsaddsmb.o: ../cups/cups.h ../cups/string.h
107
108
109 #
110 # lp
111 #
112
113 lp: lp.o ../cups/$(LIBCUPS)
114 echo Linking $@...
115 $(CC) $(LDFLAGS) -o lp lp.o $(LIBS)
116
117 lp.o: ../cups/cups.h
118
119
120 #
121 # lpadmin
122 #
123
124 lpadmin: lpadmin.o ../cups/$(LIBCUPS)
125 echo Linking $@...
126 $(CC) $(LDFLAGS) -o lpadmin lpadmin.o $(LIBZ) $(LIBS)
127
128 lpadmin.o: ../cups/cups.h
129
130
131 #
132 # lpinfo
133 #
134
135 lpinfo: lpinfo.o ../cups/$(LIBCUPS)
136 echo Linking $@...
137 $(CC) $(LDFLAGS) -o lpinfo lpinfo.o $(LIBS)
138
139 lpinfo.o: ../cups/cups.h
140
141
142 #
143 # lpmove
144 #
145
146 lpmove: lpmove.o ../cups/$(LIBCUPS)
147 echo Linking $@...
148 $(CC) $(LDFLAGS) -o lpmove lpmove.o $(LIBS)
149
150 lpmove.o: ../cups/cups.h
151
152
153 #
154 # lpoptions
155 #
156
157 lpoptions: lpoptions.o ../cups/$(LIBCUPS)
158 echo Linking $@...
159 $(CC) $(LDFLAGS) -o lpoptions lpoptions.o $(LIBZ) $(LIBS)
160
161 lpoptions.o: ../cups/cups.h
162
163
164 #
165 # lppasswd
166 #
167
168 lppasswd: lppasswd.o ../cups/$(LIBCUPS)
169 echo Linking $@...
170 $(CC) $(LDFLAGS) -o lppasswd lppasswd.o $(LIBZ) $(LIBS)
171
172 lppasswd.o: ../cups/cups.h ../cups/md5.h ../cups/string.h ../config.h
173
174
175 #
176 # lpstat
177 #
178
179 lpstat: lpstat.o ../cups/$(LIBCUPS)
180 echo Linking $@...
181 $(CC) $(LDFLAGS) -o lpstat lpstat.o $(LIBS)
182
183 lpstat.o: ../cups/cups.h
184
185
186 $(OBJS): ../Makedefs
187
188 #
189 # End of "$Id: Makefile,v 1.23.2.1 2001/12/26 16:52:56 mike Exp $".
190 #