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 # Clean all object files...
34 $(RM
) $(OBJS
) $(TARGETS
)
38 # Update dependencies (without system header dependencies...)
42 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
46 # Install all targets...
49 install: all install-data install-headers install-libs install-exec
53 # Install data files...
64 $(INSTALL_DIR
) -m
755 $(BINDIR
)
65 $(INSTALL_BIN
) lpq
$(BINDIR
)
66 $(INSTALL_BIN
) lpr
$(BINDIR
)
67 $(INSTALL_BIN
) lprm
$(BINDIR
)
68 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
69 $(INSTALL_BIN
) lpc
$(SBINDIR
)
70 if
test "x$(SYMROOT)" != "x"; then \
71 $(INSTALL_DIR
) $(SYMROOT
); \
72 for file in
$(TARGETS
); do \
73 cp
$$file $(SYMROOT
); \
86 # Install libraries...
93 # Uninstall all targets...
109 lpc
: lpc.o ..
/cups
/$(LIBCUPS
)
111 $(CC
) $(LDFLAGS
) -o lpc lpc.o
$(LIBS
)
118 lpq
: lpq.o ..
/cups
/$(LIBCUPS
)
120 $(CC
) $(LDFLAGS
) -o lpq lpq.o
$(LIBS
)
127 lpr
: lpr.o ..
/cups
/$(LIBCUPS
)
129 $(CC
) $(LDFLAGS
) -o lpr lpr.o
$(LIBS
)
136 lprm
: lprm.o ..
/cups
/$(LIBCUPS
)
138 $(CC
) $(LDFLAGS
) -o lprm lprm.o
$(LIBS
)
149 # End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".