2 # IPP test makefile for CUPS.
4 # Copyright 2007-2016 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
) ippfind-static ippserver-shared
94 # Update dependencies (without system header dependencies...)
98 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
102 # Install all targets...
105 install: all install-data install-headers install-libs install-exec
109 # Install data files...
113 echo Installing sample ipptool files in
$(DATADIR
)/ipptool...
114 $(INSTALL_DIR
) -m
755 $(DATADIR
)/ipptool
115 for file in
$(DATAFILES
); do \
116 $(INSTALL_COMPDATA
) $$file $(DATADIR
)/ipptool
; \
118 for file in
$(TESTFILES
); do \
119 $(INSTALL_DATA
) $$file $(DATADIR
)/ipptool
; \
124 # Install programs...
128 echo Installing ipptool in
$(BINDIR
)...
129 $(INSTALL_DIR
) -m
755 $(BINDIR
)
130 $(INSTALL_BIN
) ipptool
$(BINDIR
)
131 if
test -x ippfind
; then \
132 $(INSTALL_BIN
) ippfind
$(BINDIR
); \
134 if
test "x$(SYMROOT)" != "x"; then \
135 $(INSTALL_DIR
) $(SYMROOT
); \
136 cp ippfind
$(SYMROOT
); \
137 dsymutil
$(SYMROOT
)/ippfind
; \
138 cp ipptool
$(SYMROOT
); \
139 dsymutil
$(SYMROOT
)/ipptool
; \
151 # Install libraries...
158 # Unnstall all targets...
162 echo Uninstalling sample ipptool files from
$(DATADIR
)/ipptool...
163 for file in
$(DATAFILES
); do \
164 $(RM
) $(DATADIR
)/ipptool
/$$file; \
166 for file in
$(TESTFILES
); do \
167 $(RM
) $(DATADIR
)/ipptool
/$$file; \
169 -$(RMDIR
) $(DATADIR
)/ipptool
176 ippfind
: ippfind.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSSTATIC
)
178 $(CC
) $(LDFLAGS
) -o
$@ ippfind.o
$(LIBS
)
179 echo Linking
$@
-static...
180 $(CC
) $(LDFLAGS
) -o
$@
-static ippfind.o ..
/cups
/$(LIBCUPSSTATIC
) \
181 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
188 ippserver
: ippserver.o ..
/cups
/$(LIBCUPSSTATIC
)
190 $(CC
) $(LDFLAGS
) -o
$@ ippserver.o ..
/cups
/$(LIBCUPSSTATIC
) \
191 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
198 ippserver-shared
: ippserver.o ..
/cups
/$(LIBCUPS
)
200 $(CC
) $(LDFLAGS
) -o
$@ ippserver.o
$(LIBS
)
207 ipptool
: ipptool.o ..
/cups
/$(LIBCUPS
)
209 $(CC
) $(LDFLAGS
) -o
$@ ipptool.o
$(LIBS
)
216 ipptool-static
: ipptool.o ..
/cups
/$(LIBCUPSSTATIC
)
218 $(CC
) $(LDFLAGS
) -o
$@ ipptool.o ..
/cups
/$(LIBCUPSSTATIC
) \
219 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)