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