]> git.ipfire.org Git - thirdparty/cups.git/blame - systemv/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / systemv / Makefile
CommitLineData
ef416fc2 1#
4744bd90 2# "$Id: Makefile 5222 2006-03-03 18:57:56Z 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
25include ../Makedefs
26
27TARGETS = accept cancel cupsaddsmb cupstestppd lp lpadmin lpinfo \
28 lpmove lpoptions lppasswd lpstat
29OBJS = 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
38all: $(TARGETS)
39
40
41#
42# Clean all object files...
43#
44
45clean:
4744bd90 46 $(RM) $(OBJS) $(TARGETS) cupsdisable cupsenable reject
ef416fc2 47
48
49#
50# Update dependencies (without system header dependencies...)
51#
52
53depend:
54 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
55
56
57#
58# Install all targets...
59#
60
61install: 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
83#
84# accept
85#
86
87accept: accept.o ../cups/$(LIBCUPS)
88 echo Linking $@...
89 $(CC) $(LDFLAGS) -o accept accept.o $(LIBS)
4744bd90 90 $(RM) reject cupsenable cupsdisable
ef416fc2 91 $(LN) accept reject
4744bd90 92 $(LN) accept cupsenable
93 $(LN) accept cupsdisable
ef416fc2 94
95
96#
97# cancel
98#
99
100cancel: cancel.o ../cups/$(LIBCUPS)
101 echo Linking $@...
102 $(CC) $(LDFLAGS) -o cancel cancel.o $(LIBS)
103
104
105#
106# cupsaddsmb
107#
108
109cupsaddsmb: cupsaddsmb.o ../cups/$(LIBCUPS)
110 echo Linking $@...
111 $(CC) $(LDFLAGS) -o cupsaddsmb cupsaddsmb.o $(LIBS)
112
113
114#
115# cupstestppd
116#
117
118cupstestppd: cupstestppd.o ../cups/$(LIBCUPS)
119 echo Linking $@...
120 $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LIBS)
121
122
123#
124# lp
125#
126
127lp: lp.o ../cups/$(LIBCUPS)
128 echo Linking $@...
129 $(CC) $(LDFLAGS) -o lp lp.o $(LIBS)
130
131
132#
133# lpadmin
134#
135
136lpadmin: lpadmin.o ../cups/$(LIBCUPS)
137 echo Linking $@...
138 $(CC) $(LDFLAGS) -o lpadmin lpadmin.o $(LIBZ) $(LIBS)
139
140
141#
142# lpinfo
143#
144
145lpinfo: lpinfo.o ../cups/$(LIBCUPS)
146 echo Linking $@...
147 $(CC) $(LDFLAGS) -o lpinfo lpinfo.o $(LIBS)
148
149
150#
151# lpmove
152#
153
154lpmove: lpmove.o ../cups/$(LIBCUPS)
155 echo Linking $@...
156 $(CC) $(LDFLAGS) -o lpmove lpmove.o $(LIBS)
157
158
159#
160# lpoptions
161#
162
163lpoptions: lpoptions.o ../cups/$(LIBCUPS)
164 echo Linking $@...
165 $(CC) $(LDFLAGS) -o lpoptions lpoptions.o $(LIBZ) $(LIBS)
166
167
168#
169# lppasswd
170#
171
172lppasswd: lppasswd.o ../cups/$(LIBCUPS)
173 echo Linking $@...
174 $(CC) $(LDFLAGS) -o lppasswd lppasswd.o $(LIBZ) $(LIBS)
175
176
177#
178# lpstat
179#
180
181lpstat: lpstat.o ../cups/$(LIBCUPS)
182 echo Linking $@...
183 $(CC) $(LDFLAGS) -o lpstat lpstat.o $(LIBS)
184
185
186#
187# Dependencies...
188#
189
190include Dependencies
191
192
193#
4744bd90 194# End of "$Id: Makefile 5222 2006-03-03 18:57:56Z mike $".
ef416fc2 195#