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 # 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...
52 install: all install-data install-headers install-libs install-exec
56 # Install data files...
67 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
68 $(INSTALL_BIN
) accept
$(SBINDIR
)
69 $(RM
) $(SBINDIR
)/reject
70 $(LN
) accept
$(SBINDIR
)/reject
71 $(INSTALL_BIN
) cupsaddsmb
$(SBINDIR
)
72 $(INSTALL_BIN
) cupsctl
$(SBINDIR
)
73 $(INSTALL_BIN
) lpadmin
$(SBINDIR
)
74 $(INSTALL_BIN
) lpinfo
$(SBINDIR
)
75 $(INSTALL_BIN
) lpmove
$(SBINDIR
)
76 $(INSTALL_DIR
) -m
755 $(BINDIR
)
77 $(INSTALL_BIN
) cancel
$(BINDIR
)
78 $(INSTALL_BIN
) cupstestdsc
$(BINDIR
)
79 $(INSTALL_BIN
) cupstestppd
$(BINDIR
)
80 $(RM
) $(SBINDIR
)/cupsdisable
81 $(LN
) accept
$(SBINDIR
)/cupsdisable
82 $(RM
) $(SBINDIR
)/cupsenable
83 $(LN
) accept
$(SBINDIR
)/cupsenable
84 $(INSTALL_BIN
) lp
$(BINDIR
)
85 $(INSTALL_BIN
) lpoptions
$(BINDIR
)
86 $(INSTALL_BIN
) lpstat
$(BINDIR
)
87 $(INSTALL_BIN
) lppasswd
$(BINDIR
)
88 if
test "x$(SYMROOT)" != "x"; then \
89 $(INSTALL_DIR
) $(SYMROOT
); \
90 for file in
$(TARGETS
); do \
91 cp
$$file $(SYMROOT
); \
104 # Install libraries...
111 # Uninstall all targets...
115 $(RM
) $(BINDIR
)/cancel
116 $(RM
) $(BINDIR
)/cupstestdsc
117 $(RM
) $(BINDIR
)/cupstestppd
119 $(RM
) $(BINDIR
)/lpoptions
120 $(RM
) $(BINDIR
)/lppasswd
121 $(RM
) $(BINDIR
)/lpstat
123 $(RM
) $(SBINDIR
)/accept
124 $(RM
) $(SBINDIR
)/cupsaddsmb
125 $(RM
) $(SBINDIR
)/cupsdisable
126 $(RM
) $(SBINDIR
)/cupsenable
127 $(RM
) $(SBINDIR
)/lpadmin
128 $(RM
) $(SBINDIR
)/lpinfo
129 $(RM
) $(SBINDIR
)/lpmove
130 $(RM
) $(SBINDIR
)/reject
138 accept
: accept.o ..
/cups
/$(LIBCUPS
)
140 $(CC
) $(LDFLAGS
) -o accept accept.o
$(LIBS
)
141 $(RM
) reject cupsenable cupsdisable
143 $(LN
) accept cupsenable
144 $(LN
) accept cupsdisable
151 cancel
: cancel.o ..
/cups
/$(LIBCUPS
)
153 $(CC
) $(LDFLAGS
) -o cancel cancel.o
$(LIBS
)
160 cupsaddsmb
: cupsaddsmb.o ..
/cups
/$(LIBCUPS
)
162 $(CC
) $(LDFLAGS
) -o cupsaddsmb cupsaddsmb.o
$(LIBS
)
169 cupsctl
: cupsctl.o ..
/cups
/$(LIBCUPS
)
171 $(CC
) $(LDFLAGS
) -o cupsctl cupsctl.o
$(LIBS
)
178 cupstestdsc
: cupstestdsc.o ..
/cups
/$(LIBCUPS
)
180 $(CC
) $(LDFLAGS
) -o
$@ cupstestdsc.o
$(LIBS
)
187 cupstestppd
: cupstestppd.o ..
/cups
/$(LIBCUPS
) ..
/filter/$(LIBCUPSIMAGE
)
189 $(CC
) $(LDFLAGS
) -o
$@ cupstestppd.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
196 lp
: lp.o ..
/cups
/$(LIBCUPS
)
198 $(CC
) $(LDFLAGS
) -o lp lp.o
$(LIBS
)
205 lpadmin
: lpadmin.o ..
/cups
/$(LIBCUPS
)
207 $(CC
) $(LDFLAGS
) -o lpadmin lpadmin.o
$(LIBZ
) $(LIBS
)
214 lpinfo
: lpinfo.o ..
/cups
/$(LIBCUPS
)
216 $(CC
) $(LDFLAGS
) -o lpinfo lpinfo.o
$(LIBS
)
223 lpmove
: lpmove.o ..
/cups
/$(LIBCUPS
)
225 $(CC
) $(LDFLAGS
) -o lpmove lpmove.o
$(LIBS
)
232 lpoptions
: lpoptions.o ..
/cups
/$(LIBCUPS
)
234 $(CC
) $(LDFLAGS
) -o lpoptions lpoptions.o
$(LIBZ
) $(LIBS
)
241 lppasswd
: lppasswd.o ..
/cups
/$(LIBCUPS
)
243 $(CC
) $(LDFLAGS
) -o lppasswd lppasswd.o
$(LIBZ
) $(LIBS
)
250 lpstat
: lpstat.o ..
/cups
/$(LIBCUPS
)
252 $(CC
) $(LDFLAGS
) -o lpstat lpstat.o
$(LIBS
)
263 # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".