]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
b19ccc9e | 2 | # "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $" |
ef416fc2 | 3 | # |
f8b3a85b | 4 | # IPP test makefile for CUPS. |
ef416fc2 | 5 | # |
12f89d24 | 6 | # Copyright 2007-2012 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 | ||
16 | include ../Makedefs | |
17 | ||
18 | ||
f8b3a85b MS |
19 | # |
20 | # Sample test files. | |
21 | # | |
22 | ||
82cc1f9a | 23 | DATAFILES = \ |
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 |
39 | TESTFILES = \ |
40 | create-printer-subscription.test \ | |
41 | get-completed-jobs.test \ | |
42 | get-jobs.test \ | |
43 | get-printer-attributes.test \ | |
44 | ipp-1.1.test \ | |
45 | ipp-2.0.test \ | |
46 | ipp-2.1.test \ | |
47 | ipp-2.2.test | |
1106b00e MS |
48 | OBJS = \ |
49 | ippserver.o \ | |
9b66acc5 MS |
50 | ipptool.o \ |
51 | xmltotest.o | |
1106b00e MS |
52 | TARGETS = \ |
53 | ippserver \ | |
54 | ipptool \ | |
55 | ipptool-static | |
f8b3a85b MS |
56 | |
57 | ||
ef416fc2 | 58 | # |
59 | # Make all targets... | |
60 | # | |
61 | ||
1106b00e | 62 | all: $(TARGETS) |
ef416fc2 | 63 | |
64 | ||
c9fc04c6 MS |
65 | # |
66 | # Make library targets... | |
67 | # | |
68 | ||
69 | libs: | |
70 | ||
71 | ||
5f64df29 MS |
72 | # |
73 | # Make unit tests... | |
74 | # | |
75 | ||
76 | unittests: | |
77 | ||
78 | ||
ef416fc2 | 79 | # |
80 | # Clean all object files... | |
81 | # | |
82 | ||
83 | clean: | |
1106b00e | 84 | $(RM) $(TARGETS) $(OBJS) |
ef416fc2 | 85 | |
86 | ||
87 | # | |
88 | # Update dependencies (without system header dependencies...) | |
89 | # | |
90 | ||
91 | depend: | |
12f89d24 | 92 | $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies |
ef416fc2 | 93 | |
94 | ||
95 | # | |
96 | # Install all targets... | |
97 | # | |
98 | ||
50fe7201 MS |
99 | install: all install-data install-headers install-libs install-exec |
100 | ||
101 | ||
102 | # | |
103 | # Install data files... | |
104 | # | |
105 | ||
106 | install-data: | |
aaf19ab0 MS |
107 | echo Installing sample ipptool files in $(DATADIR)/ipptool... |
108 | $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool | |
82cc1f9a MS |
109 | for file in $(DATAFILES); do \ |
110 | $(INSTALL_COMPDATA) $$file $(DATADIR)/ipptool; \ | |
111 | done | |
f8b3a85b | 112 | for file in $(TESTFILES); do \ |
aaf19ab0 | 113 | $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \ |
f8b3a85b | 114 | done |
50fe7201 MS |
115 | |
116 | ||
117 | # | |
118 | # Install programs... | |
119 | # | |
120 | ||
121 | install-exec: | |
aaf19ab0 | 122 | echo Installing ipptool in $(BINDIR)... |
f8b3a85b | 123 | $(INSTALL_DIR) -m 755 $(BINDIR) |
aaf19ab0 | 124 | $(INSTALL_BIN) ipptool $(BINDIR) |
f8b3a85b MS |
125 | if test "x$(SYMROOT)" != "x"; then \ |
126 | $(INSTALL_DIR) $(SYMROOT); \ | |
aaf19ab0 | 127 | cp ipptool $(SYMROOT); \ |
c1420c87 | 128 | dsymutil $(SYMROOT)/ipptool; \ |
f8b3a85b | 129 | fi |
50fe7201 MS |
130 | |
131 | ||
132 | # | |
133 | # Install headers... | |
134 | # | |
135 | ||
136 | install-headers: | |
137 | ||
138 | ||
139 | # | |
140 | # Install libraries... | |
141 | # | |
142 | ||
143 | install-libs: | |
ef416fc2 | 144 | |
145 | ||
757d2cad | 146 | # |
147 | # Unnstall all targets... | |
148 | # | |
149 | ||
150 | uninstall: | |
82cc1f9a MS |
151 | echo Uninstalling sample ipptool files from $(DATADIR)/ipptool... |
152 | for file in $(DATAFILES); do \ | |
153 | $(RM) $(DATADIR)/ipptool/$$file; \ | |
154 | done | |
155 | for file in $(TESTFILES); do \ | |
156 | $(RM) $(DATADIR)/ipptool/$$file; \ | |
157 | done | |
158 | -$(RMDIR) $(DATADIR)/ipptool | |
757d2cad | 159 | |
160 | ||
1106b00e MS |
161 | # |
162 | # ippserver | |
163 | # | |
164 | ||
165 | ippserver: ippserver.o ../cups/$(LIBCUPSSTATIC) | |
166 | echo Linking $@... | |
167 | $(CC) $(LDFLAGS) -o $@ ippserver.o ../cups/$(LIBCUPSSTATIC) \ | |
168 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) | |
169 | ||
170 | ||
e60ec91f MS |
171 | # |
172 | # ippserver-shared | |
173 | # | |
174 | ||
175 | ippserver-shared: ippserver.o ../cups/$(LIBCUPS) | |
176 | echo Linking $@... | |
177 | $(CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS) | |
178 | ||
179 | ||
ef416fc2 | 180 | # |
aaf19ab0 | 181 | # ipptool |
ef416fc2 | 182 | # |
183 | ||
aaf19ab0 | 184 | ipptool: ipptool.o ../cups/$(LIBCUPS) |
f8b3a85b | 185 | echo Linking $@... |
aaf19ab0 | 186 | $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS) |
f8b3a85b MS |
187 | |
188 | ||
189 | # | |
aaf19ab0 | 190 | # ipptool-static |
f8b3a85b MS |
191 | # |
192 | ||
aaf19ab0 | 193 | ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC) |
ef416fc2 | 194 | echo Linking $@... |
aaf19ab0 | 195 | $(CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \ |
c168a833 | 196 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
ef416fc2 | 197 | |
198 | ||
9b66acc5 MS |
199 | # |
200 | # xmltotest | |
201 | # | |
202 | ||
203 | xmltotest: xmltotest.o ../cups/$(LIBUPSSTATIC) | |
204 | echo Linking $@... | |
205 | $(CC) $(LDFLAGS) -o $@ xmltotest.o ../cups/$(LIBCUPSSTATIC) \ | |
206 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) \ | |
12f89d24 | 207 | $(LIBMXML) |
9b66acc5 MS |
208 | |
209 | ||
ef416fc2 | 210 | # |
211 | # Dependencies... | |
212 | # | |
213 | ||
214 | include Dependencies | |
215 | ||
216 | ||
217 | # | |
b19ccc9e | 218 | # End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $". |
ef416fc2 | 219 | # |