2 # "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $"
4 # System V commands makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 2007-2008 by Apple Inc.
7 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
9 # These coded instructions, statements, and computer programs are the
10 # property of Apple Inc. and are protected by Federal copyright
11 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 # which should have been included with this file. If this file is
13 # file is missing or damaged, see the license at "http://www.cups.org/".
18 TARGETS
= accept cancel cupsaddsmb cupsctl cupstestdsc cupstestppd \
19 lp lpadmin lpinfo lpmove lpoptions lppasswd lpstat
20 OBJS
= accept.o cancel.o cupsaddsmb.o cupsctl.o cupstestdsc.o \
21 cupstestppd.o lp.o lpadmin.o lpinfo.o lpmove.o lpoptions.o \
33 # Make library targets...
47 # Clean all object files...
51 $(RM
) $(OBJS
) $(TARGETS
) cupsdisable cupsenable reject
55 # Update dependencies (without system header dependencies...)
59 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
63 # Install all targets...
66 install: all install-data install-headers install-libs install-exec
70 # Install data files...
81 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
82 $(INSTALL_BIN
) accept
$(SBINDIR
)
83 $(RM
) $(SBINDIR
)/reject
84 $(LN
) accept
$(SBINDIR
)/reject
85 $(INSTALL_BIN
) cupsaddsmb
$(SBINDIR
)
86 $(INSTALL_BIN
) cupsctl
$(SBINDIR
)
87 $(INSTALL_BIN
) lpadmin
$(SBINDIR
)
88 $(INSTALL_BIN
) lpinfo
$(SBINDIR
)
89 $(INSTALL_BIN
) lpmove
$(SBINDIR
)
90 $(INSTALL_DIR
) -m
755 $(BINDIR
)
91 $(INSTALL_BIN
) cancel
$(BINDIR
)
92 $(INSTALL_BIN
) cupstestdsc
$(BINDIR
)
93 $(INSTALL_BIN
) cupstestppd
$(BINDIR
)
94 $(RM
) $(SBINDIR
)/cupsdisable
95 $(LN
) accept
$(SBINDIR
)/cupsdisable
96 $(RM
) $(SBINDIR
)/cupsenable
97 $(LN
) accept
$(SBINDIR
)/cupsenable
98 $(INSTALL_BIN
) lp
$(BINDIR
)
99 $(INSTALL_BIN
) lpoptions
$(BINDIR
)
100 $(INSTALL_BIN
) lpstat
$(BINDIR
)
101 $(INSTALL_BIN
) lppasswd
$(BINDIR
)
102 if
test "x$(SYMROOT)" != "x"; then \
103 $(INSTALL_DIR
) $(SYMROOT
); \
104 for file in
$(TARGETS
); do \
105 cp
$$file $(SYMROOT
); \
118 # Install libraries...
125 # Uninstall all targets...
129 $(RM
) $(BINDIR
)/cancel
130 $(RM
) $(BINDIR
)/cupstestdsc
131 $(RM
) $(BINDIR
)/cupstestppd
133 $(RM
) $(BINDIR
)/lpoptions
134 $(RM
) $(BINDIR
)/lppasswd
135 $(RM
) $(BINDIR
)/lpstat
137 $(RM
) $(SBINDIR
)/accept
138 $(RM
) $(SBINDIR
)/cupsaddsmb
139 $(RM
) $(SBINDIR
)/cupsdisable
140 $(RM
) $(SBINDIR
)/cupsenable
141 $(RM
) $(SBINDIR
)/lpadmin
142 $(RM
) $(SBINDIR
)/lpinfo
143 $(RM
) $(SBINDIR
)/lpmove
144 $(RM
) $(SBINDIR
)/reject
152 accept
: accept.o ..
/cups
/$(LIBCUPS
)
154 $(CC
) $(LDFLAGS
) -o accept accept.o
$(LIBS
)
155 $(RM
) reject cupsenable cupsdisable
157 $(LN
) accept cupsenable
158 $(LN
) accept cupsdisable
165 cancel
: cancel.o ..
/cups
/$(LIBCUPS
)
167 $(CC
) $(LDFLAGS
) -o cancel cancel.o
$(LIBS
)
174 cupsaddsmb
: cupsaddsmb.o ..
/cups
/$(LIBCUPS
)
176 $(CC
) $(LDFLAGS
) -o cupsaddsmb cupsaddsmb.o
$(LIBS
)
183 cupsctl
: cupsctl.o ..
/cups
/$(LIBCUPS
)
185 $(CC
) $(LDFLAGS
) -o cupsctl cupsctl.o
$(LIBS
)
192 cupstestdsc
: cupstestdsc.o ..
/cups
/$(LIBCUPS
)
194 $(CC
) $(LDFLAGS
) -o
$@ cupstestdsc.o
$(LIBS
)
201 cupstestppd
: cupstestppd.o ..
/cups
/$(LIBCUPS
) ..
/filter/$(LIBCUPSIMAGE
)
203 $(CC
) $(LDFLAGS
) -o
$@ cupstestppd.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
205 cupstestppd-static
: cupstestppd.o ..
/cups
/libcups.a ..
/filter/libcupsimage.a
207 $(CC
) $(LDFLAGS
) -o
$@ cupstestppd.o ..
/filter/libcupsimage.a \
208 ..
/cups
/libcups.a
$(IMGLIBS
) $(LIBGSSAPI
) $(LIBS
) $(LIBZ
)
215 lp
: lp.o ..
/cups
/$(LIBCUPS
)
217 $(CC
) $(LDFLAGS
) -o lp lp.o
$(LIBS
)
224 lpadmin
: lpadmin.o ..
/cups
/$(LIBCUPS
)
226 $(CC
) $(LDFLAGS
) -o lpadmin lpadmin.o
$(LIBZ
) $(LIBS
)
233 lpinfo
: lpinfo.o ..
/cups
/$(LIBCUPS
)
235 $(CC
) $(LDFLAGS
) -o lpinfo lpinfo.o
$(LIBS
)
242 lpmove
: lpmove.o ..
/cups
/$(LIBCUPS
)
244 $(CC
) $(LDFLAGS
) -o lpmove lpmove.o
$(LIBS
)
251 lpoptions
: lpoptions.o ..
/cups
/$(LIBCUPS
)
253 $(CC
) $(LDFLAGS
) -o lpoptions lpoptions.o
$(LIBZ
) $(LIBS
)
260 lppasswd
: lppasswd.o ..
/cups
/$(LIBCUPS
)
262 $(CC
) $(LDFLAGS
) -o lppasswd lppasswd.o
$(LIBZ
) $(LIBS
)
269 lpstat
: lpstat.o ..
/cups
/$(LIBCUPS
)
271 $(CC
) $(LDFLAGS
) -o lpstat lpstat.o
$(LIBS
)
282 # End of "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $".