]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/Makefile
Add code signing for macOS Mojave.
[thirdparty/cups.git] / test / Makefile
index aef5c1b32a3333df09241902b259871ec346f15a..41a5605ac7d264731c6de25cc0804216356efb42 100644 (file)
@@ -1,16 +1,10 @@
 #
-# "$Id$"
+# 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-2014 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
@@ -54,16 +48,13 @@ TESTFILES   =       \
                        validate-job.test
 OBJS           =       \
                        ippfind.o \
-                       ippinfra.o \
-                       ippproxy.o \
                        ippserver.o \
-                       ipptool.o \
-                       xmltotest.o
+                       ipptool.o
 TARGETS                =       \
                        $(IPPFIND_BIN) \
                        ippserver \
                        ipptool \
-                       ipptool-static
+                       $(LOCALTARGET)
 
 
 #
@@ -92,7 +83,8 @@ unittests:
 #
 
 clean:
-       $(RM) $(TARGETS) $(OBJS) ippfind-static ippinfra ippinfra-shared ippproxy ippproxy-shared ippserver-shared
+       $(RM) $(TARGETS) $(OBJS)
+       $(RM) ippfind-static ippserver ippserver-shared ipptool-static
 
 
 #
@@ -175,53 +167,26 @@ uninstall:
 
 
 #
-# ippfind
+# Local programs (not built when cross-compiling...)
 #
 
-ippfind:       ippfind.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSSTATIC)
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ ippfind.o $(LIBS)
-       echo Linking $@-static...
-       $(CC) $(LDFLAGS) -o $@-static ippfind.o  ../cups/$(LIBCUPSSTATIC) \
-               $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
+local: ippserver ippserver-shared ipptool-static
 
 
 #
-# ippinfra
-#
-
-ippinfra:      ippinfra.o ../cups/$(LIBCUPSSTATIC)
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ ippinfra.o  ../cups/$(LIBCUPSSTATIC) \
-               $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
-
-
-#
-# ippinfra-shared
+# ippfind
 #
 
-ippinfra-shared:       ippinfra.o ../cups/$(LIBCUPS)
+ippfind:       ippfind.o ../cups/$(LIBCUPS)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ ippinfra.o $(LIBS)
-
+       $(LD_CC) $(LDFLAGS) -o $@ ippfind.o $(LIBS)
+       $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
 
-#
-# ippproxy
-#
-
-ippproxy:      ippproxy.o ../cups/$(LIBCUPSSTATIC)
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ ippproxy.o  ../cups/$(LIBCUPSSTATIC) \
+ippfind-static:        ippfind.o ../cups/$(LIBCUPSSTATIC)
+       echo Linking $@
+       $(LD_CC) $(LDFLAGS) -o $@ ippfind.o  ../cups/$(LIBCUPSSTATIC) \
                $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
-
-
-#
-# ippproxy-shared
-#
-
-ippproxy-shared:       ippproxy.o ../cups/$(LIBCUPS)
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ ippproxy.o $(LIBS)
+       $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
 
 
 #
@@ -230,8 +195,9 @@ ippproxy-shared:    ippproxy.o ../cups/$(LIBCUPS)
 
 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)
+       $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
 
 
 #
@@ -240,7 +206,8 @@ 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)
+       $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
 
 
 #
@@ -249,7 +216,8 @@ 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)
+       $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
 
 
 #
@@ -258,19 +226,9 @@ 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)
+       $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
 
 
 #
@@ -278,8 +236,3 @@ xmltotest: xmltotest.o ../cups/$(LIBUPSSTATIC)
 #
 
 include Dependencies
-
-
-#
-# End of "$Id$".
-#