]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/Makefile
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / backend / Makefile
index 625e337d7f4a658d2330b53c4df8c3f3e45afa2c..a4017bf77ef67f6fe4fe3ef10e99ef34de8c80cd 100644 (file)
@@ -1,18 +1,16 @@
 #
-# "$Id: Makefile 7924 2008-09-10 17:36:13Z mike $"
+# Backend makefile for CUPS.
 #
-#   Backend makefile for CUPS.
+# Copyright 2007-2014 by Apple Inc.
+# Copyright 1997-2007 by Easy Software Products, all rights reserved.
 #
-#   Copyright 2007-2012 by Apple Inc.
-#   Copyright 1997-2007 by Easy Software Products, all rights reserved.
+# These coded instructions, statements, and computer programs are the
+# property of Apple Inc. and are protected by Federal copyright
+# law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+# which should have been included with this file.  If this file is
+# file is missing or damaged, see the license at "http://www.cups.org/".
 #
-#   These coded instructions, statements, and computer programs are the
-#   property of Apple Inc. and are protected by Federal copyright
-#   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
-#   which should have been included with this file.  If this file is
-#   file is missing or damaged, see the license at "http://www.cups.org/".
-#
-#   This file is subject to the Apple OS-Developed Software exception.
+# This file is subject to the Apple OS-Developed Software exception.
 #
 
 include ../Makedefs
@@ -23,8 +21,8 @@ include ../Makedefs
 
 # RBACKENDS are installed mode 0700 so cupsd will run them as root...
 #
-# UBACKENDS are installed mode 0755 so cupsd will run them as an unprivileged
-# user...
+# UBACKENDS and ULBACKENDS are installed mode 0755 so cupsd will run them as
+# an unprivileged user...
 #
 # See http://www.cups.org/documentation.php/api-filter.html for more info...
 RBACKENDS =    \
@@ -33,7 +31,8 @@ RBACKENDS =   \
                $(DNSSD_BACKEND)
 UBACKENDS =    \
                snmp \
-               socket \
+               socket
+ULBACKENDS =   \
                usb
 UNITTESTS =    \
                test1284 \
@@ -42,7 +41,8 @@ UNITTESTS =   \
 TARGETS =      \
                libbackend.a \
                $(RBACKENDS) \
-               $(UBACKENDS)
+               $(UBACKENDS) \
+               $(ULBACKENDS)
 LIBOBJS        =       \
                ieee1284.o \
                network.o \
@@ -71,7 +71,7 @@ all:  $(TARGETS)
 # Make library targets...
 #
 
-libs:
+libs:  $(ULBACKENDS)
 
 
 #
@@ -109,6 +109,11 @@ install:   all install-data install-headers install-libs install-exec
 #
 
 install-data:
+       if test "x$(USBQUIRKS)" != x; then \
+               echo Installing USB quirks in $(USBQUIRKS); \
+               $(INSTALL_DIR) -m 755 $(USBQUIRKS); \
+               $(INSTALL_DATA) org.cups.usb-quirks $(USBQUIRKS); \
+       fi
 
 
 #
@@ -128,14 +133,15 @@ install-exec:     $(INSTALLXPC)
                $(RM) $(SERVERBIN)/backend/$$file; \
                $(LN) ipp $(SERVERBIN)/backend/$$file; \
        done
-       if test "x$(DNSSD_BACKEND)" != x; then \
+       if test "x$(DNSSD_BACKEND)" != x -a `uname` = Darwin; then \
                $(RM) $(SERVERBIN)/backend/mdns; \
                $(LN) $(DNSSD_BACKEND) $(SERVERBIN)/backend/mdns; \
        fi
        if test "x$(SYMROOT)" != "x"; then \
                $(INSTALL_DIR) $(SYMROOT); \
-               for file in $(TARGETS); do \
+               for file in $(RBACKENDS) $(UBACKENDS); do \
                        cp $$file $(SYMROOT); \
+                       dsymutil $(SYMROOT)/$$file; \
                done \
        fi
 
@@ -161,6 +167,18 @@ install-headers:
 #
 
 install-libs:
+       echo Installing backends in $(SERVERBIN)/backend
+       $(INSTALL_DIR) -m 755 $(SERVERBIN)/backend
+       for file in $(ULBACKENDS); do \
+               $(INSTALL_BIN) $$file $(SERVERBIN)/backend; \
+       done
+       if test "x$(SYMROOT)" != "x"; then \
+               $(INSTALL_DIR) $(SYMROOT); \
+               for file in $(ULBACKENDS); do \
+                       cp $$file $(SYMROOT); \
+                       dsymutil $(SYMROOT)/$$file; \
+               done \
+       fi
 
 
 #
@@ -173,7 +191,7 @@ uninstall:
                $(RM) $(SERVERBIN)/apple/$$file; \
        done
        -$(RMDIR) $(SERVERBIN)/apple
-       for file in $(RBACKENDS) $(UBACKENDS); do \
+       for file in $(RBACKENDS) $(UBACKENDS) $(ULBACKENDS); do \
                $(RM) $(SERVERBIN)/backend/$$file; \
        done
        for file in $(IPPALIASES); do \
@@ -232,8 +250,10 @@ libbackend.a:      $(LIBOBJS)
 dnssd: dnssd.o ../cups/$(LIBCUPS) libbackend.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o dnssd dnssd.o libbackend.a $(LIBS)
-       $(RM) mdns
-       $(LN) dnssd mdns
+       if test `uname` = Darwin; then \
+               $(RM) mdns; \
+               $(LN) dnssd mdns; \
+       fi
 
 
 #
@@ -290,8 +310,3 @@ usb.o:      usb.c usb-darwin.c usb-libusb.c usb-unix.c
 #
 
 include Dependencies
-
-
-#
-# End of "$Id: Makefile 7924 2008-09-10 17:36:13Z mike $".
-#