2 # Berkeley commands makefile for CUPS.
4 # Copyright 2007-2017 by Apple Inc.
5 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
7 # These coded instructions, statements, and computer programs are the
8 # property of Apple Inc. and are protected by Federal copyright
9 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 # which should have been included with this file. If this file is
11 # missing or damaged, see the license at "http://www.cups.org/".
17 TARGETS
= lpc lpq lpr lprm
18 OBJS
= lpc.o lpq.o lpr.o lprm.o
29 # Make library targets...
43 # Clean all object files...
47 $(RM
) $(OBJS
) $(TARGETS
)
51 # Update dependencies (without system header dependencies...)
55 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
59 # Install all targets...
62 install: all install-data install-headers install-libs install-exec
66 # Install data files...
77 echo Installing Berkeley user printing commands in
$(BINDIR
)...
78 $(INSTALL_DIR
) -m
755 $(BINDIR
)
79 $(INSTALL_BIN
) lpq
$(BINDIR
)
80 $(INSTALL_BIN
) lpr
$(BINDIR
)
81 $(INSTALL_BIN
) lprm
$(BINDIR
)
82 echo Installing Berkeley admin printing commands in
$(BINDIR
)...
83 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
84 $(INSTALL_BIN
) lpc
$(SBINDIR
)
85 if
test "x$(SYMROOT)" != "x"; then \
86 $(INSTALL_DIR
) $(SYMROOT
); \
87 for file in
$(TARGETS
); do \
88 cp
$$file $(SYMROOT
); \
89 dsymutil
$(SYMROOT
)/$$file; \
102 # Install libraries...
109 # Uninstall all targets...
125 lpc
: lpc.o ..
/cups
/$(LIBCUPS
)
127 $(LD_CC
) $(LDFLAGS
) -o lpc lpc.o
$(LIBS
)
128 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
135 lpq
: lpq.o ..
/cups
/$(LIBCUPS
)
137 $(LD_CC
) $(LDFLAGS
) -o lpq lpq.o
$(LIBS
)
138 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
145 lpr
: lpr.o ..
/cups
/$(LIBCUPS
)
147 $(LD_CC
) $(LDFLAGS
) -o lpr lpr.o
$(LIBS
)
148 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
155 lprm
: lprm.o ..
/cups
/$(LIBCUPS
)
157 $(LD_CC
) $(LDFLAGS
) -o lprm lprm.o
$(LIBS
)
158 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@