#
# IPP test makefile for CUPS.
#
-# Copyright 2007-2016 by Apple Inc.
+# Copyright 2007-2017 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
$(IPPFIND_BIN) \
ippserver \
ipptool \
- ipptool-static
+ $(LOCALTARGET)
#
#
clean:
- $(RM) $(TARGETS) $(OBJS) ippfind-static ippserver-shared
+ $(RM) $(TARGETS) $(OBJS)
+ $(RM) ippserver ippserver-shared ipptool-static
#
-$(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 $@...
- $(CC) $(LDFLAGS) -o $@ ippfind.o $(LIBS)
+ $(LD_CC) $(LDFLAGS) -o $@ ippfind.o $(LIBS)
echo Linking $@-static...
- $(CC) $(LDFLAGS) -o $@-static ippfind.o ../cups/$(LIBCUPSSTATIC) \
+ $(LD_CC) $(LDFLAGS) -o $@-static ippfind.o ../cups/$(LIBCUPSSTATIC) \
$(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
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)
ippserver-shared: ippserver.o ../cups/$(LIBCUPS)
echo Linking $@...
- $(CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS)
+ $(LD_CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS)
#
ipptool: ipptool.o ../cups/$(LIBCUPS)
echo Linking $@...
- $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
+ $(LD_CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
#
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)