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...
46 unittests
: $(UNITTARGETS
)
50 # Clean all object files...
54 $(RM
) $(OBJS
) $(TARGETS
) $(UNITTARGETS
)
55 $(RM
) libcupsimage.so libcupsimage.sl libcupsimage.dylib
59 # Update dependencies (without system header dependencies...)
63 $(CC
) -MM
$(ALL_CFLAGS
) $(OBJS
:.o
=.c
) >Dependencies
67 # Install all targets...
70 install: all install-data install-headers install-libs install-exec
74 # Install data files...
85 $(INSTALL_DIR
) -m
755 $(SERVERBIN
)/filter
86 for file in
$(FILTERS
); do \
87 $(INSTALL_BIN
) $$file $(SERVERBIN
)/filter; \
89 $(RM
) $(SERVERBIN
)/filter/rastertodymo
90 $(LN
) rastertolabel
$(SERVERBIN
)/filter/rastertodymo
91 if
test "x$(SYMROOT)" != "x"; then \
92 $(INSTALL_DIR
) $(SYMROOT
); \
93 for file in
$(FILTERS
); do \
94 cp
$$file $(SYMROOT
); \
95 dsymutil
$(SYMROOT
)/$$file; \
108 # Install libraries...
115 # Uninstall all targets...
119 for file in
$(FILTERS
); do \
120 $(RM
) $(SERVERBIN
)/filter/$$file; \
122 $(RM
) $(SERVERBIN
)/filter/rastertodymo
123 -$(RMDIR
) $(SERVERBIN
)/filter
124 -$(RMDIR
) $(SERVERBIN
)
128 # Automatic API help files...
132 echo Generating CUPS API help files...
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
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
163 commandtops
: commandtops.o ..
/cups
/$(LIBCUPS
)
165 $(LD_CC
) $(LDFLAGS
) -o
$@ commandtops.o
$(LIBS
)
172 gziptoany
: gziptoany.o ..
/Makedefs ..
/cups
/$(LIBCUPS
)
174 $(LD_CC
) $(LDFLAGS
) -o
$@ gziptoany.o
$(LIBZ
) $(LIBS
)
181 pstops
: pstops.o common.o ..
/cups
/$(LIBCUPS
)
183 $(LD_CC
) $(LDFLAGS
) -o
$@ pstops.o common.o
$(LIBS
)
190 rastertoepson
: rastertoepson.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSIMAGE
)
192 $(LD_CC
) $(LDFLAGS
) -o
$@ rastertoepson.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
199 rastertohp
: rastertohp.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSIMAGE
)
201 $(LD_CC
) $(LDFLAGS
) -o
$@ rastertohp.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
208 rastertolabel
: rastertolabel.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSIMAGE
)
210 $(LD_CC
) $(LDFLAGS
) -o
$@ rastertolabel.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
217 rastertopwg
: rastertopwg.o ..
/cups
/$(LIBCUPS
) ..
/cups
/$(LIBCUPSIMAGE
)
219 $(LD_CC
) $(LDFLAGS
) -o
$@ rastertopwg.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
221 rastertopwg-static
: rastertopwg.o ..
/cups
/$(LIBCUPSSTATIC
) ..
/cups
/libcupsimage.a
223 $(LD_CC
) $(LDFLAGS
) -o
$@ rastertopwg.o ..
/cups
/libcupsimage.a \
224 ..
/cups
/$(LIBCUPSSTATIC
) $(IMGLIBS
) $(DSOLIBS
) $(COMMONLIBS
) \
225 $(SSLLIBS
) $(DNSSDLIBS
) $(LIBGSSAPI
)