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-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...
40 # Clean all object files...
44 $(RM
) $(OBJS
) $(TARGETS
) cupsdisable cupsenable reject
48 # Update dependencies (without system header dependencies...)
52 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
56 # Install all targets...
59 install: all install-data install-headers install-libs install-exec
63 # Install data files...
74 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
75 $(INSTALL_BIN
) accept
$(SBINDIR
)
76 $(RM
) $(SBINDIR
)/reject
77 $(LN
) accept
$(SBINDIR
)/reject
78 $(INSTALL_BIN
) cupsaddsmb
$(SBINDIR
)
79 $(INSTALL_BIN
) cupsctl
$(SBINDIR
)
80 $(INSTALL_BIN
) lpadmin
$(SBINDIR
)
81 $(INSTALL_BIN
) lpinfo
$(SBINDIR
)
82 $(INSTALL_BIN
) lpmove
$(SBINDIR
)
83 $(INSTALL_DIR
) -m
755 $(BINDIR
)
84 $(INSTALL_BIN
) cancel
$(BINDIR
)
85 $(INSTALL_BIN
) cupstestdsc
$(BINDIR
)
86 $(INSTALL_BIN
) cupstestppd
$(BINDIR
)
87 $(RM
) $(SBINDIR
)/cupsdisable
88 $(LN
) accept
$(SBINDIR
)/cupsdisable
89 $(RM
) $(SBINDIR
)/cupsenable
90 $(LN
) accept
$(SBINDIR
)/cupsenable
91 $(INSTALL_BIN
) lp
$(BINDIR
)
92 $(INSTALL_BIN
) lpoptions
$(BINDIR
)
93 $(INSTALL_BIN
) lpstat
$(BINDIR
)
94 $(INSTALL_BIN
) lppasswd
$(BINDIR
)
95 if
test "x$(SYMROOT)" != "x"; then \
96 $(INSTALL_DIR
) $(SYMROOT
); \
97 for file in
$(TARGETS
); do \
98 cp
$$file $(SYMROOT
); \
111 # Install libraries...
118 # Uninstall all targets...
122 $(RM
) $(BINDIR
)/cancel
123 $(RM
) $(BINDIR
)/cupstestdsc
124 $(RM
) $(BINDIR
)/cupstestppd
126 $(RM
) $(BINDIR
)/lpoptions
127 $(RM
) $(BINDIR
)/lppasswd
128 $(RM
) $(BINDIR
)/lpstat
130 $(RM
) $(SBINDIR
)/accept
131 $(RM
) $(SBINDIR
)/cupsaddsmb
132 $(RM
) $(SBINDIR
)/cupsdisable
133 $(RM
) $(SBINDIR
)/cupsenable
134 $(RM
) $(SBINDIR
)/lpadmin
135 $(RM
) $(SBINDIR
)/lpinfo
136 $(RM
) $(SBINDIR
)/lpmove
137 $(RM
) $(SBINDIR
)/reject
145 accept
: accept.o ..
/cups
/$(LIBCUPS
)
147 $(CC
) $(LDFLAGS
) -o accept accept.o
$(LIBS
)
148 $(RM
) reject cupsenable cupsdisable
150 $(LN
) accept cupsenable
151 $(LN
) accept cupsdisable
158 cancel
: cancel.o ..
/cups
/$(LIBCUPS
)
160 $(CC
) $(LDFLAGS
) -o cancel cancel.o
$(LIBS
)
167 cupsaddsmb
: cupsaddsmb.o ..
/cups
/$(LIBCUPS
)
169 $(CC
) $(LDFLAGS
) -o cupsaddsmb cupsaddsmb.o
$(LIBS
)
176 cupsctl
: cupsctl.o ..
/cups
/$(LIBCUPS
)
178 $(CC
) $(LDFLAGS
) -o cupsctl cupsctl.o
$(LIBS
)
185 cupstestdsc
: cupstestdsc.o ..
/cups
/$(LIBCUPS
)
187 $(CC
) $(LDFLAGS
) -o
$@ cupstestdsc.o
$(LIBS
)
194 cupstestppd
: cupstestppd.o ..
/cups
/$(LIBCUPS
) ..
/filter/$(LIBCUPSIMAGE
)
196 $(CC
) $(LDFLAGS
) -o
$@ cupstestppd.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
203 lp
: lp.o ..
/cups
/$(LIBCUPS
)
205 $(CC
) $(LDFLAGS
) -o lp lp.o
$(LIBS
)
212 lpadmin
: lpadmin.o ..
/cups
/$(LIBCUPS
)
214 $(CC
) $(LDFLAGS
) -o lpadmin lpadmin.o
$(LIBZ
) $(LIBS
)
221 lpinfo
: lpinfo.o ..
/cups
/$(LIBCUPS
)
223 $(CC
) $(LDFLAGS
) -o lpinfo lpinfo.o
$(LIBS
)
230 lpmove
: lpmove.o ..
/cups
/$(LIBCUPS
)
232 $(CC
) $(LDFLAGS
) -o lpmove lpmove.o
$(LIBS
)
239 lpoptions
: lpoptions.o ..
/cups
/$(LIBCUPS
)
241 $(CC
) $(LDFLAGS
) -o lpoptions lpoptions.o
$(LIBZ
) $(LIBS
)
248 lppasswd
: lppasswd.o ..
/cups
/$(LIBCUPS
)
250 $(CC
) $(LDFLAGS
) -o lppasswd lppasswd.o
$(LIBZ
) $(LIBS
)
257 lpstat
: lpstat.o ..
/cups
/$(LIBCUPS
)
259 $(CC
) $(LDFLAGS
) -o lpstat lpstat.o
$(LIBS
)
270 # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".