2 # Port monitor makefile for CUPS.
4 # Copyright 2007-2012 by Apple Inc.
5 # Copyright 2006 by Easy Software Products.
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/".
13 # This file is subject to the Apple OS-Developed Software exception.
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 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/monitor
80 for file in
$(TARGETS
); do \
81 $(INSTALL_BIN
) $$file $(SERVERBIN
)/monitor
; \
83 if
test "x$(SYMROOT)" != "x"; then \
84 $(INSTALL_DIR
) $(SYMROOT
); \
85 for file in
$(TARGETS
); do \
86 cp
$$file $(SYMROOT
); \
87 dsymutil
$(SYMROOT
)/$$file; \
100 # Install libraries...
107 # Uninstall all targets...
111 for file in
$(TARGETS
); do \
112 $(RM
) $(SERVERBIN
)/monitor
/$$file; \
114 -$(RMDIR
) $(SERVERBIN
)/monitor
115 -$(RMDIR
) $(SERVERBIN
)
122 bcp
: bcp.o ..
/cups
/$(LIBCUPS
)
124 $(CC
) $(LDFLAGS
) -o
$@ bcp.o
$(LIBS
)
131 tbcp
: tbcp.o ..
/cups
/$(LIBCUPS
)
133 $(CC
) $(LDFLAGS
) -o
$@ tbcp.o
$(LIBS
)