4 # Makefile for the CUPS base drivers.
6 # Copyright 2007-2008 by Apple Inc.
7 # Copyright 2002-2005 by Easy Software Products.
9 # These coded instructions, statements, and computer programs are the
10 # property of Apple Inc. and are protected by Federal copyright
11 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 # which should have been included with this file. If this file is
13 # file is missing or damaged, see the license at "http://www.cups.org/".
17 # Include standard definitions...
78 # Update dependencies...
82 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
90 $(INSTALL_DIR
) $(SERVERBIN
)/filter
91 for file in commandtoescpx commandtopclx rastertoescpx rastertopclx
; do \
92 $(INSTALL_BIN
) $$file $(SERVERBIN
)/filter; \
94 $(INSTALL_DIR
) $(INCLUDEDIR
)/cups
95 $(INSTALL_DATA
) driver.h
$(INCLUDEDIR
)/cups
103 for file in commandtoescpx commandtopclx rastertoescpx rastertopclx
; do \
104 $(RM
) $(SERVERBIN
)/filter/$$file; \
106 $(RM
) $(INCLUDEDIR
)/cups
/driver.h
110 # Automatic API help files...
114 mxmldoc
--section
"Programming" \
115 --title
"Printer Driver API" \
116 --css ..
/doc
/cups-printable.css \
117 --header api-driver.header
--intro api-driver.shtml \
118 driver.h
$(LIBOBJS
:.o
=.c
) >..
/doc
/help
/api-driver.html
121 mxmldoc
--framed api-driver \
122 --section
"Programming" \
123 --title
"Printer Driver API" \
124 --css ..
/doc
/cups-printable.css \
125 --header api-driver.header
--intro api-driver.shtml \
126 driver.h
$(LIBOBJS
:.o
=.c
)
130 # commandtopclx, the PCL command printer driver.
133 commandtopclx
: commandtopclx.o libcupsdriver.a ..
/cups
/$(LIBCUPS
)
135 $(CC
) $(LDFLAGS
) -o
$@ commandtopclx.o libcupsdriver.a
$(LIBS
)
139 # commandtoescpx, the ESC/P command printer driver.
142 commandtoescpx
: commandtoescpx.o libcupsdriver.a ..
/cups
/$(LIBCUPS
)
144 $(CC
) $(LDFLAGS
) -o
$@ commandtoescpx.o libcupsdriver.a
$(LIBS
)
148 # rastertoescpx, the ESC/P raster printer driver.
151 rastertoescpx
: rastertoescpx.o libcupsdriver.a ..
/cups
/$(LIBCUPS
)
153 $(CC
) $(LDFLAGS
) -o
$@ rastertoescpx.o libcupsdriver.a \
154 $(LINKCUPSIMAGE
) $(LIBS
)
158 # rastertopclx, the ESC/P raster printer driver.
161 rastertopclx
: rastertopclx.o pcl-common.o libcupsdriver.a \
164 $(CC
) $(LDFLAGS
) -o
$@ rastertopclx.o pcl-common.o libcupsdriver.a \
165 $(LINKCUPSIMAGE
) $(LIBS
)
169 # testcmyk, test cmyk separation functions.
172 testcmyk
: testcmyk.o libcupsdriver.a ..
/cups
/libcups.a
174 $(CC
) $(LDFLAGS
) -o
$@ testcmyk.o libcupsdriver.a ..
/cups
/libcups.a \
175 $(LIBGSSAPI
) $(SSLLIBS
) $(COMMONLIBS
) $(LIBZ
)
176 if
test ! -d
test; then \
179 .
/testcmyk
> test/testcmyk.log
2>&1
183 # testdither, test dithering functions.
186 testdither
: testdither.o libcupsdriver.a ..
/cups
/libcups.a
188 $(CC
) $(LDFLAGS
) -o
$@ testdither.o libcupsdriver.a ..
/cups
/libcups.a \
189 $(LIBGSSAPI
) $(SSLLIBS
) $(COMMONLIBS
) $(LIBZ
)
190 if
test ! -d
test; then \
193 .
/testdither
> test/0-255.pgm
2>test/0-255.log
194 .
/testdither
0 127 255 > test/0-127-255.pgm
2>test/0-127-255.log
195 .
/testdither
0 85 170 255 > test/0-85-170-255.pgm
2>test/0-85-170-255.log
196 .
/testdither
0 63 127 170 198 227 255 > test/0-63-127-170-198-227-255.pgm
2>test/0-63-127-170-198-227-255.log
197 .
/testdither
0 210 383 > test/0-210-383.pgm
2>test/0-210-383.log
198 .
/testdither
0 82 255 > test/0-82-255.pgm
2>test/0-82-255.log
199 .
/testdither
0 510 > test/0-510.pgm
2>test/0-510.log
200 .
/testdither
0 1020 > test/0-1020.pgm
2>test/0-1020.log
204 # testrgb, test RGB separation functions.
207 testrgb
: testrgb.o libcupsdriver.a ..
/cups
/libcups.a
209 $(CC
) $(LDFLAGS
) -o
$@ testrgb.o libcupsdriver.a ..
/cups
/libcups.a \
210 $(LIBGSSAPI
) $(SSLLIBS
) $(COMMONLIBS
) $(LIBZ
)
211 if
test ! -d
test; then \
214 .
/testrgb
> test/testrgb.log
2>&1
218 # libcupsdriver.a, the CUPS driver library...
221 libcupsdriver.a
: $(LIBOBJS
)
224 $(AR
) $(ARFLAGS
) $@
$(LIBOBJS
)
229 # Include dependencies...