]> git.ipfire.org Git - thirdparty/cups.git/blob - test/Makefile
Merge changes from CUPS 1.6svn-r10002
[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-2010 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 TARGETS = \
49 ippserver \
50 ipptool \
51 ipptool-static
52
53
54 #
55 # Make all targets...
56 #
57
58 all: $(TARGETS)
59
60
61 #
62 # Make library targets...
63 #
64
65 libs:
66
67
68 #
69 # Make unit tests...
70 #
71
72 unittests:
73
74
75 #
76 # Clean all object files...
77 #
78
79 clean:
80 $(RM) $(TARGETS) $(OBJS)
81
82
83 #
84 # Update dependencies (without system header dependencies...)
85 #
86
87 depend:
88 makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
89
90
91 #
92 # Install all targets...
93 #
94
95 install: all install-data install-headers install-libs install-exec
96
97
98 #
99 # Install data files...
100 #
101
102 install-data:
103 echo Installing sample ipptool files in $(DATADIR)/ipptool...
104 $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool
105 for file in $(TESTFILES); do \
106 $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \
107 done
108
109
110 #
111 # Install programs...
112 #
113
114 install-exec:
115 echo Installing ipptool in $(BINDIR)...
116 $(INSTALL_DIR) -m 755 $(BINDIR)
117 $(INSTALL_BIN) ipptool $(BINDIR)
118 if test "x$(SYMROOT)" != "x"; then \
119 $(INSTALL_DIR) $(SYMROOT); \
120 cp ipptool $(SYMROOT); \
121 fi
122
123
124 #
125 # Install headers...
126 #
127
128 install-headers:
129
130
131 #
132 # Install libraries...
133 #
134
135 install-libs:
136
137
138 #
139 # Unnstall all targets...
140 #
141
142 uninstall:
143
144
145 #
146 # ippserver
147 #
148
149 ippserver: ippserver.o ../cups/$(LIBCUPSSTATIC)
150 echo Linking $@...
151 $(CC) $(LDFLAGS) -o $@ ippserver.o ../cups/$(LIBCUPSSTATIC) \
152 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
153
154
155 #
156 # ippserver-shared
157 #
158
159 ippserver-shared: ippserver.o ../cups/$(LIBCUPS)
160 echo Linking $@...
161 $(CC) $(LDFLAGS) -o $@ ippserver.o $(LIBS)
162
163
164 #
165 # ipptool
166 #
167
168 ipptool: ipptool.o ../cups/$(LIBCUPS)
169 echo Linking $@...
170 $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS)
171
172
173 #
174 # ipptool-static
175 #
176
177 ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC)
178 echo Linking $@...
179 $(CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \
180 $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
181
182
183 #
184 # Dependencies...
185 #
186
187 include Dependencies
188
189
190 #
191 # End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".
192 #