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