2 # Filter makefile for CUPS.
4 # Copyright © 2007-2019 by Apple Inc.
5 # Copyright © 1997-2006 by Easy Software Products.
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more
23 OBJS
= commandtops.o gziptoany.o common.o pstops.o \
24 rastertoepson.o rastertohp.o rastertolabel.o \
36 # Make library targets...
50 # Clean all object files...
54 $(RM
) $(OBJS
) $(TARGETS
)
58 # Update dependencies (without system header dependencies...)
62 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
66 # Install all targets...
69 install: all install-data install-headers install-libs install-exec
73 # Install data files...
84 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/filter
85 for file in
$(TARGETS
); do \
86 $(INSTALL_BIN
) $$file $(SERVERBIN
)/filter; \
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; \
105 # Install libraries...
112 # Uninstall all targets...
116 for file in
$(TARGETS
); do \
117 $(RM
) $(SERVERBIN
)/filter/$$file; \
119 -$(RMDIR
) $(SERVERBIN
)/filter
120 -$(RMDIR
) $(SERVERBIN
)
124 # Automatic API help files...
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
159 commandtops
: commandtops.o ..
/cups
/$(LIBCUPS
)
161 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ commandtops.o
$(LINKCUPS
)
162 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
169 gziptoany
: gziptoany.o ..
/Makedefs ..
/cups
/$(LIBCUPS
)
171 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ gziptoany.o
$(LINKCUPS
)
172 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
179 pstops
: pstops.o common.o ..
/cups
/$(LIBCUPS
)
181 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ pstops.o common.o
$(LINKCUPS
)
182 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
189 rastertoepson
: rastertoepson.o ..
/cups
/$(LIBCUPS
)
191 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ rastertoepson.o
$(LINKCUPS
)
192 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
199 rastertohp
: rastertohp.o ..
/cups
/$(LIBCUPS
)
201 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ rastertohp.o
$(LINKCUPS
)
202 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
209 rastertolabel
: rastertolabel.o ..
/cups
/$(LIBCUPS
)
211 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ rastertolabel.o
$(LINKCUPS
)
212 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
219 rastertopwg
: rastertopwg.o ..
/cups
/$(LIBCUPS
)
221 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ rastertopwg.o
$(LINKCUPS
)
222 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@
224 rastertopwg-static
: rastertopwg.o ..
/cups
/$(LIBCUPSSTATIC
)
226 $(LD_CC
) $(ALL_LDFLAGS
) -o
$@ rastertopwg.o
$(LINKCUPSSTATIC
)
227 $(CODE_SIGN
) -s
"$(CODE_SIGN_IDENTITY)" $@