]> git.ipfire.org Git - thirdparty/cups.git/blame - test/Makefile
Merge changes from CUPS 1.6svn-r10188, including changes for <rdar://problem/10127258...
[thirdparty/cups.git] / test / Makefile
CommitLineData
ef416fc2 1#
b19ccc9e 2# "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $"
ef416fc2 3#
f8b3a85b 4# IPP test makefile for CUPS.
ef416fc2 5#
f8b3a85b 6# Copyright 2007-2010 by Apple Inc.
757d2cad 7# Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 8#
9# These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 14#
15
16include ../Makedefs
17
18
f8b3a85b
MS
19#
20# Sample test files.
21#
22
23TESTFILES = \
83e08001 24 color.jpg \
aaf19ab0 25 create-printer-subscription.test \
83e08001
MS
26 document-a4.pdf \
27 document-a4.ps \
28 document-letter.pdf \
29 document-letter.ps \
aaf19ab0
MS
30 get-completed-jobs.test \
31 get-jobs.test \
83e08001 32 gray.jpg \
f8b3a85b
MS
33 ipp-1.1.test \
34 ipp-2.0.test \
35 ipp-2.1.test \
83e08001
MS
36 ipp-2.2.test \
37 onepage-a4.pdf \
38 onepage-a4.ps \
39 onepage-letter.pdf \
40 onepage-letter.ps \
f8b3a85b
MS
41 testfile.jpg \
42 testfile.pdf \
43 testfile.ps \
44 testfile.txt
1106b00e
MS
45OBJS = \
46 ippserver.o \
9b66acc5
MS
47 ipptool.o \
48 xmltotest.o
1106b00e
MS
49TARGETS = \
50 ippserver \
51 ipptool \
52 ipptool-static
f8b3a85b
MS
53
54
ef416fc2 55#
56# Make all targets...
57#
58
1106b00e 59all: $(TARGETS)
ef416fc2 60
61
c9fc04c6
MS
62#
63# Make library targets...
64#
65
66libs:
67
68
5f64df29
MS
69#
70# Make unit tests...
71#
72
73unittests:
74
75
ef416fc2 76#
77# Clean all object files...
78#
79
80clean:
1106b00e 81 $(RM) $(TARGETS) $(OBJS)
ef416fc2 82
83
84#
85# Update dependencies (without system header dependencies...)
86#
87
88depend:
1106b00e 89 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
ef416fc2 90
91
92#
93# Install all targets...
94#
95
50fe7201
MS
96install: all install-data install-headers install-libs install-exec
97
98
99#
100# Install data files...
101#
102
103install-data:
aaf19ab0
MS
104 echo Installing sample ipptool files in $(DATADIR)/ipptool...
105 $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool
f8b3a85b 106 for file in $(TESTFILES); do \
aaf19ab0 107 $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \
f8b3a85b 108 done
50fe7201
MS
109
110
111#
112# Install programs...
113#
114
115install-exec:
aaf19ab0 116 echo Installing ipptool in $(BINDIR)...
f8b3a85b 117 $(INSTALL_DIR) -m 755 $(BINDIR)
aaf19ab0 118 $(INSTALL_BIN) ipptool $(BINDIR)
f8b3a85b
MS
119 if test "x$(SYMROOT)" != "x"; then \
120 $(INSTALL_DIR) $(SYMROOT); \
aaf19ab0 121 cp ipptool $(SYMROOT); \
f8b3a85b 122 fi
50fe7201
MS
123
124
125#
126# Install headers...
127#
128
129install-headers:
130
131
132#
133# Install libraries...
134#
135
136install-libs:
ef416fc2 137
138
757d2cad 139#
140# Unnstall all targets...
141#
142
143uninstall:
144
145
1106b00e
MS
146#
147# ippserver
148#
149
150ippserver: ippserver.o ../cups/$(LIBCUPSSTATIC)
151 echo Linking $@...
152 $(CC) $(LDFLAGS) -o $@ ippserver.o ../cups/$(LIBCUPSSTATIC) \
153 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
154
155
e60ec91f
MS
156#
157# ippserver-shared
158#
159
160ippserver-shared: ippserver.o ../cups/$(LIBCUPS)
161 echo Linking $@...
162 $(CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS)
163
164
ef416fc2 165#
aaf19ab0 166# ipptool
ef416fc2 167#
168
aaf19ab0 169ipptool: ipptool.o ../cups/$(LIBCUPS)
f8b3a85b 170 echo Linking $@...
aaf19ab0 171 $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
f8b3a85b
MS
172
173
174#
aaf19ab0 175# ipptool-static
f8b3a85b
MS
176#
177
aaf19ab0 178ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC)
ef416fc2 179 echo Linking $@...
aaf19ab0 180 $(CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \
c168a833 181 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
ef416fc2 182
183
9b66acc5
MS
184#
185# xmltotest
186#
187
188xmltotest: xmltotest.o ../cups/$(LIBUPSSTATIC)
189 echo Linking $@...
190 $(CC) $(LDFLAGS) -o $@ xmltotest.o ../cups/$(LIBCUPSSTATIC) \
191 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) \
192 -lmxml
193
194
ef416fc2 195#
196# Dependencies...
197#
198
199include Dependencies
200
201
202#
b19ccc9e 203# End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".
ef416fc2 204#