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