2 # IPP test makefile for CUPS.
4 # Copyright 2007-2018 by Apple Inc.
5 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
7 # These coded instructions, statements, and computer programs are the
8 # property of Apple Inc. and are protected by Federal copyright
9 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 # which should have been included with this file. If this file is
11 # missing or damaged, see the license at "http://www.cups.org/".
38 create-printer-subscription.
test \
39 get-completed-jobs.
test \
41 get-notifications.
test \
42 get-printer-attributes.
test \
43 get-subscriptions.
test \
50 print-job-deflate.
test \
72 # Make library targets...
86 # Clean all object files...
90 $(RM
) $(TARGETS
) $(OBJS
)
91 $(RM
) ippfind-static ippserver ippserver-shared ipptool-static
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 ippfind
; then \
133 $(INSTALL_BIN
) ippfind
$(BINDIR
); \
135 if
test "x$(SYMROOT)" != "x"; then \
136 $(INSTALL_DIR
) $(SYMROOT
); \
137 cp ippfind
$(SYMROOT
); \
138 dsymutil
$(SYMROOT
)/ippfind
; \
139 cp ipptool
$(SYMROOT
); \
140 dsymutil
$(SYMROOT
)/ipptool
; \
152 # Install libraries...
159 # Unnstall all targets...
163 echo Uninstalling sample ipptool files from
$(DATADIR
)/ipptool...
164 for file in
$(DATAFILES
); do \
165 $(RM
) $(DATADIR
)/ipptool
/$$file; \
167 for file in
$(TESTFILES
); do \
168 $(RM
) $(DATADIR
)/ipptool
/$$file; \
170 -$(RMDIR
) $(DATADIR
)/ipptool
174 # Local programs (not built when cross-compiling...)
177 local
: ippserver ippserver-shared ipptool-static
184 ippfind
: ippfind.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSSTATIC
)
186 $(LD_CC
) $(LDFLAGS
) -o
$@ ippfind.o
$(LIBS
)
187 echo Linking
$@
-static...
188 $(LD_CC
) $(LDFLAGS
) -o
$@
-static ippfind.o ..
/cups
/$(LIBCUPSSTATIC
) \
189 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
196 ippserver
: ippserver.o ..
/cups
/$(LIBCUPSSTATIC
)
198 $(LD_CC
) $(LDFLAGS
) -o
$@ ippserver.o ..
/cups
/$(LIBCUPSSTATIC
) \
199 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
206 ippserver-shared
: ippserver.o ..
/cups
/$(LIBCUPS
)
208 $(LD_CC
) $(LDFLAGS
) -o
$@ ippserver.o
$(LIBS
)
215 ipptool
: ipptool.o ..
/cups
/$(LIBCUPS
)
217 $(LD_CC
) $(LDFLAGS
) -o
$@ ipptool.o
$(LIBS
)
224 ipptool-static
: ipptool.o ..
/cups
/$(LIBCUPSSTATIC
)
226 $(LD_CC
) $(LDFLAGS
) -o
$@ ipptool.o ..
/cups
/$(LIBCUPSSTATIC
) \
227 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)