]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
503b54c9 | 2 | # Filter makefile for CUPS. |
ef416fc2 | 3 | # |
f294fe22 | 4 | # Copyright © 2007-2019 by Apple Inc. |
ab89234d | 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... | |
f294fe22 | 129 | codedoc --section "Programming" \ |
8b450588 MS |
130 | --title "Developing PostScript Printer Drivers" \ |
131 | --css ../doc/cups-printable.css \ | |
132 | --header postscript-driver.header \ | |
73721e3e | 133 | --body postscript-driver.shtml \ |
8b450588 | 134 | >../doc/help/postscript-driver.html |
f294fe22 | 135 | codedoc --section "Programming" \ |
8b450588 MS |
136 | --title "Introduction to the PPD Compiler" \ |
137 | --css ../doc/cups-printable.css \ | |
138 | --header ppd-compiler.header \ | |
73721e3e | 139 | --body ppd-compiler.shtml \ |
8b450588 | 140 | >../doc/help/ppd-compiler.html |
f294fe22 | 141 | codedoc --section "Programming" \ |
8b450588 MS |
142 | --title "Developing Raster Printer Drivers" \ |
143 | --css ../doc/cups-printable.css \ | |
144 | --header raster-driver.header \ | |
73721e3e | 145 | --body raster-driver.shtml \ |
8b450588 | 146 | >../doc/help/raster-driver.html |
f294fe22 | 147 | codedoc --section "Specifications" \ |
10d09e33 MS |
148 | --title "CUPS PPD Extensions" \ |
149 | --css ../doc/cups-printable.css \ | |
150 | --header spec-ppd.header \ | |
73721e3e | 151 | --body spec-ppd.shtml \ |
10d09e33 | 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 $@... | |
3e391a8e | 161 | $(LD_CC) $(ALL_LDFLAGS) -o $@ commandtops.o $(LINKCUPS) |
00dbe99f | 162 | $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ |
7a14d768 MS |
163 | |
164 | ||
ef416fc2 | 165 | # |
166 | # gziptoany | |
167 | # | |
168 | ||
169 | gziptoany: gziptoany.o ../Makedefs ../cups/$(LIBCUPS) | |
170 | echo Linking $@... | |
3e391a8e | 171 | $(LD_CC) $(ALL_LDFLAGS) -o $@ gziptoany.o $(LINKCUPS) |
00dbe99f | 172 | $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ |
ef416fc2 | 173 | |
174 | ||
ef416fc2 | 175 | # |
176 | # pstops | |
177 | # | |
178 | ||
179 | pstops: pstops.o common.o ../cups/$(LIBCUPS) | |
180 | echo Linking $@... | |
3e391a8e | 181 | $(LD_CC) $(ALL_LDFLAGS) -o $@ pstops.o common.o $(LINKCUPS) |
00dbe99f | 182 | $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ |
ef416fc2 | 183 | |
184 | ||
ef416fc2 | 185 | # |
186 | # rastertoepson | |
187 | # | |
188 | ||
3e391a8e | 189 | rastertoepson: rastertoepson.o ../cups/$(LIBCUPS) |
ef416fc2 | 190 | echo Linking $@... |
3e391a8e | 191 | $(LD_CC) $(ALL_LDFLAGS) -o $@ rastertoepson.o $(LINKCUPS) |
00dbe99f | 192 | $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ |
ef416fc2 | 193 | |
194 | ||
195 | # | |
196 | # rastertohp | |
197 | # | |
198 | ||
3e391a8e | 199 | rastertohp: rastertohp.o ../cups/$(LIBCUPS) |
ef416fc2 | 200 | echo Linking $@... |
3e391a8e | 201 | $(LD_CC) $(ALL_LDFLAGS) -o $@ rastertohp.o $(LINKCUPS) |
00dbe99f | 202 | $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ |
ef416fc2 | 203 | |
204 | ||
07ed0e9a MS |
205 | # |
206 | # rastertolabel | |
207 | # | |
208 | ||
3e391a8e | 209 | rastertolabel: rastertolabel.o ../cups/$(LIBCUPS) |
07ed0e9a | 210 | echo Linking $@... |
3e391a8e | 211 | $(LD_CC) $(ALL_LDFLAGS) -o $@ rastertolabel.o $(LINKCUPS) |
00dbe99f | 212 | $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ |
07ed0e9a MS |
213 | |
214 | ||
215 | # | |
216 | # rastertopwg | |
217 | # | |
218 | ||
3e391a8e | 219 | rastertopwg: rastertopwg.o ../cups/$(LIBCUPS) |
07ed0e9a | 220 | echo Linking $@... |
3e391a8e | 221 | $(LD_CC) $(ALL_LDFLAGS) -o $@ rastertopwg.o $(LINKCUPS) |
00dbe99f | 222 | $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ |
07ed0e9a | 223 | |
3e391a8e | 224 | rastertopwg-static: rastertopwg.o ../cups/$(LIBCUPSSTATIC) |
94d5dc48 | 225 | echo Linking $@... |
3e391a8e | 226 | $(LD_CC) $(ALL_LDFLAGS) -o $@ rastertopwg.o $(LINKCUPSSTATIC) |
00dbe99f | 227 | $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ |
94d5dc48 | 228 | |
07ed0e9a | 229 | |
ef416fc2 | 230 | # |
231 | # Dependencies... | |
232 | # | |
07ed0e9a | 233 | |
ef416fc2 | 234 | include Dependencies |