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