]> git.ipfire.org Git - thirdparty/cups.git/blame - systemv/Makefile
Fixed typos
[thirdparty/cups.git] / systemv / Makefile
CommitLineData
ef416fc2 1#
e0660879 2# System V commands makefile for CUPS.
ef416fc2 3#
21609267 4# Copyright © 2007-2019 by Apple Inc.
187b9322 5# Copyright © 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 6#
187b9322
MS
7# Licensed under Apache License v2.0. See the file "LICENSE" for more
8# information.
ef416fc2 9#
10
11include ../Makedefs
12
f1def5b8 13TARGETS = cancel cupsaccept cupsctl cupstestppd \
e0660879 14 lp lpadmin lpinfo lpmove lpoptions lpstat
f1def5b8 15OBJS = cancel.o cupsaccept.o cupsctl.o \
bc44d920 16 cupstestppd.o lp.o lpadmin.o lpinfo.o lpmove.o lpoptions.o \
e0660879 17 lpstat.o
ef416fc2 18
19
20#
21# Make all targets...
22#
23
24all: $(TARGETS)
25
26
c9fc04c6
MS
27#
28# Make library targets...
29#
30
31libs:
32
33
5f64df29
MS
34#
35# Make unit tests...
36#
37
38unittests:
39
40
ef416fc2 41#
42# Clean all object files...
43#
44
45clean:
49d87452 46 $(RM) $(OBJS) $(TARGETS)
3e391a8e 47 $(RM) cupsdisable cupsenable cupsreject
ef416fc2 48
49
50#
51# Update dependencies (without system header dependencies...)
52#
53
54depend:
12f89d24 55 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
ef416fc2 56
57
58#
59# Install all targets...
60#
61
50fe7201
MS
62install: all install-data install-headers install-libs install-exec
63
64
65#
66# Install data files...
67#
68
69install-data:
70
71
72#
73# Install programs...
74#
75
76install-exec:
e07d4801 77 echo Installing System V admin printing commands in $(SBINDIR)
bd7854cb 78 $(INSTALL_DIR) -m 755 $(SBINDIR)
e07d4801 79 $(INSTALL_BIN) cupsaccept $(SBINDIR)
bc44d920 80 $(INSTALL_BIN) cupsctl $(SBINDIR)
ef416fc2 81 $(INSTALL_BIN) lpadmin $(SBINDIR)
82 $(INSTALL_BIN) lpinfo $(SBINDIR)
83 $(INSTALL_BIN) lpmove $(SBINDIR)
e07d4801
MS
84 $(RM) $(SBINDIR)/cupsdisable
85 $(LN) cupsaccept $(SBINDIR)/cupsdisable
86 $(RM) $(SBINDIR)/cupsenable
87 $(LN) cupsaccept $(SBINDIR)/cupsenable
88 $(RM) $(SBINDIR)/cupsreject
89 $(LN) cupsaccept $(SBINDIR)/cupsreject
e07d4801 90 echo Installing System V user printing commands in $(BINDIR)
bd7854cb 91 $(INSTALL_DIR) -m 755 $(BINDIR)
ef416fc2 92 $(INSTALL_BIN) cancel $(BINDIR)
93 $(INSTALL_BIN) cupstestppd $(BINDIR)
ef416fc2 94 $(INSTALL_BIN) lp $(BINDIR)
95 $(INSTALL_BIN) lpoptions $(BINDIR)
96 $(INSTALL_BIN) lpstat $(BINDIR)
09a101d6 97 if test "x$(SYMROOT)" != "x"; then \
98 $(INSTALL_DIR) $(SYMROOT); \
99 for file in $(TARGETS); do \
100 cp $$file $(SYMROOT); \
c1420c87 101 dsymutil $(SYMROOT)/$$file; \
09a101d6 102 done \
103 fi
ef416fc2 104
105
50fe7201
MS
106#
107# Install headers...
108#
109
110install-headers:
111
112
113#
114# Install libraries...
115#
116
117install-libs:
118
119
757d2cad 120#
121# Uninstall all targets...
122#
123
124uninstall:
125 $(RM) $(BINDIR)/cancel
126 $(RM) $(BINDIR)/cupstestppd
127 $(RM) $(BINDIR)/lp
128 $(RM) $(BINDIR)/lpoptions
757d2cad 129 $(RM) $(BINDIR)/lpstat
130 -$(RMDIR) $(BINDIR)
e07d4801 131 $(RM) $(SBINDIR)/cupsaccept
49d87452 132 $(RM) $(SBINDIR)/cupsaccept
757d2cad 133 $(RM) $(SBINDIR)/cupsdisable
134 $(RM) $(SBINDIR)/cupsenable
49d87452 135 $(RM) $(SBINDIR)/cupsreject
757d2cad 136 $(RM) $(SBINDIR)/lpadmin
137 $(RM) $(SBINDIR)/lpinfo
138 $(RM) $(SBINDIR)/lpmove
757d2cad 139 -$(RMDIR) $(SBINDIR)
140
141
ef416fc2 142#
1f6f3dbc 143# cancel
ef416fc2 144#
145
1f6f3dbc 146cancel: cancel.o ../cups/$(LIBCUPS)
ef416fc2 147 echo Linking $@...
3e391a8e 148 $(LD_CC) $(ALL_LDFLAGS) -o cancel cancel.o $(LINKCUPS)
00dbe99f 149 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 150
151
152#
1f6f3dbc 153# cupsaccept
ef416fc2 154#
155
1f6f3dbc 156cupsaccept: cupsaccept.o ../cups/$(LIBCUPS)
ef416fc2 157 echo Linking $@...
3e391a8e 158 $(LD_CC) $(ALL_LDFLAGS) -o cupsaccept cupsaccept.o $(LINKCUPS)
00dbe99f 159 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
3e391a8e 160 for file in cupsenable cupsdisable cupsreject; do \
1f6f3dbc
MS
161 $(RM) $$file; \
162 $(LN) cupsaccept $$file; \
163 done
ef416fc2 164
165
bc44d920 166#
167# cupsctl
168#
169
170cupsctl: cupsctl.o ../cups/$(LIBCUPS)
171 echo Linking $@...
3e391a8e 172 $(LD_CC) $(ALL_LDFLAGS) -o cupsctl cupsctl.o $(LINKCUPS)
00dbe99f 173 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
bc44d920 174
175
ef416fc2 176#
177# cupstestppd
178#
179
3e391a8e 180cupstestppd: cupstestppd.o ../cups/$(LIBCUPS)
ef416fc2 181 echo Linking $@...
7c11d5ae 182 $(LD_CC) $(ALL_LDFLAGS) -o $@ cupstestppd.o -lm $(LINKCUPS)
00dbe99f 183 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 184
3e391a8e 185cupstestppd-static: cupstestppd.o ../cups/$(LIBCUPSSTATIC)
66ab9486 186 echo Linking $@...
3e391a8e 187 $(LD_CC) $(ALL_LDFLAGS) -o $@ cupstestppd.o $(LINKCUPSSTATIC)
00dbe99f 188 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
66ab9486 189
ef416fc2 190
191#
192# lp
193#
194
195lp: lp.o ../cups/$(LIBCUPS)
196 echo Linking $@...
3e391a8e 197 $(LD_CC) $(ALL_LDFLAGS) -o lp lp.o $(LINKCUPS)
00dbe99f 198 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 199
200
201#
202# lpadmin
203#
204
205lpadmin: lpadmin.o ../cups/$(LIBCUPS)
206 echo Linking $@...
3e391a8e 207 $(LD_CC) $(ALL_LDFLAGS) -o lpadmin lpadmin.o $(LINKCUPS)
00dbe99f 208 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 209
210
211#
212# lpinfo
213#
214
215lpinfo: lpinfo.o ../cups/$(LIBCUPS)
216 echo Linking $@...
3e391a8e 217 $(LD_CC) $(ALL_LDFLAGS) -o lpinfo lpinfo.o $(LINKCUPS)
00dbe99f 218 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 219
220
221#
222# lpmove
223#
224
225lpmove: lpmove.o ../cups/$(LIBCUPS)
226 echo Linking $@...
3e391a8e 227 $(LD_CC) $(ALL_LDFLAGS) -o lpmove lpmove.o $(LINKCUPS)
00dbe99f 228 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 229
230
231#
232# lpoptions
233#
234
235lpoptions: lpoptions.o ../cups/$(LIBCUPS)
236 echo Linking $@...
3e391a8e 237 $(LD_CC) $(ALL_LDFLAGS) -o lpoptions lpoptions.o $(LINKCUPS)
00dbe99f 238 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 239
240
ef416fc2 241#
242# lpstat
243#
244
245lpstat: lpstat.o ../cups/$(LIBCUPS)
246 echo Linking $@...
3e391a8e 247 $(LD_CC) $(ALL_LDFLAGS) -o lpstat lpstat.o $(LINKCUPS)
00dbe99f 248 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 249
250
251#
252# Dependencies...
253#
254
255include Dependencies