]> git.ipfire.org Git - thirdparty/cups.git/blob - test/Makefile
Final sync-up with cups.org trunk repository
[thirdparty/cups.git] / test / Makefile
1 #
2 # "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $"
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 ippserver.o \
57 ipptool.o \
58 xmltotest.o
59 TARGETS = \
60 ippserver \
61 ipptool \
62 ipptool-static
63
64
65 #
66 # Make all targets...
67 #
68
69 all: $(TARGETS)
70
71
72 #
73 # Make library targets...
74 #
75
76 libs:
77
78
79 #
80 # Make unit tests...
81 #
82
83 unittests:
84
85
86 #
87 # Clean all object files...
88 #
89
90 clean:
91 $(RM) $(TARGETS) $(OBJS)
92
93
94 #
95 # Update dependencies (without system header dependencies...)
96 #
97
98 depend:
99 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
100
101
102 #
103 # Install all targets...
104 #
105
106 install: all install-data install-headers install-libs install-exec
107
108
109 #
110 # Install data files...
111 #
112
113 install-data:
114 echo Installing sample ipptool files in $(DATADIR)/ipptool...
115 $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool
116 for file in $(DATAFILES); do \
117 $(INSTALL_COMPDATA) $$file $(DATADIR)/ipptool; \
118 done
119 for file in $(TESTFILES); do \
120 $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \
121 done
122
123
124 #
125 # Install programs...
126 #
127
128 install-exec:
129 echo Installing ipptool in $(BINDIR)...
130 $(INSTALL_DIR) -m 755 $(BINDIR)
131 $(INSTALL_BIN) ipptool $(BINDIR)
132 if test "x$(SYMROOT)" != "x"; then \
133 $(INSTALL_DIR) $(SYMROOT); \
134 cp ipptool $(SYMROOT); \
135 dsymutil $(SYMROOT)/ipptool; \
136 fi
137
138
139 #
140 # Install headers...
141 #
142
143 install-headers:
144
145
146 #
147 # Install libraries...
148 #
149
150 install-libs:
151
152
153 #
154 # Unnstall all targets...
155 #
156
157 uninstall:
158 echo Uninstalling sample ipptool files from $(DATADIR)/ipptool...
159 for file in $(DATAFILES); do \
160 $(RM) $(DATADIR)/ipptool/$$file; \
161 done
162 for file in $(TESTFILES); do \
163 $(RM) $(DATADIR)/ipptool/$$file; \
164 done
165 -$(RMDIR) $(DATADIR)/ipptool
166
167
168 #
169 # ippserver
170 #
171
172 ippserver: ippserver.o ../cups/$(LIBCUPSSTATIC)
173 echo Linking $@...
174 $(CC) $(LDFLAGS) -o $@ ippserver.o ../cups/$(LIBCUPSSTATIC) \
175 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
176
177
178 #
179 # ippserver-shared
180 #
181
182 ippserver-shared: ippserver.o ../cups/$(LIBCUPS)
183 echo Linking $@...
184 $(CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS)
185
186
187 #
188 # ipptool
189 #
190
191 ipptool: ipptool.o ../cups/$(LIBCUPS)
192 echo Linking $@...
193 $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
194
195
196 #
197 # ipptool-static
198 #
199
200 ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC)
201 echo Linking $@...
202 $(CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \
203 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
204
205
206 #
207 # xmltotest
208 #
209
210 xmltotest: xmltotest.o ../cups/$(LIBUPSSTATIC)
211 echo Linking $@...
212 $(CC) $(LDFLAGS) -o $@ xmltotest.o ../cups/$(LIBCUPSSTATIC) \
213 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) \
214 $(LIBMXML)
215
216
217 #
218 # Dependencies...
219 #
220
221 include Dependencies
222
223
224 #
225 # End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".
226 #