]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/Makefile
Merge changes from CUPS 1.6svn-r9939.
[thirdparty/cups.git] / backend / Makefile
index c898b3db0bfeaacf5b1a359999ef57ac99efb4b9..27f4e6859932001501a224b31cd0e096f5363ec5 100644 (file)
@@ -1,9 +1,9 @@
 #
-# "$Id: Makefile 6778 2007-08-08 19:27:51Z mike $"
+# "$Id: Makefile 7924 2008-09-10 17:36:13Z mike $"
 #
-#   Backend makefile for the Common UNIX Printing System (CUPS).
+#   Backend makefile for CUPS.
 #
-#   Copyright 2007-2008 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
 
 include ../Makedefs
 
-RBACKENDS =    ipp lpd
-UBACKENDS =    $(PAP) $(LEGACY_BACKENDS) serial snmp socket usb
-TARGETS        =       test1284 testbackend testsupplies \
-               libbackend.a $(RBACKENDS) $(UBACKENDS)
-LIBOBJS        =       ieee1284.o runloop.o snmp-supplies.o
-OBJS   =       ipp.o lpd.o pap.o parallel.o scsi.o serial.o snmp.o socket.o \
-               test1284.o testbackend.o testsupplies.o usb.o
+#
+# Object files...
+#
+
+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
 
 
 #
@@ -33,12 +61,26 @@ OBJS        =       ipp.o lpd.o pap.o parallel.o scsi.o serial.o snmp.o socket.o \
 all:   $(TARGETS)
 
 
+#
+# Make library targets...
+#
+
+libs:
+
+
+#
+# Make unit tests...
+#
+
+unittests:     $(UNITTESTS)
+
+
 #
 # Clean all object files...
 #
 
 clean:
-       $(RM) $(OBJS) $(TARGETS) $(LIBOBJS) http
+       $(RM) $(OBJS) $(TARGETS) $(UNITTESTS) $(LIBOBJS) http https ipps mdns
 
 
 #
@@ -67,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; \
@@ -75,8 +118,14 @@ 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; \
+       fi
        if test "x$(SYMROOT)" != "x"; then \
                $(INSTALL_DIR) $(SYMROOT); \
                for file in $(TARGETS); do \
@@ -84,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...
@@ -104,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)
 
@@ -116,30 +181,31 @@ uninstall:
 # test1284
 #
 
-test1284:      test1284.o ../cups/libcups.a
+test1284:      test1284.o ../cups/$(LIBCUPSSTATIC)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o test1284 test1284.o ../cups/libcups.a \
-               $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
+       $(CC) $(LDFLAGS) -o test1284 test1284.o ../cups/$(LIBCUPSSTATIC) \
+               $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
 
 
 #
 # testbackend
 #
 
-testbackend:   testbackend.o ../cups/libcups.a
+testbackend:   testbackend.o ../cups/$(LIBCUPSSTATIC)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o testbackend testbackend.o ../cups/libcups.a \
-               $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
+       $(CC) $(LDFLAGS) -o testbackend testbackend.o ../cups/$(LIBCUPSSTATIC) \
+               $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
 
 
 #
 # testsupplies
 #
 
-testsupplies:  testsupplies.o libbackend.a ../cups/libcups.a
+testsupplies:  testsupplies.o libbackend.a ../cups/$(LIBCUPSSTATIC)
        echo Linking $@...
        $(CC) $(LDFLAGS) -o testsupplies testsupplies.o libbackend.a \
-               ../cups/libcups.a $(LIBGSSAPI) $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
+               ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
+               $(COMMONLIBS) $(LIBZ)
 
 
 #
@@ -154,61 +220,34 @@ libbackend.a:     $(LIBOBJS)
 
 
 #
-# ipp
-#
-
-ipp:   ipp.o ../cups/$(LIBCUPS)
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o ipp ipp.o $(LIBS)
-       $(RM) http
-       $(LN) ipp http
-
-
-#
-# lpd
-#
-
-lpd:   lpd.o ../cups/$(LIBCUPS)
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o lpd lpd.o $(LIBS)
-
-
-#
-# pap
+# dnssd
 #
 
-pap:   pap.o ../cups/$(LIBCUPS)
+dnssd: dnssd.o ../cups/$(LIBCUPS) libbackend.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o pap pap.o $(BACKLIBS) $(LIBS) -framework AppleTalk
+       $(CC) $(LDFLAGS) -o dnssd dnssd.o libbackend.a $(LIBS)
+       $(RM) mdns
+       $(LN) dnssd mdns
 
 
 #
-# parallel
-#
-
-parallel:      parallel.o ../cups/$(LIBCUPS) libbackend.a
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o parallel parallel.o libbackend.a $(LIBS)
-
-
-#
-# scsi
+# ipp
 #
 
-scsi:  scsi.o ../cups/$(LIBCUPS)
+ipp:   ipp.o ../cups/$(LIBCUPS) libbackend.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o scsi scsi.o $(LIBS)
-
-scsi.o:        scsi.c scsi-irix.c scsi-linux.c
+       $(CC) $(LDFLAGS) -o ipp ipp.o libbackend.a $(LIBS)
+       $(RM) http
+       $(LN) ipp http
 
 
 #
-# serial
+# lpd
 #
 
-serial:        serial.o ../cups/$(LIBCUPS) libbackend.a
+lpd:   lpd.o ../cups/$(LIBCUPS) libbackend.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o serial serial.o libbackend.a $(BACKLIBS) $(LIBS)
+       $(CC) $(LDFLAGS) -o lpd lpd.o libbackend.a $(LIBS)
 
 
 #
@@ -235,8 +274,9 @@ socket:     socket.o ../cups/$(LIBCUPS) libbackend.a
 
 usb:   usb.o ../cups/$(LIBCUPS) libbackend.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o usb usb.o libbackend.a $(BACKLIBS) $(LIBS)
-usb.o: usb.c usb-darwin.c usb-unix.c
+       $(CC) $(LDFLAGS) -o usb usb.o libbackend.a $(LIBUSB) \
+               $(BACKLIBS) $(LIBS)
+usb.o: usb.c usb-darwin.c usb-libusb.c usb-unix.c
 
 
 #
@@ -247,5 +287,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile 6778 2007-08-08 19:27:51Z mike $".
+# End of "$Id: Makefile 7924 2008-09-10 17:36:13Z mike $".
 #