]> git.ipfire.org Git - thirdparty/cups.git/blob - test/Makefile
abe03863004bbd0781a36c3424dfdd17ecd80d57
[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 TESTFILES = \
24 color.jpg \
25 create-printer-subscription.test \
26 document-a4.pdf \
27 document-a4.ps \
28 document-letter.pdf \
29 document-letter.ps \
30 get-completed-jobs.test \
31 get-jobs.test \
32 gray.jpg \
33 ipp-1.1.test \
34 ipp-2.0.test \
35 ipp-2.1.test \
36 ipp-2.2.test \
37 onepage-a4.pdf \
38 onepage-a4.ps \
39 onepage-letter.pdf \
40 onepage-letter.ps \
41 testfile.jpg \
42 testfile.pdf \
43 testfile.ps \
44 testfile.txt
45 OBJS = \
46 ippserver.o \
47 ipptool.o \
48 xmltotest.o
49 TARGETS = \
50 ippserver \
51 ipptool \
52 ipptool-static
53
54
55 #
56 # Make all targets...
57 #
58
59 all: $(TARGETS)
60
61
62 #
63 # Make library targets...
64 #
65
66 libs:
67
68
69 #
70 # Make unit tests...
71 #
72
73 unittests:
74
75
76 #
77 # Clean all object files...
78 #
79
80 clean:
81 $(RM) $(TARGETS) $(OBJS)
82
83
84 #
85 # Update dependencies (without system header dependencies...)
86 #
87
88 depend:
89 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
90
91
92 #
93 # Install all targets...
94 #
95
96 install: all install-data install-headers install-libs install-exec
97
98
99 #
100 # Install data files...
101 #
102
103 install-data:
104 echo Installing sample ipptool files in $(DATADIR)/ipptool...
105 $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool
106 for file in $(TESTFILES); do \
107 $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \
108 done
109
110
111 #
112 # Install programs...
113 #
114
115 install-exec:
116 echo Installing ipptool in $(BINDIR)...
117 $(INSTALL_DIR) -m 755 $(BINDIR)
118 $(INSTALL_BIN) ipptool $(BINDIR)
119 if test "x$(SYMROOT)" != "x"; then \
120 $(INSTALL_DIR) $(SYMROOT); \
121 cp ipptool $(SYMROOT); \
122 fi
123
124
125 #
126 # Install headers...
127 #
128
129 install-headers:
130
131
132 #
133 # Install libraries...
134 #
135
136 install-libs:
137
138
139 #
140 # Unnstall all targets...
141 #
142
143 uninstall:
144
145
146 #
147 # ippserver
148 #
149
150 ippserver: ippserver.o ../cups/$(LIBCUPSSTATIC)
151 echo Linking $@...
152 $(CC) $(LDFLAGS) -o $@ ippserver.o ../cups/$(LIBCUPSSTATIC) \
153 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
154
155
156 #
157 # ippserver-shared
158 #
159
160 ippserver-shared: ippserver.o ../cups/$(LIBCUPS)
161 echo Linking $@...
162 $(CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS)
163
164
165 #
166 # ipptool
167 #
168
169 ipptool: ipptool.o ../cups/$(LIBCUPS)
170 echo Linking $@...
171 $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
172
173
174 #
175 # ipptool-static
176 #
177
178 ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC)
179 echo Linking $@...
180 $(CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \
181 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
182
183
184 #
185 # xmltotest
186 #
187
188 xmltotest: xmltotest.o ../cups/$(LIBUPSSTATIC)
189 echo Linking $@...
190 $(CC) $(LDFLAGS) -o $@ xmltotest.o ../cups/$(LIBCUPSSTATIC) \
191 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) \
192 $(LIBMXML)
193
194
195 #
196 # Dependencies...
197 #
198
199 include Dependencies
200
201
202 #
203 # End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".
204 #