2 # "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $"
4 # System V commands makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 2007 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 # Clean all object files...
37 $(RM
) $(OBJS
) $(TARGETS
) cupsdisable cupsenable reject
41 # Update dependencies (without system header dependencies...)
45 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
49 # Install all targets...
53 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
54 $(INSTALL_BIN
) accept
$(SBINDIR
)
55 $(RM
) $(SBINDIR
)/reject
56 $(LN
) accept
$(SBINDIR
)/reject
57 $(INSTALL_BIN
) cupsaddsmb
$(SBINDIR
)
58 $(INSTALL_BIN
) cupsctl
$(SBINDIR
)
59 $(INSTALL_BIN
) lpadmin
$(SBINDIR
)
60 $(INSTALL_BIN
) lpinfo
$(SBINDIR
)
61 $(INSTALL_BIN
) lpmove
$(SBINDIR
)
62 $(INSTALL_DIR
) -m
755 $(BINDIR
)
63 $(INSTALL_BIN
) cancel
$(BINDIR
)
64 $(INSTALL_BIN
) cupstestdsc
$(BINDIR
)
65 $(INSTALL_BIN
) cupstestppd
$(BINDIR
)
66 $(RM
) $(SBINDIR
)/cupsdisable
67 $(LN
) accept
$(SBINDIR
)/cupsdisable
68 $(RM
) $(SBINDIR
)/cupsenable
69 $(LN
) accept
$(SBINDIR
)/cupsenable
70 $(INSTALL_BIN
) lp
$(BINDIR
)
71 $(INSTALL_BIN
) lpoptions
$(BINDIR
)
72 $(INSTALL_BIN
) lpstat
$(BINDIR
)
73 $(INSTALL_BIN
) -m
4755 -o root lppasswd
$(BINDIR
) ||
$(INSTALL_BIN
) lppasswd
$(BINDIR
)
74 if
test "x$(SYMROOT)" != "x"; then \
75 $(INSTALL_DIR
) $(SYMROOT
); \
76 for file in
$(TARGETS
); do \
77 cp
$$file $(SYMROOT
); \
83 # Uninstall all targets...
87 $(RM
) $(BINDIR
)/cancel
88 $(RM
) $(BINDIR
)/cupstestdsc
89 $(RM
) $(BINDIR
)/cupstestppd
91 $(RM
) $(BINDIR
)/lpoptions
92 $(RM
) $(BINDIR
)/lppasswd
93 $(RM
) $(BINDIR
)/lpstat
95 $(RM
) $(SBINDIR
)/accept
96 $(RM
) $(SBINDIR
)/cupsaddsmb
97 $(RM
) $(SBINDIR
)/cupsdisable
98 $(RM
) $(SBINDIR
)/cupsenable
99 $(RM
) $(SBINDIR
)/lpadmin
100 $(RM
) $(SBINDIR
)/lpinfo
101 $(RM
) $(SBINDIR
)/lpmove
102 $(RM
) $(SBINDIR
)/reject
110 accept
: accept.o ..
/cups
/$(LIBCUPS
)
112 $(CC
) $(LDFLAGS
) -o accept accept.o
$(LIBS
)
113 $(RM
) reject cupsenable cupsdisable
115 $(LN
) accept cupsenable
116 $(LN
) accept cupsdisable
123 cancel
: cancel.o ..
/cups
/$(LIBCUPS
)
125 $(CC
) $(LDFLAGS
) -o cancel cancel.o
$(LIBS
)
132 cupsaddsmb
: cupsaddsmb.o ..
/cups
/$(LIBCUPS
)
134 $(CC
) $(LDFLAGS
) -o cupsaddsmb cupsaddsmb.o
$(LIBS
)
141 cupsctl
: cupsctl.o ..
/cups
/$(LIBCUPS
)
143 $(CC
) $(LDFLAGS
) -o cupsctl cupsctl.o
$(LIBS
)
150 cupstestdsc
: cupstestdsc.o ..
/cups
/$(LIBCUPS
)
152 $(CC
) $(LDFLAGS
) -o
$@ cupstestdsc.o
$(LIBS
)
159 cupstestppd
: cupstestppd.o ..
/cups
/$(LIBCUPS
) ..
/filter/$(LIBCUPSIMAGE
)
161 $(CC
) $(LDFLAGS
) -o
$@ cupstestppd.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
168 lp
: lp.o ..
/cups
/$(LIBCUPS
)
170 $(CC
) $(LDFLAGS
) -o lp lp.o
$(LIBS
)
177 lpadmin
: lpadmin.o ..
/cups
/$(LIBCUPS
)
179 $(CC
) $(LDFLAGS
) -o lpadmin lpadmin.o
$(LIBZ
) $(LIBS
)
186 lpinfo
: lpinfo.o ..
/cups
/$(LIBCUPS
)
188 $(CC
) $(LDFLAGS
) -o lpinfo lpinfo.o
$(LIBS
)
195 lpmove
: lpmove.o ..
/cups
/$(LIBCUPS
)
197 $(CC
) $(LDFLAGS
) -o lpmove lpmove.o
$(LIBS
)
204 lpoptions
: lpoptions.o ..
/cups
/$(LIBCUPS
)
206 $(CC
) $(LDFLAGS
) -o lpoptions lpoptions.o
$(LIBZ
) $(LIBS
)
213 lppasswd
: lppasswd.o ..
/cups
/$(LIBCUPS
)
215 $(CC
) $(LDFLAGS
) -o lppasswd lppasswd.o
$(LIBZ
) $(LIBS
)
222 lpstat
: lpstat.o ..
/cups
/$(LIBCUPS
)
224 $(CC
) $(LDFLAGS
) -o lpstat lpstat.o
$(LIBS
)
235 # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".