2 # Berkeley commands makefile for CUPS.
4 # Copyright 2007-2019 by Apple Inc.
5 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more information.
13 TARGETS
= lpc lpq lpr lprm
14 OBJS
= lpc.o lpq.o lpr.o lprm.o
25 # Make library targets...
39 # Clean all object files...
43 $(RM
) $(OBJS
) $(TARGETS
)
47 # Update dependencies (without system header dependencies...)
51 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
55 # Install all targets...
58 install: all install-data install-headers install-libs install-exec
62 # Install data files...
73 echo Installing Berkeley user printing commands in
$(BINDIR
)...
74 $(INSTALL_DIR
) -m
755 $(BINDIR
)
75 $(INSTALL_BIN
) lpq
$(BINDIR
)
76 $(INSTALL_BIN
) lpr
$(BINDIR
)
77 $(INSTALL_BIN
) lprm
$(BINDIR
)
78 echo Installing Berkeley admin printing commands in
$(BINDIR
)...
79 $(INSTALL_DIR
) -m
755 $(SBINDIR
)
80 $(INSTALL_BIN
) lpc
$(SBINDIR
)
81 if
test "x$(SYMROOT)" != "x"; then \
82 $(INSTALL_DIR
) $(SYMROOT
); \
83 for file in
$(TARGETS
); do \
84 cp
$$file $(SYMROOT
); \
85 dsymutil
$(SYMROOT
)/$$file; \
98 # Install libraries...
105 # Uninstall all targets...
121 lpc
: lpc.o ..
/cups
/$(LIBCUPS
)
123 $(LD_CC
) $(ALL_LDFLAGS
) -o lpc lpc.o
$(LIBS
)
124 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
131 lpq
: lpq.o ..
/cups
/$(LIBCUPS
)
133 $(LD_CC
) $(ALL_LDFLAGS
) -o lpq lpq.o
$(LIBS
)
134 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
141 lpr
: lpr.o ..
/cups
/$(LIBCUPS
)
143 $(LD_CC
) $(ALL_LDFLAGS
) -o lpr lpr.o
$(LIBS
)
144 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
151 lprm
: lprm.o ..
/cups
/$(LIBCUPS
)
153 $(LD_CC
) $(ALL_LDFLAGS
) -o lprm lprm.o
$(LIBS
)
154 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@