2 # "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $"
4 # IPP test makefile for CUPS.
6 # Copyright 2007-2012 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 \
51 print-job-deflate.
test \
71 # Make library targets...
85 # Clean all object files...
89 $(RM
) $(TARGETS
) $(OBJS
)
93 # Update dependencies (without system header dependencies...)
97 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
101 # Install all targets...
104 install: all install-data install-headers install-libs install-exec
108 # Install data files...
112 echo Installing sample ipptool files in
$(DATADIR
)/ipptool...
113 $(INSTALL_DIR
) -m
755 $(DATADIR
)/ipptool
114 for file in
$(DATAFILES
); do \
115 $(INSTALL_COMPDATA
) $$file $(DATADIR
)/ipptool
; \
117 for file in
$(TESTFILES
); do \
118 $(INSTALL_DATA
) $$file $(DATADIR
)/ipptool
; \
123 # Install programs...
127 echo Installing ipptool in
$(BINDIR
)...
128 $(INSTALL_DIR
) -m
755 $(BINDIR
)
129 $(INSTALL_BIN
) ipptool
$(BINDIR
)
130 if
test "x$(SYMROOT)" != "x"; then \
131 $(INSTALL_DIR
) $(SYMROOT
); \
132 cp ipptool
$(SYMROOT
); \
133 dsymutil
$(SYMROOT
)/ipptool
; \
145 # Install libraries...
152 # Unnstall all targets...
156 echo Uninstalling sample ipptool files from
$(DATADIR
)/ipptool...
157 for file in
$(DATAFILES
); do \
158 $(RM
) $(DATADIR
)/ipptool
/$$file; \
160 for file in
$(TESTFILES
); do \
161 $(RM
) $(DATADIR
)/ipptool
/$$file; \
163 -$(RMDIR
) $(DATADIR
)/ipptool
170 ippserver
: ippserver.o ..
/cups
/$(LIBCUPSSTATIC
)
172 $(CC
) $(LDFLAGS
) -o
$@ ippserver.o ..
/cups
/$(LIBCUPSSTATIC
) \
173 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
180 ippserver-shared
: ippserver.o ..
/cups
/$(LIBCUPS
)
182 $(CC
) $(LDFLAGS
) -o
$@ ippserver.o
$(LIBS
)
189 ipptool
: ipptool.o ..
/cups
/$(LIBCUPS
)
191 $(CC
) $(LDFLAGS
) -o
$@ ipptool.o
$(LIBS
)
198 ipptool-static
: ipptool.o ..
/cups
/$(LIBCUPSSTATIC
)
200 $(CC
) $(LDFLAGS
) -o
$@ ipptool.o ..
/cups
/$(LIBCUPSSTATIC
) \
201 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
)
208 xmltotest
: xmltotest.o ..
/cups
/$(LIBUPSSTATIC
)
210 $(CC
) $(LDFLAGS
) -o
$@ xmltotest.o ..
/cups
/$(LIBCUPSSTATIC
) \
211 $(LIBGSSAPI
) $(SSLLIBS
) $(DNSSDLIBS
) $(COMMONLIBS
) $(LIBZ
) \
223 # End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".