2 # "$Id: Makefile,v 1.52 2002/01/02 17:58:56 mike Exp $"
4 # Filter makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2002 by Easy Software Products.
8 # These coded instructions, statements, and computer programs are the
9 # property of Easy Software Products and are protected by Federal
10 # copyright law. Distribution and use rights are outlined in the file
11 # "LICENSE.txt" which should have been included with this file. If this
12 # file is missing or damaged please contact Easy Software Products
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636-3111 USA
20 # Voice: (301) 373-9603
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
27 TARGETS
= hpgltops texttops pstops imagetops imagetoraster \
28 rastertodymo rastertoepson rastertohp
30 HPGLOBJS
= hpgl-attr.o hpgl-config.o hpgl-main.o hpgl-prolog.o \
31 hpgl-char.o hpgl-input.o hpgl-polygon.o hpgl-vector.o
32 IMAGEOBJS
= image-bmp.o image-colorspace.o image-gif.o image-jpeg.o \
33 image-photocd.o image-pix.o image-png.o image-pnm.o \
34 image-sgi.o image-sgilib.o image-sun.o image-tiff.o \
35 image-zoom.o image.o raster.o
36 FORMOBJS
= form-attr.o form-main.o form-ps.o form-text.o form-tree.o
37 OBJS
= $(HPGLOBJS
) $(IMAGEOBJS
) $(FORMOBJS
) \
38 imagetops.o imagetoraster.o common.o pstops.o raster.o \
39 rastertodymo.o rastertoepson.o rastertohp.o texttops.o \
50 # Clean all object files...
54 $(RM
) $(OBJS
) $(TARGETS
) $(LIBCUPSIMAGE
) `basename $(LIBCUPSIMAGE) .2`
58 # Install all targets...
62 $(INSTALL_DIR
) $(SERVERBIN
)/filter
63 for file in
$(TARGETS
); do \
64 $(INSTALL_BIN
) $$file $(SERVERBIN
)/filter; \
66 $(INSTALL_DIR
) $(LIBDIR
)
67 $(INSTALL_LIB
) $(LIBCUPSIMAGE
) $(LIBDIR
)
68 -if
test $(LIBCUPSIMAGE
) = "libcupsimage.so.2" -o
$(LIBCUPSIMAGE
) = "libcupsimage.sl.2"; then \
69 $(RM
) $(LIBDIR
)/`basename $(LIBCUPSIMAGE) .2`; \
70 $(LN
) $(LIBCUPSIMAGE
) $(LIBDIR
)/`basename $(LIBCUPSIMAGE) .2`; \
72 -if
test $(LIBCUPSIMAGE
) = "libcupsimage.2.dylib"; then \
73 $(RM
) $(LIBDIR
)/libcupsimage.dylib
; \
74 $(LN
) $(LIBCUPSIMAGE
) $(LIBDIR
)/libcupsimage.dylib
; \
76 $(INSTALL_DIR
) $(INCLUDEDIR
)/cups
77 $(INSTALL_DATA
) raster.h
$(INCLUDEDIR
)/cups
84 formtops
: $(FORMOBJS
) common.o ..
/Makedefs ..
/cups
/$(LIBCUPS
)
86 $(CC
) $(LDFLAGS
) -o
$@
$(FORMOBJS
) common.o
$(LIBS
) -lm
94 hpgltops
: $(HPGLOBJS
) common.o ..
/Makedefs ..
/cups
/$(LIBCUPS
)
96 $(CC
) $(LDFLAGS
) -o
$@
$(HPGLOBJS
) common.o
$(LIBS
) -lm
97 $(HPGLOBJS
): hpgltops.h
101 # libcupsimage.so.2, libcupsimage.sl.2
104 libcupsimage.so
.2 libcupsimage.sl
.2: $(IMAGEOBJS
) ..
/Makedefs
106 $(DSO
) $(DSOFLAGS
) -o
$@
$(IMAGEOBJS
) $(DSOLIBS
) -lm
107 $(RM
) `basename $@ .2`
108 $(LN
) $@
`basename $@ .2`
112 # libcupsimage.2.dylib
115 libcupsimage
.2.dylib
: $(IMAGEOBJS
) ..
/Makedefs
117 $(DSO
) $(DSOFLAGS
) -o
$@
$(IMAGEOBJS
) $(DSOLIBS
) $(LINKCUPS
) -lm
-lcc_dynamic
118 $(RM
) libcupsimage.dylib
119 $(LN
) $@ libcupsimage.dylib
126 libcupsimage_s.a
: $(IMAGEOBJS
) ..
/Makedefs
128 $(DSO
) $(DSOFLAGS
) -o libcupsimage_s.o
$(IMAGEOBJS
) $(DSOLIBS
) \
131 $(AR
) $(ARFLAGS
) $@ libcupsimage_s.o
138 libcupsimage.la
: $(IMAGEOBJS
) ..
/Makedefs
140 $(DSO
) -o
$(DSOFLAGS
) $@
$(IMAGEOBJS
:.o
=.lo
) $(DSOLIBS
) \
141 -rpath
$(LIBDIR
) -version-info
2:0
148 libcupsimage.a
: $(IMAGEOBJS
) ..
/Makedefs
151 $(AR
) $(ARFLAGS
) $@
$(IMAGEOBJS
)
154 $(IMAGEOBJS
): image.h
162 imagetops
: imagetops.o common.o
$(LIBCUPSIMAGE
) ..
/Makedefs \
165 $(CC
) $(LDFLAGS
) -o
$@ imagetops.o common.o
$(LINKCUPSIMAGE
) \
167 imagetops
: common.h image.h
174 imagetoraster
: imagetoraster.o common.o
$(LIBCUPSIMAGE
) ..
/Makedefs \
177 $(CC
) $(LDFLAGS
) -o
$@ imagetoraster.o common.o
$(LINKCUPSIMAGE
) \
179 imagetoraster
: common.h image.h raster.h
186 pstops
: pstops.o common.o ..
/Makedefs ..
/cups
/$(LIBCUPS
)
188 $(CC
) $(LDFLAGS
) -o
$@ pstops.o common.o
$(LIBS
)
196 rastertodymo
: rastertodymo.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) libcupsimage.a
198 $(CC
) $(LDFLAGS
) -o
$@ rastertodymo.o libcupsimage.a
$(LIBS
)
199 rastertodymo.o
: raster.h
206 rastertoepson
: rastertoepson.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) $(LIBCUPSIMAGE
)
208 $(CC
) $(LDFLAGS
) -o
$@ rastertoepson.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
209 rastertoepson.o
: raster.h
216 rastertohp
: rastertohp.o ..
/Makedefs ..
/cups
/$(LIBCUPS
) $(LIBCUPSIMAGE
)
218 $(CC
) $(LDFLAGS
) -o
$@ rastertohp.o
$(LINKCUPSIMAGE
) $(IMGLIBS
) $(LIBS
)
219 rastertohp.o
: raster.h
226 texttops
: texttops.o textcommon.o common.o ..
/Makedefs \
229 $(CC
) $(LDFLAGS
) -o
$@ texttops.o textcommon.o common.o
$(LIBS
)
230 texttops.o
: common.h textcommon.h
233 textcommon.o
: textcommon.h common.h
236 $(OBJS
): ..
/Makedefs ..
/cups
/cups.h ..
/cups
/ppd.h ..
/cups
/language.h
240 # End of "$Id: Makefile,v 1.52 2002/01/02 17:58:56 mike Exp $".