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