2 # Filter makefile for CUPS.
4 # Copyright © 2007-2018 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 mxmldoc
--section
"Programming" \
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
135 mxmldoc
--section
"Programming" \
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
141 mxmldoc
--section
"Programming" \
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
147 mxmldoc
--section
"Specifications" \
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
159 commandtops
: commandtops.o ..
/cups
/$(LIBCUPS
)
161 $(LD_CC
) $(LDFLAGS
) -o
$@ commandtops.o
$(LIBS
)
168 gziptoany
: gziptoany.o ..
/Makedefs ..
/cups
/$(LIBCUPS
)
170 $(LD_CC
) $(LDFLAGS
) -o
$@ gziptoany.o
$(LIBZ
) $(LIBS
)
177 pstops
: pstops.o common.o ..
/cups
/$(LIBCUPS
)
179 $(LD_CC
) $(LDFLAGS
) -o
$@ pstops.o common.o
$(LIBS
)
186 rastertoepson
: rastertoepson.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSIMAGE
)
188 $(LD_CC
) $(LDFLAGS
) -o
$@ rastertoepson.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
195 rastertohp
: rastertohp.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSIMAGE
)
197 $(LD_CC
) $(LDFLAGS
) -o
$@ rastertohp.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
204 rastertolabel
: rastertolabel.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSIMAGE
)
206 $(LD_CC
) $(LDFLAGS
) -o
$@ rastertolabel.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
213 rastertopwg
: rastertopwg.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSIMAGE
)
215 $(LD_CC
) $(LDFLAGS
) -o
$@ rastertopwg.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
217 rastertopwg-static
: rastertopwg.o ..
/cups
/$(LIBCUPSSTATIC
) ..
/cups
/libcupsimage.a
219 $(LD_CC
) $(LDFLAGS
) -o
$@ rastertopwg.o ..
/cups
/libcupsimage.a \
220 ..
/cups
/$(LIBCUPSSTATIC
) $(IMGLIBS
) $(DSOLIBS
) $(COMMONLIBS
) \
221 $(SSLLIBS
) $(DNSSDLIBS
) $(LIBGSSAPI
)