4 # IPP test makefile for CUPS.
6 # Copyright 2007-2013 by Apple Inc.
7 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
9 # These coded instructions, statements, and computer programs are the
10 # property of Apple Inc. and are protected by Federal copyright
11 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 # which should have been included with this file. If this file is
13 # file is missing or damaged, see the license at "http://www.cups.org/".
40 create-printer-subscription.
test \
41 get-completed-jobs.
test \
43 get-notifications.
test \
44 get-printer-attributes.
test \
45 get-subscriptions.
test \
52 print-job-deflate.
test \
73 # Make library targets...
87 # Clean all object files...
91 $(RM
) $(TARGETS
) $(OBJS
)
95 # Update dependencies (without system header dependencies...)
99 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
103 # Install all targets...
106 install: all install-data install-headers install-libs install-exec
110 # Install data files...
114 echo Installing sample ipptool files in
$(DATADIR
)/ipptool...
115 $(INSTALL_DIR
) -m
755 $(DATADIR
)/ipptool
116 for file in
$(DATAFILES
); do \
117 $(INSTALL_COMPDATA
) $$file $(DATADIR
)/ipptool
; \
119 for file in
$(TESTFILES
); do \
120 $(INSTALL_DATA
) $$file $(DATADIR
)/ipptool
; \
125 # Install programs...
129 echo Installing ipptool in
$(BINDIR
)...
130 $(INSTALL_DIR
) -m
755 $(BINDIR
)
131 $(INSTALL_BIN
) ipptool
$(BINDIR
)
132 if
test "x$(SYMROOT)" != "x"; then \
133 $(INSTALL_DIR
) $(SYMROOT
); \
134 cp ipptool
$(SYMROOT
); \
135 dsymutil
$(SYMROOT
)/ipptool
; \
147 # Install libraries...
154 # Unnstall all targets...
158 echo Uninstalling sample ipptool files from
$(DATADIR
)/ipptool...
159 for file in
$(DATAFILES
); do \
160 $(RM
) $(DATADIR
)/ipptool
/$$file; \
162 for file in
$(TESTFILES
); do \
163 $(RM
) $(DATADIR
)/ipptool
/$$file; \
165 -$(RMDIR
) $(DATADIR
)/ipptool
172 ippserver
: ippserver.o ..
/cups
/$(LIBCUPSSTATIC
)
174 $(CC
) $(LDFLAGS
) -o
$@ ippserver.o ..
/cups
/$(LIBCUPSSTATIC
) \
175 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
182 ippserver-shared
: ippserver.o ..
/cups
/$(LIBCUPS
)
184 $(CC
) $(LDFLAGS
) -o
$@ ippserver.o
$(LIBS
)
191 ipptool
: ipptool.o ..
/cups
/$(LIBCUPS
)
193 $(CC
) $(LDFLAGS
) -o
$@ ipptool.o
$(LIBS
)
200 ipptool-static
: ipptool.o ..
/cups
/$(LIBCUPSSTATIC
)
202 $(CC
) $(LDFLAGS
) -o
$@ ipptool.o ..
/cups
/$(LIBCUPSSTATIC
) \
203 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
210 xmltotest
: xmltotest.o ..
/cups
/$(LIBUPSSTATIC
)
212 $(CC
) $(LDFLAGS
) -o
$@ xmltotest.o ..
/cups
/$(LIBCUPSSTATIC
) \
213 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
) \