4 # Berkeley commands makefile for CUPS.
6 # Copyright 2007-2012 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/".
19 TARGETS
= lpc lpq lpr lprm
20 OBJS
= lpc.o lpq.o lpr.o lprm.o
31 # Make library targets...
45 # Clean all object files...
49 $(RM
) $(OBJS
) $(TARGETS
)
53 # Update dependencies (without system header dependencies...)
57 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
61 # Install all targets...
64 install: all install-data install-headers install-libs install-exec
68 # Install data files...
79 echo Installing Berkeley user printing commands in
$(BINDIR
)...
80 $(INSTALL_DIR
) -m
755 $(BINDIR
)
81 $(INSTALL_BIN
) lpq
$(BINDIR
)
82 $(INSTALL_BIN
) lpr
$(BINDIR
)
83 $(INSTALL_BIN
) lprm
$(BINDIR
)
84 echo Installing Berkeley admin printing commands in
$(BINDIR
)...
85 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
86 $(INSTALL_BIN
) lpc
$(SBINDIR
)
87 if
test "x$(SYMROOT)" != "x"; then \
88 $(INSTALL_DIR
) $(SYMROOT
); \
89 for file in
$(TARGETS
); do \
90 cp
$$file $(SYMROOT
); \
91 dsymutil
$(SYMROOT
)/$$file; \
104 # Install libraries...
111 # Uninstall all targets...
127 lpc
: lpc.o ..
/cups
/$(LIBCUPS
)
129 $(CC
) $(LDFLAGS
) -o lpc lpc.o
$(LIBS
)
136 lpq
: lpq.o ..
/cups
/$(LIBCUPS
)
138 $(CC
) $(LDFLAGS
) -o lpq lpq.o
$(LIBS
)
145 lpr
: lpr.o ..
/cups
/$(LIBCUPS
)
147 $(CC
) $(LDFLAGS
) -o lpr lpr.o
$(LIBS
)
154 lprm
: lprm.o ..
/cups
/$(LIBCUPS
)
156 $(CC
) $(LDFLAGS
) -o lprm lprm.o
$(LIBS
)