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-subscriptions.
test \
46 print-job-deflate.
test \
68 # Make library targets...
82 # Clean all object files...
86 $(RM
) $(TARGETS
) $(OBJS
)
87 $(RM
) ippeveprinter-static ippfind-static ipptool-static
91 # Update dependencies (without system header dependencies...)
95 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
99 # Install all targets...
102 install: all install-data install-headers install-libs install-exec
106 # Install data files...
110 echo Installing sample ipptool files in
$(DATADIR
)/ipptool...
111 $(INSTALL_DIR
) -m
755 $(DATADIR
)/ipptool
112 for file in
$(DATAFILES
); do \
113 $(INSTALL_COMPDATA
) $$file $(DATADIR
)/ipptool
; \
115 for file in
$(TESTFILES
); do \
116 $(INSTALL_DATA
) $$file $(DATADIR
)/ipptool
; \
121 # Install programs...
125 echo Installing ipptool in
$(BINDIR
)...
126 $(INSTALL_DIR
) -m
755 $(BINDIR
)
127 $(INSTALL_BIN
) ippeveprinter
$(BINDIR
)
128 if
test -x ippfind
; then \
129 $(INSTALL_BIN
) ippfind
$(BINDIR
); \
131 $(INSTALL_BIN
) ipptool
$(BINDIR
)
132 if
test "x$(SYMROOT)" != "x"; then \
133 $(INSTALL_DIR
) $(SYMROOT
); \
134 cp ippeveprinter
$(SYMROOT
); \
135 dsymutil
$(SYMROOT
)/ippeveprinter
; \
136 if
test -x ippfind
; then \
137 cp ippfind
$(SYMROOT
); \
138 dsymutil
$(SYMROOT
)/ippfind
; \
140 cp ipptool
$(SYMROOT
); \
141 dsymutil
$(SYMROOT
)/ipptool
; \
153 # Install libraries...
160 # Unnstall all targets...
164 echo Uninstalling sample ipptool files from
$(DATADIR
)/ipptool...
165 for file in ippeveprinter ippfind ipptool
; do \
166 $(RM
) $(BINDIR
)/$$file; \
169 for file in
$(DATAFILES
); do \
170 $(RM
) $(DATADIR
)/ipptool
/$$file; \
172 for file in
$(TESTFILES
); do \
173 $(RM
) $(DATADIR
)/ipptool
/$$file; \
175 -$(RMDIR
) $(DATADIR
)/ipptool
179 # Local programs (not built when cross-compiling...)
182 #local: ippeveprinter-static ipptool-static
183 local
: ipptool-static
190 ippeveprinter
: ippeveprinter.o ..
/cups
/$(LIBCUPSSTATIC
)
192 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ippeveprinter.o
$(LIBS
)
193 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
197 # ippeveprinter-static
200 ippeveprinter-static
: ippeveprinter.o ..
/cups
/$(LIBCUPS
)
202 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ippeveprinter.o ..
/cups
/$(LIBCUPSSTATIC
) \
203 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
204 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
211 ippfind
: ippfind.o ..
/cups
/$(LIBCUPS
)
213 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ippfind.o
$(LIBS
)
214 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
221 ippfind-static
: ippfind.o ..
/cups
/$(LIBCUPSSTATIC
)
223 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ippfind.o ..
/cups
/$(LIBCUPSSTATIC
) \
224 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
225 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
232 ipptool
: ipptool.o ..
/cups
/$(LIBCUPS
)
234 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ipptool.o
$(LIBS
)
235 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
242 ipptool-static
: ipptool.o ..
/cups
/$(LIBCUPSSTATIC
)
244 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ ipptool.o ..
/cups
/$(LIBCUPSSTATIC
) \
245 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
246 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@