]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/Makefile
Merge changes from CUPS 1.4svn-r7874.
[thirdparty/cups.git] / backend / Makefile
index ff3cdcf3a90ab28c5f8fd60365f381416b31ca74..bb9d0f8dc75dcf188415f28ba0e8d05eb84bc093 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: Makefile 6778 2007-08-08 19:27:51Z mike $"
+# "$Id: Makefile 7687 2008-06-24 01:28:36Z mike $"
 #
 #   Backend makefile for the Common UNIX Printing System (CUPS).
 #
 
 include ../Makedefs
 
-RBACKENDS =    ipp lpd
+RBACKENDS =    ipp lpd $(MDNS)
 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
+LIBOBJS        =       ieee1284.o network.o runloop.o snmp-supplies.o
+OBJS   =       ipp.o lpd.o mdns.o pap.o parallel.o scsi.o serial.o snmp.o \
+               socket.o test1284.o testbackend.o testsupplies.o usb.o
 
 
 #
@@ -33,6 +33,20 @@ 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:
+
+
 #
 # Clean all object files...
 #
@@ -70,7 +84,7 @@ install-data:
 install-exec:
        $(INSTALL_DIR) -m 755 $(SERVERBIN)/backend
        for file in $(RBACKENDS); do \
-               $(LIBTOOL) $(INSTALL) -m 700 $$file $(SERVERBIN)/backend; \
+               $(LIBTOOL) $(INSTALL_BIN) -m 700 $$file $(SERVERBIN)/backend; \
        done
        for file in $(UBACKENDS); do \
                $(INSTALL_BIN) $$file $(SERVERBIN)/backend; \
@@ -119,7 +133,7 @@ uninstall:
 test1284:      test1284.o ../cups/libcups.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o test1284 test1284.o ../cups/libcups.a \
-               $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
+               $(LIBGSSAPI) $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
 
 
 #
@@ -129,7 +143,7 @@ test1284:   test1284.o ../cups/libcups.a
 testbackend:   testbackend.o ../cups/libcups.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o testbackend testbackend.o ../cups/libcups.a \
-               $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
+               $(LIBGSSAPI) $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
 
 
 #
@@ -157,9 +171,9 @@ libbackend.a:       $(LIBOBJS)
 # ipp
 #
 
-ipp:   ipp.o ../cups/$(LIBCUPS)
+ipp:   ipp.o ../cups/$(LIBCUPS) libbackend.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o ipp ipp.o $(LIBS)
+       $(CC) $(LDFLAGS) -o ipp ipp.o libbackend.a $(LIBS)
        $(RM) http
        $(LN) ipp http
 
@@ -168,9 +182,18 @@ ipp:       ipp.o ../cups/$(LIBCUPS)
 # lpd
 #
 
-lpd:   lpd.o ../cups/$(LIBCUPS)
+lpd:   lpd.o ../cups/$(LIBCUPS) libbackend.a
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o lpd lpd.o libbackend.a $(LIBS)
+
+
+#
+# mdns
+#
+
+mdns:  mdns.o ../cups/$(LIBCUPS) libbackend.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o lpd lpd.o $(LIBS)
+       $(CC) $(LDFLAGS) -o mdns mdns.o libbackend.a $(LIBS)
 
 
 #
@@ -235,8 +258,8 @@ 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 +270,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile 6778 2007-08-08 19:27:51Z mike $".
+# End of "$Id: Makefile 7687 2008-06-24 01:28:36Z mike $".
 #