]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
503b54c9 | 2 | # IPP test makefile for CUPS. |
ef416fc2 | 3 | # |
e1f89675 | 4 | # Copyright 2007-2016 by Apple Inc. |
503b54c9 | 5 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 6 | # |
503b54c9 MS |
7 | # These coded instructions, statements, and computer programs are the |
8 | # property of Apple Inc. and are protected by Federal copyright | |
9 | # law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
10 | # which should have been included with this file. If this file is | |
11 | # file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 12 | # |
13 | ||
14 | include ../Makedefs | |
15 | ||
16 | ||
f8b3a85b MS |
17 | # |
18 | # Sample test files. | |
19 | # | |
20 | ||
82cc1f9a | 21 | DATAFILES = \ |
83e08001 | 22 | color.jpg \ |
83e08001 MS |
23 | document-a4.pdf \ |
24 | document-a4.ps \ | |
25 | document-letter.pdf \ | |
26 | document-letter.ps \ | |
83e08001 | 27 | gray.jpg \ |
83e08001 MS |
28 | onepage-a4.pdf \ |
29 | onepage-a4.ps \ | |
30 | onepage-letter.pdf \ | |
31 | onepage-letter.ps \ | |
f8b3a85b | 32 | testfile.jpg \ |
a29fd7dd | 33 | testfile.pcl \ |
f8b3a85b MS |
34 | testfile.pdf \ |
35 | testfile.ps \ | |
36 | testfile.txt | |
82cc1f9a MS |
37 | TESTFILES = \ |
38 | create-printer-subscription.test \ | |
39 | get-completed-jobs.test \ | |
40 | get-jobs.test \ | |
db8b865d | 41 | get-notifications.test \ |
82cc1f9a | 42 | get-printer-attributes.test \ |
94436c5a | 43 | get-subscriptions.test \ |
82cc1f9a MS |
44 | ipp-1.1.test \ |
45 | ipp-2.0.test \ | |
46 | ipp-2.1.test \ | |
db8b865d MS |
47 | ipp-2.2.test \ |
48 | ipp-everywhere.test \ | |
49 | print-job.test \ | |
50 | print-job-deflate.test \ | |
6961465f MS |
51 | print-job-gzip.test \ |
52 | validate-job.test | |
1106b00e | 53 | OBJS = \ |
766a8229 | 54 | ippfind.o \ |
1106b00e | 55 | ippserver.o \ |
e1f89675 | 56 | ipptool.o |
1106b00e | 57 | TARGETS = \ |
766a8229 | 58 | $(IPPFIND_BIN) \ |
1106b00e MS |
59 | ippserver \ |
60 | ipptool \ | |
61 | ipptool-static | |
f8b3a85b MS |
62 | |
63 | ||
ef416fc2 | 64 | # |
65 | # Make all targets... | |
66 | # | |
67 | ||
1106b00e | 68 | all: $(TARGETS) |
ef416fc2 | 69 | |
70 | ||
c9fc04c6 MS |
71 | # |
72 | # Make library targets... | |
73 | # | |
74 | ||
75 | libs: | |
76 | ||
77 | ||
5f64df29 MS |
78 | # |
79 | # Make unit tests... | |
80 | # | |
81 | ||
82 | unittests: | |
83 | ||
84 | ||
ef416fc2 | 85 | # |
86 | # Clean all object files... | |
87 | # | |
88 | ||
89 | clean: | |
e1f89675 | 90 | $(RM) $(TARGETS) $(OBJS) ippfind-static ippserver-shared |
ef416fc2 | 91 | |
92 | ||
93 | # | |
94 | # Update dependencies (without system header dependencies...) | |
95 | # | |
96 | ||
97 | depend: | |
12f89d24 | 98 | $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies |
ef416fc2 | 99 | |
100 | ||
101 | # | |
102 | # Install all targets... | |
103 | # | |
104 | ||
50fe7201 MS |
105 | install: all install-data install-headers install-libs install-exec |
106 | ||
107 | ||
108 | # | |
109 | # Install data files... | |
110 | # | |
111 | ||
112 | install-data: | |
aaf19ab0 MS |
113 | echo Installing sample ipptool files in $(DATADIR)/ipptool... |
114 | $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool | |
82cc1f9a MS |
115 | for file in $(DATAFILES); do \ |
116 | $(INSTALL_COMPDATA) $$file $(DATADIR)/ipptool; \ | |
117 | done | |
f8b3a85b | 118 | for file in $(TESTFILES); do \ |
aaf19ab0 | 119 | $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \ |
f8b3a85b | 120 | done |
50fe7201 MS |
121 | |
122 | ||
123 | # | |
124 | # Install programs... | |
125 | # | |
126 | ||
127 | install-exec: | |
aaf19ab0 | 128 | echo Installing ipptool in $(BINDIR)... |
f8b3a85b | 129 | $(INSTALL_DIR) -m 755 $(BINDIR) |
aaf19ab0 | 130 | $(INSTALL_BIN) ipptool $(BINDIR) |
bc0305b0 | 131 | if test -x ippfind; then \ |
ad0357ca MS |
132 | $(INSTALL_BIN) ippfind $(BINDIR); \ |
133 | fi | |
f8b3a85b MS |
134 | if test "x$(SYMROOT)" != "x"; then \ |
135 | $(INSTALL_DIR) $(SYMROOT); \ | |
ad0357ca MS |
136 | cp ippfind $(SYMROOT); \ |
137 | dsymutil $(SYMROOT)/ippfind; \ | |
aaf19ab0 | 138 | cp ipptool $(SYMROOT); \ |
c1420c87 | 139 | dsymutil $(SYMROOT)/ipptool; \ |
f8b3a85b | 140 | fi |
50fe7201 MS |
141 | |
142 | ||
143 | # | |
144 | # Install headers... | |
145 | # | |
146 | ||
147 | install-headers: | |
148 | ||
149 | ||
150 | # | |
151 | # Install libraries... | |
152 | # | |
153 | ||
154 | install-libs: | |
ef416fc2 | 155 | |
156 | ||
757d2cad | 157 | # |
158 | # Unnstall all targets... | |
159 | # | |
160 | ||
161 | uninstall: | |
82cc1f9a MS |
162 | echo Uninstalling sample ipptool files from $(DATADIR)/ipptool... |
163 | for file in $(DATAFILES); do \ | |
164 | $(RM) $(DATADIR)/ipptool/$$file; \ | |
165 | done | |
166 | for file in $(TESTFILES); do \ | |
167 | $(RM) $(DATADIR)/ipptool/$$file; \ | |
168 | done | |
169 | -$(RMDIR) $(DATADIR)/ipptool | |
757d2cad | 170 | |
171 | ||
766a8229 MS |
172 | # |
173 | # ippfind | |
174 | # | |
175 | ||
176 | ippfind: ippfind.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSSTATIC) | |
177 | echo Linking $@... | |
178 | $(CC) $(LDFLAGS) -o $@ ippfind.o $(LIBS) | |
179 | echo Linking $@-static... | |
180 | $(CC) $(LDFLAGS) -o $@-static ippfind.o ../cups/$(LIBCUPSSTATIC) \ | |
181 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) | |
182 | ||
183 | ||
1106b00e MS |
184 | # |
185 | # ippserver | |
186 | # | |
187 | ||
188 | ippserver: ippserver.o ../cups/$(LIBCUPSSTATIC) | |
189 | echo Linking $@... | |
190 | $(CC) $(LDFLAGS) -o $@ ippserver.o ../cups/$(LIBCUPSSTATIC) \ | |
191 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) | |
192 | ||
193 | ||
e60ec91f MS |
194 | # |
195 | # ippserver-shared | |
196 | # | |
197 | ||
198 | ippserver-shared: ippserver.o ../cups/$(LIBCUPS) | |
199 | echo Linking $@... | |
200 | $(CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS) | |
201 | ||
202 | ||
ef416fc2 | 203 | # |
aaf19ab0 | 204 | # ipptool |
ef416fc2 | 205 | # |
206 | ||
aaf19ab0 | 207 | ipptool: ipptool.o ../cups/$(LIBCUPS) |
f8b3a85b | 208 | echo Linking $@... |
aaf19ab0 | 209 | $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS) |
f8b3a85b MS |
210 | |
211 | ||
212 | # | |
aaf19ab0 | 213 | # ipptool-static |
f8b3a85b MS |
214 | # |
215 | ||
aaf19ab0 | 216 | ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC) |
ef416fc2 | 217 | echo Linking $@... |
aaf19ab0 | 218 | $(CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \ |
c168a833 | 219 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
ef416fc2 | 220 | |
221 | ||
222 | # | |
223 | # Dependencies... | |
224 | # | |
225 | ||
226 | include Dependencies |