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