]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/Makefile
Fix encoding of out-of-band values in ippserver output files.
[thirdparty/cups.git] / test / Makefile
index c72418dc3844564494c749167db694d7a19d9d40..1e1751630c6f90a882c77d5377647461fb1e2ac9 100644 (file)
@@ -1,16 +1,10 @@
 #
-# "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $"
+# IPP test makefile for CUPS.
 #
-#   IPP test makefile for CUPS.
+# Copyright 2007-2017 by Apple Inc.
+# Copyright 1997-2006 by Easy Software Products, all rights reserved.
 #
-#   Copyright 2007-2012 by Apple Inc.
-#   Copyright 1997-2006 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/".
+# Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
 #
 
 include ../Makedefs
@@ -40,19 +34,27 @@ TESTFILES   =       \
                        create-printer-subscription.test \
                        get-completed-jobs.test \
                        get-jobs.test \
+                       get-notifications.test \
                        get-printer-attributes.test \
+                       get-subscriptions.test \
                        ipp-1.1.test \
                        ipp-2.0.test \
                        ipp-2.1.test \
-                       ipp-2.2.test
+                       ipp-2.2.test \
+                       ipp-everywhere.test \
+                       print-job.test \
+                       print-job-deflate.test \
+                       print-job-gzip.test \
+                       validate-job.test
 OBJS           =       \
+                       ippfind.o \
                        ippserver.o \
-                       ipptool.o \
-                       xmltotest.o
+                       ipptool.o
 TARGETS                =       \
+                       $(IPPFIND_BIN) \
                        ippserver \
                        ipptool \
-                       ipptool-static
+                       $(LOCALTARGET)
 
 
 #
@@ -82,6 +84,7 @@ unittests:
 
 clean:
        $(RM) $(TARGETS) $(OBJS)
+       $(RM) ippserver ippserver-shared ipptool-static
 
 
 #
@@ -122,8 +125,13 @@ install-exec:
        echo Installing ipptool in $(BINDIR)...
        $(INSTALL_DIR) -m 755 $(BINDIR)
        $(INSTALL_BIN) ipptool $(BINDIR)
+       if test -x ippfind; then \
+               $(INSTALL_BIN) ippfind $(BINDIR); \
+       fi
        if test "x$(SYMROOT)" != "x"; then \
                $(INSTALL_DIR) $(SYMROOT); \
+               cp ippfind $(SYMROOT); \
+               dsymutil $(SYMROOT)/ippfind; \
                cp ipptool $(SYMROOT); \
                dsymutil $(SYMROOT)/ipptool; \
        fi
@@ -158,13 +166,32 @@ uninstall:
        -$(RMDIR) $(DATADIR)/ipptool
 
 
+#
+# Local programs (not built when cross-compiling...)
+#
+
+local: ippserver ippserver-shared ipptool-static
+
+
+#
+# ippfind
+#
+
+ippfind:       ippfind.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSSTATIC)
+       echo Linking $@...
+       $(LD_CC) $(LDFLAGS) -o $@ ippfind.o $(LIBS)
+       echo Linking $@-static...
+       $(LD_CC) $(LDFLAGS) -o $@-static ippfind.o  ../cups/$(LIBCUPSSTATIC) \
+               $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
+
+
 #
 # ippserver
 #
 
 ippserver:     ippserver.o ../cups/$(LIBCUPSSTATIC)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ ippserver.o  ../cups/$(LIBCUPSSTATIC) \
+       $(LD_CC) $(LDFLAGS) -o $@ ippserver.o  ../cups/$(LIBCUPSSTATIC) \
                $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
 
 
@@ -174,7 +201,7 @@ ippserver:  ippserver.o ../cups/$(LIBCUPSSTATIC)
 
 ippserver-shared:      ippserver.o ../cups/$(LIBCUPS)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS)
+       $(LD_CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS)
 
 
 #
@@ -183,7 +210,7 @@ ippserver-shared:   ippserver.o ../cups/$(LIBCUPS)
 
 ipptool:       ipptool.o ../cups/$(LIBCUPS)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
+       $(LD_CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
 
 
 #
@@ -192,28 +219,12 @@ ipptool:  ipptool.o ../cups/$(LIBCUPS)
 
 ipptool-static:        ipptool.o ../cups/$(LIBCUPSSTATIC)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ ipptool.o  ../cups/$(LIBCUPSSTATIC) \
+       $(LD_CC) $(LDFLAGS) -o $@ ipptool.o  ../cups/$(LIBCUPSSTATIC) \
                $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
 
 
-#
-# xmltotest
-#
-
-xmltotest: xmltotest.o ../cups/$(LIBUPSSTATIC)
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ xmltotest.o  ../cups/$(LIBCUPSSTATIC) \
-               $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) \
-               $(LIBMXML)
-
-
 #
 # Dependencies...
 #
 
 include Dependencies
-
-
-#
-# End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".
-#