]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/Makefile
Import changes from CUPS 1.5svn-r9085.
[thirdparty/cups.git] / test / Makefile
index 86d3ad2dd13630d130a59c5b3ecbd5f85ab18255..f621fa66c39ee9add8dc2208f6252d1dc14e1f0b 100644 (file)
@@ -1,35 +1,57 @@
 #
-# "$Id: Makefile 4950 2006-01-19 16:07:57Z mike $"
+# "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $"
 #
-#   IPP test makefile for the Common UNIX Printing System (CUPS).
+#   IPP test makefile for CUPS.
 #
-#   Copyright 1997-2005 by Easy Software Products, all rights reserved.
+#   Copyright 2007-2010 by Apple Inc.
+#   Copyright 1997-2006 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:
+#   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/".
 #
-#       Attn: CUPS Licensing Information
-#       Easy Software Products
-#       44141 Airport View Drive, Suite 204
-#       Hollywood, Maryland 20636 USA
+
+include ../Makedefs
+
+
 #
-#       Voice: (301) 373-9600
-#       EMail: cups-info@cups.org
-#         WWW: http://www.cups.org
+# Sample test files.
 #
 
-include ../Makedefs
+TESTFILES      =       \
+                       create-printer-subscription.test \
+                       get-completed-jobs.test \
+                       get-jobs.test \
+                       ipp-1.1.test \
+                       ipp-2.0.test \
+                       ipp-2.1.test \
+                       testfile.jpg \
+                       testfile.pdf \
+                       testfile.ps \
+                       testfile.txt
 
 
 #
 # Make all targets...
 #
 
-all:   ipptest
+all:   ipptool ipptool-static
+
+
+#
+# Make library targets...
+#
+
+libs:
+
+
+#
+# Make unit tests...
+#
+
+unittests:
 
 
 #
@@ -37,7 +59,7 @@ all:  ipptest
 #
 
 clean:
-       $(RM) ipptest ipptest.o
+       $(RM) ipptool ipptool.o ipptool-static
 
 
 #
@@ -45,24 +67,80 @@ clean:
 #
 
 depend:
-       makedepend -Y -I.. -fDependencies ipptest.c >/dev/null 2>&1
+       makedepend -Y -I.. -fDependencies ipptool.c >/dev/null 2>&1
 
 
 #
 # Install all targets...
 #
 
-install: all
+install:       all install-data install-headers install-libs install-exec
+
+
+#
+# Install data files...
+#
+
+install-data:
+       echo Installing sample ipptool files in $(DATADIR)/ipptool...
+       $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool
+       for file in $(TESTFILES); do \
+               $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \
+       done
+
+
+#
+# Install programs...
+#
+
+install-exec:
+       echo Installing ipptool in $(BINDIR)...
+       $(INSTALL_DIR) -m 755 $(BINDIR)
+       $(INSTALL_BIN) ipptool $(BINDIR)
+       if test "x$(SYMROOT)" != "x"; then \
+               $(INSTALL_DIR) $(SYMROOT); \
+               cp ipptool $(SYMROOT); \
+       fi
+
+
+#
+# Install headers...
+#
+
+install-headers:
+
+
+#
+# Install libraries...
+#
+
+install-libs:
+
+
+#
+# Unnstall all targets...
+#
+
+uninstall:
+
+
+#
+# ipptool
+#
+
+ipptool:       ipptool.o ../cups/$(LIBCUPS)
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
 
 
 #
-# ipptest
+# ipptool-static
 #
 
-ipptest:       ipptest.o ../cups/libcups.a
+ipptool-static:        ipptool.o ../cups/$(LIBCUPSSTATIC)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o ipptest ipptest.o  ../cups/libcups.a \
-               $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
+       $(CC) $(LDFLAGS) -o $@ ipptool.o  ../cups/$(LIBCUPSSTATIC) \
+               $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
 
 
 #
@@ -73,5 +151,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile 4950 2006-01-19 16:07:57Z mike $".
+# End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".
 #