2 # "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $"
4 # Berkeley 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
= lpc lpq lpr lprm
19 OBJS
= lpc.o lpq.o lpr.o lprm.o
30 # Make library targets...
37 # Clean all object files...
41 $(RM
) $(OBJS
) $(TARGETS
)
45 # Update dependencies (without system header dependencies...)
49 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
53 # Install all targets...
56 install: all install-data install-headers install-libs install-exec
60 # Install data files...
71 $(INSTALL_DIR
) -m
755 $(BINDIR
)
72 $(INSTALL_BIN
) lpq
$(BINDIR
)
73 $(INSTALL_BIN
) lpr
$(BINDIR
)
74 $(INSTALL_BIN
) lprm
$(BINDIR
)
75 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
76 $(INSTALL_BIN
) lpc
$(SBINDIR
)
77 if
test "x$(SYMROOT)" != "x"; then \
78 $(INSTALL_DIR
) $(SYMROOT
); \
79 for file in
$(TARGETS
); do \
80 cp
$$file $(SYMROOT
); \
93 # Install libraries...
100 # Uninstall all targets...
116 lpc
: lpc.o ..
/cups
/$(LIBCUPS
)
118 $(CC
) $(LDFLAGS
) -o lpc lpc.o
$(LIBS
)
125 lpq
: lpq.o ..
/cups
/$(LIBCUPS
)
127 $(CC
) $(LDFLAGS
) -o lpq lpq.o
$(LIBS
)
134 lpr
: lpr.o ..
/cups
/$(LIBCUPS
)
136 $(CC
) $(LDFLAGS
) -o lpr lpr.o
$(LIBS
)
143 lprm
: lprm.o ..
/cups
/$(LIBCUPS
)
145 $(CC
) $(LDFLAGS
) -o lprm lprm.o
$(LIBS
)
156 # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".