]> git.ipfire.org Git - thirdparty/cups.git/blob - test/Makefile
Save work - all of the tests work, todo:
[thirdparty/cups.git] / test / Makefile
1 #
2 # "$Id$"
3 #
4 # IPP test makefile for CUPS.
5 #
6 # Copyright 2007-2013 by Apple Inc.
7 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
8 #
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/".
14 #
15
16 include ../Makedefs
17
18
19 #
20 # Sample test files.
21 #
22
23 DATAFILES = \
24 color.jpg \
25 document-a4.pdf \
26 document-a4.ps \
27 document-letter.pdf \
28 document-letter.ps \
29 gray.jpg \
30 onepage-a4.pdf \
31 onepage-a4.ps \
32 onepage-letter.pdf \
33 onepage-letter.ps \
34 testfile.jpg \
35 testfile.pcl \
36 testfile.pdf \
37 testfile.ps \
38 testfile.txt
39 TESTFILES = \
40 create-printer-subscription.test \
41 get-completed-jobs.test \
42 get-jobs.test \
43 get-notifications.test \
44 get-printer-attributes.test \
45 get-subscriptions.test \
46 ipp-1.1.test \
47 ipp-2.0.test \
48 ipp-2.1.test \
49 ipp-2.2.test \
50 ipp-everywhere.test \
51 print-job.test \
52 print-job-deflate.test \
53 print-job-gzip.test \
54 validate-job.test
55 OBJS = \
56 ippfind.o \
57 ippserver.o \
58 ipptool.o \
59 xmltotest.o
60 TARGETS = \
61 $(IPPFIND_BIN) \
62 ippserver \
63 ipptool \
64 ipptool-static
65
66
67 #
68 # Make all targets...
69 #
70
71 all: $(TARGETS)
72
73
74 #
75 # Make library targets...
76 #
77
78 libs:
79
80
81 #
82 # Make unit tests...
83 #
84
85 unittests:
86
87
88 #
89 # Clean all object files...
90 #
91
92 clean:
93 $(RM) $(TARGETS) $(OBJS)
94
95
96 #
97 # Update dependencies (without system header dependencies...)
98 #
99
100 depend:
101 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
102
103
104 #
105 # Install all targets...
106 #
107
108 install: all install-data install-headers install-libs install-exec
109
110
111 #
112 # Install data files...
113 #
114
115 install-data:
116 echo Installing sample ipptool files in $(DATADIR)/ipptool...
117 $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool
118 for file in $(DATAFILES); do \
119 $(INSTALL_COMPDATA) $$file $(DATADIR)/ipptool; \
120 done
121 for file in $(TESTFILES); do \
122 $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \
123 done
124
125
126 #
127 # Install programs...
128 #
129
130 install-exec:
131 echo Installing ipptool in $(BINDIR)...
132 $(INSTALL_DIR) -m 755 $(BINDIR)
133 $(INSTALL_BIN) ipptool $(BINDIR)
134 if test "x$(SYMROOT)" != "x"; then \
135 $(INSTALL_DIR) $(SYMROOT); \
136 cp ipptool $(SYMROOT); \
137 dsymutil $(SYMROOT)/ipptool; \
138 fi
139
140
141 #
142 # Install headers...
143 #
144
145 install-headers:
146
147
148 #
149 # Install libraries...
150 #
151
152 install-libs:
153
154
155 #
156 # Unnstall all targets...
157 #
158
159 uninstall:
160 echo Uninstalling sample ipptool files from $(DATADIR)/ipptool...
161 for file in $(DATAFILES); do \
162 $(RM) $(DATADIR)/ipptool/$$file; \
163 done
164 for file in $(TESTFILES); do \
165 $(RM) $(DATADIR)/ipptool/$$file; \
166 done
167 -$(RMDIR) $(DATADIR)/ipptool
168
169
170 #
171 # ippfind
172 #
173
174 ippfind: ippfind.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSSTATIC)
175 echo Linking $@...
176 $(CC) $(LDFLAGS) -o $@ ippfind.o $(LIBS)
177 echo Linking $@-static...
178 $(CC) $(LDFLAGS) -o $@-static ippfind.o ../cups/$(LIBCUPSSTATIC) \
179 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
180
181
182 #
183 # ippserver
184 #
185
186 ippserver: ippserver.o ../cups/$(LIBCUPSSTATIC)
187 echo Linking $@...
188 $(CC) $(LDFLAGS) -o $@ ippserver.o ../cups/$(LIBCUPSSTATIC) \
189 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
190
191
192 #
193 # ippserver-shared
194 #
195
196 ippserver-shared: ippserver.o ../cups/$(LIBCUPS)
197 echo Linking $@...
198 $(CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS)
199
200
201 #
202 # ipptool
203 #
204
205 ipptool: ipptool.o ../cups/$(LIBCUPS)
206 echo Linking $@...
207 $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
208
209
210 #
211 # ipptool-static
212 #
213
214 ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC)
215 echo Linking $@...
216 $(CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \
217 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
218
219
220 #
221 # xmltotest
222 #
223
224 xmltotest: xmltotest.o ../cups/$(LIBUPSSTATIC)
225 echo Linking $@...
226 $(CC) $(LDFLAGS) -o $@ xmltotest.o ../cups/$(LIBCUPSSTATIC) \
227 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) \
228 $(LIBMXML)
229
230
231 #
232 # Dependencies...
233 #
234
235 include Dependencies
236
237
238 #
239 # End of "$Id$".
240 #