2 # IPP test makefile for CUPS.
4 # Copyright 2007-2019 by Apple Inc.
5 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more information.
34 create-printer-subscription.
test \
35 get-completed-jobs.
test \
37 get-notifications.
test \
38 get-printer-attributes.
test \
39 get-printer-attributes-suite.
test \
40 get-subscriptions.
test \
47 print-job-deflate.
test \
72 # Make library targets...
86 # Clean all object files...
90 $(RM
) $(TARGETS
) $(OBJS
)
91 $(RM
) ippeveprinter-static ippfind-static 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
) ippeveprinter
$(BINDIR
)
132 if
test -x ippfind
; then \
133 $(INSTALL_BIN
) ippfind
$(BINDIR
); \
135 $(INSTALL_BIN
) ipptool
$(BINDIR
)
136 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/ippeveprinter
137 for file in
$(IPPEVECOMMANDS
); do \
138 $(INSTALL_BIN
) $$file $(SERVERBIN
)/ippeveprinter
; \
140 if
test "x$(SYMROOT)" != "x"; then \
141 $(INSTALL_DIR
) $(SYMROOT
); \
142 cp ippeveprinter
$(SYMROOT
); \
143 dsymutil
$(SYMROOT
)/ippeveprinter
; \
144 if
test -x ippfind
; then \
145 cp ippfind
$(SYMROOT
); \
146 dsymutil
$(SYMROOT
)/ippfind
; \
148 cp ipptool
$(SYMROOT
); \
149 dsymutil
$(SYMROOT
)/ipptool
; \
161 # Install libraries...
168 # Unnstall all targets...
172 echo Uninstalling sample ipptool files from
$(DATADIR
)/ipptool...
173 for file in ippeveprinter ippfind ipptool
; do \
174 $(RM
) $(BINDIR
)/$$file; \
177 for file in
$(IPPEVECOMMANDS
); do \
178 $(RM
) $(SERVERBIN
)/ippeveprinter
/$$file; \
180 -$(RMDIR
) $(SERVERBIN
)/ippeveprinter
181 for file in
$(DATAFILES
); do \
182 $(RM
) $(DATADIR
)/ipptool
/$$file; \
184 for file in
$(TESTFILES
); do \
185 $(RM
) $(DATADIR
)/ipptool
/$$file; \
187 -$(RMDIR
) $(DATADIR
)/ipptool
191 # Local programs (not built when cross-compiling...)
194 local
: ippeveprinter-static ipptool-static
201 ippeveprinter
: ippeveprinter.o ..
/cups
/$(LIBCUPSSTATIC
)
203 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ippeveprinter.o
$(LIBS
)
204 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
208 # ippeveprinter-static
211 ippeveprinter-static
: ippeveprinter.o ..
/cups
/$(LIBCUPS
)
213 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ippeveprinter.o ..
/cups
/$(LIBCUPSSTATIC
) \
214 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
215 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
222 ippevepcl
: ippevepcl.o ..
/cups
/$(LIBCUPS
)
224 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ippevepcl.o
$(LIBS
)
225 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
232 ippeveps
: ippeveps.o ..
/cups
/$(LIBCUPS
)
234 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ippeveps.o
$(LIBS
)
235 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
242 ippfind
: ippfind.o ..
/cups
/$(LIBCUPS
)
244 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ippfind.o
$(LIBS
)
245 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
252 ippfind-static
: ippfind.o ..
/cups
/$(LIBCUPSSTATIC
)
254 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ippfind.o ..
/cups
/$(LIBCUPSSTATIC
) \
255 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
256 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
263 ipptool
: ipptool.o ..
/cups
/$(LIBCUPS
)
265 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ipptool.o
$(LIBS
)
266 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
273 ipptool-static
: ipptool.o ..
/cups
/$(LIBCUPSSTATIC
)
275 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ipptool.o ..
/cups
/$(LIBCUPSSTATIC
) \
276 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
277 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
284 printer-png.h
: printer.png
285 echo
"Generating printer-png.h from printer.png..."
286 echo
"static const unsigned char printer_png[] =" >printer-png.h
287 echo
"{" >>printer-png.h
288 od
-t x1 printer.png | cut
-b12- | awk
'{printf(" "); for (i = 1; i <= NF; i ++) printf("0x%s,", $$i); print "";}' >>printer-png.h
289 echo
"};" >>printer-png.h