]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/Makefile
Merge changes from CUPS 1.6svn-r9939.
[thirdparty/cups.git] / backend / Makefile
index 6b217462fa7aabeb9818f338f3b2b08bac2e8545..27f4e6859932001501a224b31cd0e096f5363ec5 100644 (file)
@@ -3,7 +3,7 @@
 #
 #   Backend makefile for CUPS.
 #
-#   Copyright 2007-2010 by Apple Inc.
+#   Copyright 2007-2011 by Apple Inc.
 #   Copyright 1997-2007 by Easy Software Products, all rights reserved.
 #
 #   These coded instructions, statements, and computer programs are the
@@ -21,13 +21,37 @@ include ../Makedefs
 # Object files...
 #
 
-RBACKENDS =    ipp lpd $(DNSSD_BACKEND)
-UBACKENDS =    $(PAP) $(LEGACY_BACKENDS) serial snmp socket usb
-UNITTESTS =    test1284 testbackend testsupplies
-TARGETS =      libbackend.a $(RBACKENDS) $(UBACKENDS)
-LIBOBJS        =       ieee1284.o network.o runloop.o snmp-supplies.o
-OBJS   =       ipp.o lpd.o dnssd.o pap.o parallel.o serial.o snmp.o \
-               socket.o test1284.o testbackend.o testsupplies.o usb.o
+RBACKENDS =    \
+               ipp \
+               lpd \
+               $(DNSSD_BACKEND)
+UBACKENDS =    \
+               snmp \
+               socket \
+               usb
+UNITTESTS =    \
+               test1284 \
+               testbackend \
+               testsupplies
+TARGETS =      \
+               libbackend.a \
+               $(RBACKENDS) \
+               $(UBACKENDS)
+LIBOBJS        =       \
+               ieee1284.o \
+               network.o \
+               runloop.o \
+               snmp-supplies.o
+OBJS   =       \
+               ipp.o \
+               lpd.o \
+               dnssd.o \
+               snmp.o \
+               socket.o \
+               test1284.o \
+               testbackend.o \
+               testsupplies.o \
+               usb.o
 
 
 #
@@ -56,7 +80,7 @@ unittests:    $(UNITTESTS)
 #
 
 clean:
-       $(RM) $(OBJS) $(TARGETS) $(UNITTESTS) $(LIBOBJS) http mdns
+       $(RM) $(OBJS) $(TARGETS) $(UNITTESTS) $(LIBOBJS) http https ipps mdns
 
 
 #
@@ -85,7 +109,8 @@ install-data:
 # Install programs...
 #
 
-install-exec:
+install-exec:  $(INSTALLXPC)
+       echo Installing backends in $(SERVERBIN)/backend
        $(INSTALL_DIR) -m 755 $(SERVERBIN)/backend
        for file in $(RBACKENDS); do \
                $(LIBTOOL) $(INSTALL_BIN) -m 700 $$file $(SERVERBIN)/backend; \
@@ -93,8 +118,10 @@ install-exec:
        for file in $(UBACKENDS); do \
                $(INSTALL_BIN) $$file $(SERVERBIN)/backend; \
        done
-       $(RM) $(SERVERBIN)/backend/http
-       $(LN) ipp $(SERVERBIN)/backend/http
+       for file in $(IPPALIASES); do \
+               $(RM) $(SERVERBIN)/backend/$$file; \
+               $(LN) ipp $(SERVERBIN)/backend/$$file; \
+       done
        if test "x$(DNSSD_BACKEND)" != x; then \
                $(RM) $(SERVERBIN)/backend/mdns; \
                $(LN) $(DNSSD_BACKEND) $(SERVERBIN)/backend/mdns; \
@@ -106,6 +133,15 @@ install-exec:
                done \
        fi
 
+install-xpc:   ipp
+       echo Installing XPC backends in $(SERVERBIN)/apple
+       $(INSTALL_DIR) -m 755 $(SERVERBIN)/apple
+       $(LIBTOOL) $(INSTALL_BIN) ipp $(SERVERBIN)/apple
+       for file in $(IPPALIASES); do \
+               $(RM) $(SERVERBIN)/apple/$$file; \
+               $(LN) ipp $(SERVERBIN)/apple/$$file; \
+       done
+
 
 #
 # Install headers...
@@ -126,10 +162,17 @@ install-libs:
 #
 
 uninstall:
+       $(RM) $(SERVERBIN)/apple/ipp
+       for file in $(IPPALIASES); do \
+               $(RM) $(SERVERBIN)/apple/$$file; \
+       done
+       -$(RMDIR) $(SERVERBIN)/apple
        for file in $(RBACKENDS) $(UBACKENDS); do \
                $(RM) $(SERVERBIN)/backend/$$file; \
        done
-       $(RM) $(SERVERBIN)/backend/http
+       for file in $(IPPALIASES); do \
+               $(RM) $(SERVERBIN)/backend/$$file; \
+       done
        -$(RMDIR) $(SERVERBIN)/backend
        -$(RMDIR) $(SERVERBIN)
 
@@ -207,33 +250,6 @@ lpd:       lpd.o ../cups/$(LIBCUPS) libbackend.a
        $(CC) $(LDFLAGS) -o lpd lpd.o libbackend.a $(LIBS)
 
 
-#
-# pap
-#
-
-pap:   pap.o ../cups/$(LIBCUPS)
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o pap pap.o $(BACKLIBS) $(LIBS) -framework AppleTalk
-
-
-#
-# parallel
-#
-
-parallel:      parallel.o ../cups/$(LIBCUPS) libbackend.a
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o parallel parallel.o libbackend.a $(LIBS)
-
-
-#
-# serial
-#
-
-serial:        serial.o ../cups/$(LIBCUPS) libbackend.a
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o serial serial.o libbackend.a $(BACKLIBS) $(LIBS)
-
-
 #
 # snmp
 #