2 # "$Id: Makefile 7924 2008-09-10 17:36:13Z mike $"
4 # Backend makefile for CUPS.
6 # Copyright 2007-2011 by Apple Inc.
7 # Copyright 1997-2007 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/".
15 # This file is subject to the Apple OS-Developed Software exception.
65 # Make library targets...
75 unittests
: $(UNITTESTS
)
79 # Clean all object files...
83 $(RM
) $(OBJS
) $(TARGETS
) $(UNITTESTS
) $(LIBOBJS
) http https ipps mdns
87 # Update dependencies (without system header dependencies...)
91 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
95 # Install all targets...
98 install: all install-data install-headers install-libs install-exec
102 # Install data files...
109 # Install programs...
112 install-exec
: $(INSTALLXPC
)
113 echo Installing backends in
$(SERVERBIN
)/backend
114 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/backend
115 for file in
$(RBACKENDS
); do \
116 $(LIBTOOL
) $(INSTALL_BIN
) -m
700 $$file $(SERVERBIN
)/backend
; \
118 for file in
$(UBACKENDS
); do \
119 $(INSTALL_BIN
) $$file $(SERVERBIN
)/backend
; \
121 for file in
$(IPPALIASES
); do \
122 $(RM
) $(SERVERBIN
)/backend
/$$file; \
123 $(LN
) ipp
$(SERVERBIN
)/backend
/$$file; \
125 if
test "x$(DNSSD_BACKEND)" != x
; then \
126 $(RM
) $(SERVERBIN
)/backend
/mdns
; \
127 $(LN
) $(DNSSD_BACKEND
) $(SERVERBIN
)/backend
/mdns
; \
129 if
test "x$(SYMROOT)" != "x"; then \
130 $(INSTALL_DIR
) $(SYMROOT
); \
131 for file in
$(TARGETS
); do \
132 cp
$$file $(SYMROOT
); \
137 echo Installing XPC backends in
$(SERVERBIN
)/apple
138 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/apple
139 $(LIBTOOL
) $(INSTALL_BIN
) ipp
$(SERVERBIN
)/apple
140 for file in
$(IPPALIASES
); do \
141 $(RM
) $(SERVERBIN
)/apple
/$$file; \
142 $(LN
) ipp
$(SERVERBIN
)/apple
/$$file; \
154 # Install libraries...
161 # Uninstall all targets...
165 $(RM
) $(SERVERBIN
)/apple
/ipp
166 for file in
$(IPPALIASES
); do \
167 $(RM
) $(SERVERBIN
)/apple
/$$file; \
169 -$(RMDIR
) $(SERVERBIN
)/apple
170 for file in
$(RBACKENDS
) $(UBACKENDS
); do \
171 $(RM
) $(SERVERBIN
)/backend
/$$file; \
173 for file in
$(IPPALIASES
); do \
174 $(RM
) $(SERVERBIN
)/backend
/$$file; \
176 -$(RMDIR
) $(SERVERBIN
)/backend
177 -$(RMDIR
) $(SERVERBIN
)
184 test1284
: test1284.o ..
/cups
/$(LIBCUPSSTATIC
)
186 $(CC
) $(LDFLAGS
) -o test1284 test1284.o ..
/cups
/$(LIBCUPSSTATIC
) \
187 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
194 testbackend
: testbackend.o ..
/cups
/$(LIBCUPSSTATIC
)
196 $(CC
) $(LDFLAGS
) -o testbackend testbackend.o ..
/cups
/$(LIBCUPSSTATIC
) \
197 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
204 testsupplies
: testsupplies.o libbackend.a ..
/cups
/$(LIBCUPSSTATIC
)
206 $(CC
) $(LDFLAGS
) -o testsupplies testsupplies.o libbackend.a \
207 ..
/cups
/$(LIBCUPSSTATIC
) $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) \
208 $(COMMONLIBS
) $(LIBZ
)
215 libbackend.a
: $(LIBOBJS
)
218 $(AR
) $(ARFLAGS
) $@
$(LIBOBJS
)
226 dnssd
: dnssd.o ..
/cups
/$(LIBCUPS
) libbackend.a
228 $(CC
) $(LDFLAGS
) -o dnssd dnssd.o libbackend.a
$(LIBS
)
237 ipp
: ipp.o ..
/cups
/$(LIBCUPS
) libbackend.a
239 $(CC
) $(LDFLAGS
) -o ipp ipp.o libbackend.a
$(LIBS
)
248 lpd
: lpd.o ..
/cups
/$(LIBCUPS
) libbackend.a
250 $(CC
) $(LDFLAGS
) -o lpd lpd.o libbackend.a
$(LIBS
)
257 snmp
: snmp.o ..
/cups
/$(LIBCUPS
) libbackend.a
259 $(CC
) $(LDFLAGS
) -o snmp snmp.o libbackend.a
$(LIBS
)
266 socket
: socket.o ..
/cups
/$(LIBCUPS
) libbackend.a
268 $(CC
) $(LDFLAGS
) -o socket socket.o libbackend.a
$(LIBS
)
275 usb
: usb.o ..
/cups
/$(LIBCUPS
) libbackend.a
277 $(CC
) $(LDFLAGS
) -o usb usb.o libbackend.a
$(LIBUSB
) \
279 usb.o
: usb.c usb-darwin.c usb-libusb.c usb-unix.c
290 # End of "$Id: Makefile 7924 2008-09-10 17:36:13Z mike $".