]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/Makefile
Import changes from CUPS 1.5svn-r9085.
[thirdparty/cups.git] / test / Makefile
index 49fabb3ded7c41d00f7a33419f8b69b9b078cfaf..f621fa66c39ee9add8dc2208f6252d1dc14e1f0b 100644 (file)
@@ -1,9 +1,9 @@
 #
-# "$Id: Makefile 6649 2007-07-11 21:46:42Z 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 2007-2008 by Apple Inc.
+#   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
 include ../Makedefs
 
 
+#
+# Sample test files.
+#
+
+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:
 
 
 #
@@ -28,7 +59,7 @@ all:  ipptest
 #
 
 clean:
-       $(RM) ipptest ipptest.o
+       $(RM) ipptool ipptool.o ipptool-static
 
 
 #
@@ -36,7 +67,7 @@ clean:
 #
 
 depend:
-       makedepend -Y -I.. -fDependencies ipptest.c >/dev/null 2>&1
+       makedepend -Y -I.. -fDependencies ipptool.c >/dev/null 2>&1
 
 
 #
@@ -51,6 +82,11 @@ install:     all install-data install-headers install-libs install-exec
 #
 
 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
 
 
 #
@@ -58,6 +94,13 @@ install-data:
 #
 
 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
 
 
 #
@@ -82,13 +125,22 @@ uninstall:
 
 
 #
-# ipptest
+# ipptool
+#
+
+ipptool:       ipptool.o ../cups/$(LIBCUPS)
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
+
+
+#
+# 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 \
-               $(LIBGSSAPI) $(SSLLIBS) $(COMMONLIBS) $(LIBZ)
+       $(CC) $(LDFLAGS) -o $@ ipptool.o  ../cups/$(LIBCUPSSTATIC) \
+               $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
 
 
 #
@@ -99,5 +151,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".
+# End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".
 #