]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
503b54c9 | 2 | # Filter makefile for CUPS. |
ef416fc2 | 3 | # |
ab89234d MS |
4 | # Copyright © 2007-2018 by Apple Inc. |
5 | # Copyright © 1997-2006 by Easy Software Products. | |
ef416fc2 | 6 | # |
123979a9 MS |
7 | # Licensed under Apache License v2.0. See the file "LICENSE" for more |
8 | # information. | |
ef416fc2 | 9 | # |
10 | ||
11 | include ../Makedefs | |
12 | ||
b86bc4cf | 13 | |
123979a9 | 14 | TARGETS = \ |
c9fc04c6 MS |
15 | commandtops \ |
16 | gziptoany \ | |
c9fc04c6 | 17 | pstops \ |
c9fc04c6 | 18 | rastertoepson \ |
07ed0e9a MS |
19 | rastertohp \ |
20 | rastertolabel \ | |
21 | rastertopwg | |
ef416fc2 | 22 | |
123979a9 MS |
23 | OBJS = commandtops.o gziptoany.o common.o pstops.o \ |
24 | rastertoepson.o rastertohp.o rastertolabel.o \ | |
25 | rastertopwg.o | |
ef416fc2 | 26 | |
27 | ||
28 | # | |
29 | # Make all targets... | |
30 | # | |
31 | ||
e1d6a774 | 32 | all: $(TARGETS) |
ef416fc2 | 33 | |
34 | ||
c9fc04c6 MS |
35 | # |
36 | # Make library targets... | |
37 | # | |
38 | ||
ab89234d | 39 | libs: |
c9fc04c6 MS |
40 | |
41 | ||
5f64df29 MS |
42 | # |
43 | # Make unit tests... | |
44 | # | |
45 | ||
ab89234d | 46 | unittests: |
5f64df29 MS |
47 | |
48 | ||
ef416fc2 | 49 | # |
50 | # Clean all object files... | |
51 | # | |
52 | ||
53 | clean: | |
ab89234d | 54 | $(RM) $(OBJS) $(TARGETS) |
ef416fc2 | 55 | |
56 | ||
57 | # | |
58 | # Update dependencies (without system header dependencies...) | |
59 | # | |
60 | ||
61 | depend: | |
12f89d24 | 62 | $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies |
ef416fc2 | 63 | |
64 | ||
65 | # | |
66 | # Install all targets... | |
67 | # | |
68 | ||
50fe7201 MS |
69 | install: all install-data install-headers install-libs install-exec |
70 | ||
71 | ||
72 | # | |
73 | # Install data files... | |
74 | # | |
75 | ||
76 | install-data: | |
77 | ||
78 | ||
79 | # | |
80 | # Install programs... | |
81 | # | |
82 | ||
83 | install-exec: | |
bd7854cb | 84 | $(INSTALL_DIR) -m 755 $(SERVERBIN)/filter |
ab89234d | 85 | for file in $(TARGETS); do \ |
ef416fc2 | 86 | $(INSTALL_BIN) $$file $(SERVERBIN)/filter; \ |
87 | done | |
50fe7201 MS |
88 | if test "x$(SYMROOT)" != "x"; then \ |
89 | $(INSTALL_DIR) $(SYMROOT); \ | |
ab89234d | 90 | for file in $(TARGETS); do \ |
50fe7201 | 91 | cp $$file $(SYMROOT); \ |
cb7f98ee | 92 | dsymutil $(SYMROOT)/$$file; \ |
50fe7201 MS |
93 | done \ |
94 | fi | |
95 | ||
96 | ||
97 | # | |
98 | # Install headers... | |
99 | # | |
100 | ||
101 | install-headers: | |
50fe7201 MS |
102 | |
103 | ||
104 | # | |
105 | # Install libraries... | |
106 | # | |
107 | ||
123979a9 | 108 | install-libs: |
ef416fc2 | 109 | |
ef416fc2 | 110 | |
757d2cad | 111 | # |
112 | # Uninstall all targets... | |
113 | # | |
114 | ||
12f89d24 | 115 | uninstall: |
ab89234d | 116 | for file in $(TARGETS); do \ |
757d2cad | 117 | $(RM) $(SERVERBIN)/filter/$$file; \ |
118 | done | |
757d2cad | 119 | -$(RMDIR) $(SERVERBIN)/filter |
120 | -$(RMDIR) $(SERVERBIN) | |
757d2cad | 121 | |
122 | ||
b423cd4c | 123 | # |
124 | # Automatic API help files... | |
125 | # | |
126 | ||
127 | apihelp: | |
128 | echo Generating CUPS API help files... | |
8b450588 MS |
129 | mxmldoc --section "Programming" \ |
130 | --title "Developing PostScript Printer Drivers" \ | |
131 | --css ../doc/cups-printable.css \ | |
132 | --header postscript-driver.header \ | |
133 | --intro postscript-driver.shtml \ | |
134 | >../doc/help/postscript-driver.html | |
135 | mxmldoc --section "Programming" \ | |
136 | --title "Introduction to the PPD Compiler" \ | |
137 | --css ../doc/cups-printable.css \ | |
138 | --header ppd-compiler.header \ | |
139 | --intro ppd-compiler.shtml \ | |
140 | >../doc/help/ppd-compiler.html | |
141 | mxmldoc --section "Programming" \ | |
142 | --title "Developing Raster Printer Drivers" \ | |
143 | --css ../doc/cups-printable.css \ | |
144 | --header raster-driver.header \ | |
145 | --intro raster-driver.shtml \ | |
146 | >../doc/help/raster-driver.html | |
10d09e33 MS |
147 | mxmldoc --section "Specifications" \ |
148 | --title "CUPS PPD Extensions" \ | |
149 | --css ../doc/cups-printable.css \ | |
150 | --header spec-ppd.header \ | |
151 | --intro spec-ppd.shtml \ | |
152 | >../doc/help/spec-ppd.html | |
b423cd4c | 153 | |
154 | ||
7a14d768 MS |
155 | # |
156 | # commandtops | |
157 | # | |
158 | ||
159 | commandtops: commandtops.o ../cups/$(LIBCUPS) | |
160 | echo Linking $@... | |
a621d151 | 161 | $(LD_CC) $(LDFLAGS) -o $@ commandtops.o $(LIBS) |
7a14d768 MS |
162 | |
163 | ||
ef416fc2 | 164 | # |
165 | # gziptoany | |
166 | # | |
167 | ||
168 | gziptoany: gziptoany.o ../Makedefs ../cups/$(LIBCUPS) | |
169 | echo Linking $@... | |
a621d151 | 170 | $(LD_CC) $(LDFLAGS) -o $@ gziptoany.o $(LIBZ) $(LIBS) |
ef416fc2 | 171 | |
172 | ||
ef416fc2 | 173 | # |
174 | # pstops | |
175 | # | |
176 | ||
177 | pstops: pstops.o common.o ../cups/$(LIBCUPS) | |
178 | echo Linking $@... | |
a621d151 | 179 | $(LD_CC) $(LDFLAGS) -o $@ pstops.o common.o $(LIBS) |
ef416fc2 | 180 | |
181 | ||
ef416fc2 | 182 | # |
183 | # rastertoepson | |
184 | # | |
185 | ||
123979a9 | 186 | rastertoepson: rastertoepson.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE) |
ef416fc2 | 187 | echo Linking $@... |
a621d151 | 188 | $(LD_CC) $(LDFLAGS) -o $@ rastertoepson.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS) |
ef416fc2 | 189 | |
190 | ||
191 | # | |
192 | # rastertohp | |
193 | # | |
194 | ||
123979a9 | 195 | rastertohp: rastertohp.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE) |
ef416fc2 | 196 | echo Linking $@... |
a621d151 | 197 | $(LD_CC) $(LDFLAGS) -o $@ rastertohp.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS) |
ef416fc2 | 198 | |
199 | ||
07ed0e9a MS |
200 | # |
201 | # rastertolabel | |
202 | # | |
203 | ||
123979a9 | 204 | rastertolabel: rastertolabel.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE) |
07ed0e9a | 205 | echo Linking $@... |
a621d151 | 206 | $(LD_CC) $(LDFLAGS) -o $@ rastertolabel.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS) |
07ed0e9a MS |
207 | |
208 | ||
209 | # | |
210 | # rastertopwg | |
211 | # | |
212 | ||
123979a9 | 213 | rastertopwg: rastertopwg.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE) |
07ed0e9a | 214 | echo Linking $@... |
a621d151 | 215 | $(LD_CC) $(LDFLAGS) -o $@ rastertopwg.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS) |
07ed0e9a | 216 | |
123979a9 | 217 | rastertopwg-static: rastertopwg.o ../cups/$(LIBCUPSSTATIC) ../cups/libcupsimage.a |
94d5dc48 | 218 | echo Linking $@... |
123979a9 | 219 | $(LD_CC) $(LDFLAGS) -o $@ rastertopwg.o ../cups/libcupsimage.a \ |
b94f7488 | 220 | ../cups/$(LIBCUPSSTATIC) $(IMGLIBS) $(DSOLIBS) $(COMMONLIBS) \ |
94d5dc48 MS |
221 | $(SSLLIBS) $(DNSSDLIBS) $(LIBGSSAPI) |
222 | ||
07ed0e9a | 223 | |
ef416fc2 | 224 | # |
225 | # Dependencies... | |
226 | # | |
07ed0e9a | 227 | |
ef416fc2 | 228 | include Dependencies |