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 \
75 # Make library targets...
89 # Clean all object files...
93 $(RM
) $(TARGETS
) $(OBJS
)
97 # Update dependencies (without system header dependencies...)
101 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
105 # Install all targets...
108 install: all install-data install-headers install-libs install-exec
112 # Install data files...
116 echo Installing sample ipptool files in
$(DATADIR
)/ipptool...
117 $(INSTALL_DIR
) -m
755 $(DATADIR
)/ipptool
118 for file in
$(DATAFILES
); do \
119 $(INSTALL_COMPDATA
) $$file $(DATADIR
)/ipptool
; \
121 for file in
$(TESTFILES
); do \
122 $(INSTALL_DATA
) $$file $(DATADIR
)/ipptool
; \
127 # Install programs...
131 echo Installing ipptool in
$(BINDIR
)...
132 $(INSTALL_DIR
) -m
755 $(BINDIR
)
133 $(INSTALL_BIN
) ipptool
$(BINDIR
)
134 if
test "x$(SYMROOT)" != "x"; then \
135 $(INSTALL_DIR
) $(SYMROOT
); \
136 cp ipptool
$(SYMROOT
); \
137 dsymutil
$(SYMROOT
)/ipptool
; \
149 # Install libraries...
156 # Unnstall all targets...
160 echo Uninstalling sample ipptool files from
$(DATADIR
)/ipptool...
161 for file in
$(DATAFILES
); do \
162 $(RM
) $(DATADIR
)/ipptool
/$$file; \
164 for file in
$(TESTFILES
); do \
165 $(RM
) $(DATADIR
)/ipptool
/$$file; \
167 -$(RMDIR
) $(DATADIR
)/ipptool
174 ippfind
: ippfind.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSSTATIC
)
176 $(CC
) $(LDFLAGS
) -o
$@ ippfind.o
$(LIBS
)
177 echo Linking
$@
-static...
178 $(CC
) $(LDFLAGS
) -o
$@
-static ippfind.o ..
/cups
/$(LIBCUPSSTATIC
) \
179 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
186 ippserver
: ippserver.o ..
/cups
/$(LIBCUPSSTATIC
)
188 $(CC
) $(LDFLAGS
) -o
$@ ippserver.o ..
/cups
/$(LIBCUPSSTATIC
) \
189 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
196 ippserver-shared
: ippserver.o ..
/cups
/$(LIBCUPS
)
198 $(CC
) $(LDFLAGS
) -o
$@ ippserver.o
$(LIBS
)
205 ipptool
: ipptool.o ..
/cups
/$(LIBCUPS
)
207 $(CC
) $(LDFLAGS
) -o
$@ ipptool.o
$(LIBS
)
214 ipptool-static
: ipptool.o ..
/cups
/$(LIBCUPSSTATIC
)
216 $(CC
) $(LDFLAGS
) -o
$@ ipptool.o ..
/cups
/$(LIBCUPSSTATIC
) \
217 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
224 xmltotest
: xmltotest.o ..
/cups
/$(LIBUPSSTATIC
)
226 $(CC
) $(LDFLAGS
) -o
$@ xmltotest.o ..
/cups
/$(LIBCUPSSTATIC
) \
227 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
) \