]> git.ipfire.org Git - thirdparty/cups.git/blame - filter/Makefile
Use codedoc now instead of mxmldoc.
[thirdparty/cups.git] / filter / Makefile
CommitLineData
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
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
ab89234d 39libs:
c9fc04c6
MS
40
41
5f64df29
MS
42#
43# Make unit tests...
44#
45
ab89234d 46unittests:
5f64df29
MS
47
48
ef416fc2 49#
50# Clean all object files...
51#
52
53clean:
ab89234d 54 $(RM) $(OBJS) $(TARGETS)
ef416fc2 55
56
57#
58# Update dependencies (without system header dependencies...)
59#
60
61depend:
12f89d24 62 $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
ef416fc2 63
64
65#
66# Install all targets...
67#
68
50fe7201
MS
69install: all install-data install-headers install-libs install-exec
70
71
72#
73# Install data files...
74#
75
76install-data:
77
78
79#
80# Install programs...
81#
82
83install-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
101install-headers:
50fe7201
MS
102
103
104#
105# Install libraries...
106#
107
123979a9 108install-libs:
ef416fc2 109
ef416fc2 110
757d2cad 111#
112# Uninstall all targets...
113#
114
12f89d24 115uninstall:
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
127apihelp:
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 \
133 --intro postscript-driver.shtml \
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 \
139 --intro ppd-compiler.shtml \
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 \
145 --intro raster-driver.shtml \
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 \
151 --intro spec-ppd.shtml \
152 >../doc/help/spec-ppd.html
b423cd4c 153
154
7a14d768
MS
155#
156# commandtops
157#
158
159commandtops: commandtops.o ../cups/$(LIBCUPS)
160 echo Linking $@...
a621d151 161 $(LD_CC) $(LDFLAGS) -o $@ commandtops.o $(LIBS)
00dbe99f 162 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
7a14d768
MS
163
164
ef416fc2 165#
166# gziptoany
167#
168
169gziptoany: gziptoany.o ../Makedefs ../cups/$(LIBCUPS)
170 echo Linking $@...
a621d151 171 $(LD_CC) $(LDFLAGS) -o $@ gziptoany.o $(LIBZ) $(LIBS)
00dbe99f 172 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 173
174
ef416fc2 175#
176# pstops
177#
178
179pstops: pstops.o common.o ../cups/$(LIBCUPS)
180 echo Linking $@...
a621d151 181 $(LD_CC) $(LDFLAGS) -o $@ pstops.o common.o $(LIBS)
00dbe99f 182 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 183
184
ef416fc2 185#
186# rastertoepson
187#
188
123979a9 189rastertoepson: rastertoepson.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE)
ef416fc2 190 echo Linking $@...
a621d151 191 $(LD_CC) $(LDFLAGS) -o $@ rastertoepson.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
00dbe99f 192 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
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)
00dbe99f 202 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
ef416fc2 203
204
07ed0e9a
MS
205#
206# rastertolabel
207#
208
123979a9 209rastertolabel: rastertolabel.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE)
07ed0e9a 210 echo Linking $@...
a621d151 211 $(LD_CC) $(LDFLAGS) -o $@ rastertolabel.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
00dbe99f 212 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
07ed0e9a
MS
213
214
215#
216# rastertopwg
217#
218
123979a9 219rastertopwg: rastertopwg.o ../cups/$(LIBCUPS) ../cups/$(LIBCUPSIMAGE)
07ed0e9a 220 echo Linking $@...
a621d151 221 $(LD_CC) $(LDFLAGS) -o $@ rastertopwg.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
00dbe99f 222 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
07ed0e9a 223
123979a9 224rastertopwg-static: rastertopwg.o ../cups/$(LIBCUPSSTATIC) ../cups/libcupsimage.a
94d5dc48 225 echo Linking $@...
123979a9 226 $(LD_CC) $(LDFLAGS) -o $@ rastertopwg.o ../cups/libcupsimage.a \
b94f7488 227 ../cups/$(LIBCUPSSTATIC) $(IMGLIBS) $(DSOLIBS) $(COMMONLIBS) \
94d5dc48 228 $(SSLLIBS) $(DNSSDLIBS) $(LIBGSSAPI)
00dbe99f 229 $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
94d5dc48 230
07ed0e9a 231
ef416fc2 232#
233# Dependencies...
234#
07ed0e9a 235
ef416fc2 236include Dependencies