]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/Makefile
Merge changes from CUPS 1.4svn-r7874.
[thirdparty/cups.git] / backend / Makefile
index 2ea79f15c8233f7ff5a4fc1c300c24327eec16a3..bb9d0f8dc75dcf188415f28ba0e8d05eb84bc093 100644 (file)
@@ -1,37 +1,29 @@
 #
-# "$Id: Makefile 6061 2006-10-23 00:26:52Z mike $"
+# "$Id: Makefile 7687 2008-06-24 01:28:36Z mike $"
 #
 #   Backend makefile for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 1997-2006 by Easy Software Products, all rights reserved.
+#   Copyright 2007-2008 by Apple Inc.
+#   Copyright 1997-2007 by Easy Software Products, all rights reserved.
 #
 #   These coded instructions, statements, and computer programs are the
-#   property of Easy Software Products 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 missing or damaged please contact Easy Software Products
-#   at:
-#
-#       Attn: CUPS Licensing Information
-#       Easy Software Products
-#       44141 Airport View Drive, Suite 204
-#       Hollywood, Maryland 20636 USA
-#
-#       Voice: (301) 373-9600
-#       EMail: cups-info@cups.org
-#         WWW: http://www.cups.org
+#   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.
 #
 
 include ../Makedefs
 
-RBACKENDS =    ipp lpd
-UBACKENDS =    $(PAP) parallel scsi serial snmp socket usb
-TARGETS        =       betest test1284 libbackend.a $(RBACKENDS) $(UBACKENDS)
-LIBOBJS        =       ieee1284.o runloop.o
-OBJS   =       betest.o ipp.o lpd.o pap.o parallel.o scsi.o \
-               serial.o snmp.o socket.o test1284.o usb.o
+RBACKENDS =    ipp lpd $(MDNS)
+UBACKENDS =    $(PAP) $(LEGACY_BACKENDS) serial snmp socket usb
+TARGETS        =       test1284 testbackend testsupplies \
+               libbackend.a $(RBACKENDS) $(UBACKENDS)
+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
 
 
 #
@@ -41,6 +33,20 @@ OBJS =       betest.o ipp.o lpd.o pap.o parallel.o scsi.o \
 all:   $(TARGETS)
 
 
+#
+# Make library targets...
+#
+
+libs:
+
+
+#
+# Make unit tests...
+#
+
+unittests:
+
+
 #
 # Clean all object files...
 #
@@ -61,16 +67,50 @@ depend:
 # Install all targets...
 #
 
-install:       all
+install:       all install-data install-headers install-libs install-exec
+
+
+#
+# Install data files...
+#
+
+install-data:
+
+
+#
+# Install programs...
+#
+
+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; \
        done
        $(RM) $(SERVERBIN)/backend/http
        $(LN) ipp $(SERVERBIN)/backend/http
+       if test "x$(SYMROOT)" != "x"; then \
+               $(INSTALL_DIR) $(SYMROOT); \
+               for file in $(TARGETS); do \
+                       cp $$file $(SYMROOT); \
+               done \
+       fi
+
+
+#
+# Install headers...
+#
+
+install-headers:
+
+
+#
+# Install libraries...
+#
+
+install-libs:
 
 
 #
@@ -87,22 +127,33 @@ uninstall:
 
 
 #
-# betest
+# test1284
 #
 
-betest:        betest.o ../cups/$(LIBCUPS)
+test1284:      test1284.o ../cups/libcups.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o betest betest.o $(LIBS)
+       $(CC) $(LDFLAGS) -o test1284 test1284.o ../cups/libcups.a \
+               $(LIBGSSAPI) $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
 
 
 #
-# test1284
+# testbackend
 #
 
-test1284:      test1284.o ../cups/libcups.a
+testbackend:   testbackend.o ../cups/libcups.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o test1284 test1284.o ../cups/libcups.a \
-               $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
+       $(CC) $(LDFLAGS) -o testbackend testbackend.o ../cups/libcups.a \
+               $(LIBGSSAPI) $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
+
+
+#
+# testsupplies
+#
+
+testsupplies:  testsupplies.o libbackend.a ../cups/libcups.a
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o testsupplies testsupplies.o libbackend.a \
+               ../cups/libcups.a $(LIBGSSAPI) $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
 
 
 #
@@ -117,35 +168,32 @@ libbackend.a:     $(LIBOBJS)
 
 
 #
-# ieee1394
+# ipp
 #
 
-ieee1394:      ieee1394.o ieee1394-linux.o
+ipp:   ipp.o ../cups/$(LIBCUPS) libbackend.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o ieee1394 ieee1394.o ieee1394-linux.o -lraw1394 $(LIBS)
-
-ieee1394.o:            ieee1394.h
-ieee1394-linux.o:      ieee1394.h
+       $(CC) $(LDFLAGS) -o ipp ipp.o libbackend.a $(LIBS)
+       $(RM) http
+       $(LN) ipp http
 
 
 #
-# ipp
+# lpd
 #
 
-ipp:   ipp.o ../cups/$(LIBCUPS)
+lpd:   lpd.o ../cups/$(LIBCUPS) libbackend.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o ipp ipp.o $(LIBS)
-       $(RM) http
-       $(LN) ipp http
+       $(CC) $(LDFLAGS) -o lpd lpd.o libbackend.a $(LIBS)
 
 
 #
-# lpd
+# mdns
 #
 
-lpd:   lpd.o ../cups/$(LIBCUPS)
+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)
 
 
 #
@@ -210,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
 
 
 #
@@ -222,5 +270,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile 6061 2006-10-23 00:26:52Z mike $".
+# End of "$Id: Makefile 7687 2008-06-24 01:28:36Z mike $".
 #