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