]> git.ipfire.org Git - thirdparty/cups.git/blame - filter/Makefile
Updated the banner pages.
[thirdparty/cups.git] / filter / Makefile
CommitLineData
898749d4 1#
d8916a11 2# "$Id: Makefile,v 1.31 2000/04/30 22:03:56 mike Exp $"
898749d4 3#
e2a47002 4# Filter makefile for the Common UNIX Printing System (CUPS).
898749d4 5#
2096f8c6 6# Copyright 1997-2000 by Easy Software Products.
898749d4 7#
e2a47002 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
13# at:
898749d4 14#
e2a47002 15# Attn: CUPS Licensing Information
16# Easy Software Products
c9e6a22c 17# 44141 Airport View Drive, Suite 204
e2a47002 18# Hollywood, Maryland 20636-3111 USA
898749d4 19#
e2a47002 20# Voice: (301) 373-9603
21# EMail: cups-info@cups.org
22# WWW: http://www.cups.org
af2625e9 23#
e2a47002 24
25include ../Makedefs
26
5f82b2f5 27TARGETS = hpgltops texttops pstops imagetops imagetoraster \
40c1123a 28 rastertoepson rastertohp
ed19bd98 29
e2a47002 30HPGLOBJS = 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
d8916a11 32IMAGEOBJS = 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
a2c6b8b1 36FORMOBJS = form-attr.o form-main.o form-ps.o form-text.o form-tree.o
37OBJS = $(HPGLOBJS) $(IMAGEOBJS) $(FORMOBJS) \
38 imagetops.o imagetoraster.o common.o pstops.o raster.o \
39 rastertoepson.o rastertohp.o texttops.o textcommon.o
40
e2a47002 41
898749d4 42#
e2a47002 43# Make all targets...
898749d4 44#
45
e2a47002 46all: $(TARGETS)
47
a2c6b8b1 48
898749d4 49#
e2a47002 50# Clean all object files...
898749d4 51#
52
e2a47002 53clean:
8a2c2126 54 $(RM) $(OBJS) $(TARGETS) $(LIBCUPSIMAGE)
898749d4 55
a2c6b8b1 56
e2a47002 57#
58# Install all targets...
59#
898749d4 60
e2a47002 61install:
f63a2256 62 -$(MKDIR) $(SERVERBIN)/filter
a3e17a89 63 $(INSTALL_BIN) $(TARGETS) $(SERVERBIN)/filter
f63a2256 64 -$(MKDIR) $(INCLUDEDIR)/cups
a3e17a89 65 $(INSTALL_DATA) raster.h $(INCLUDEDIR)/cups
7e8966ca 66 -$(MKDIR) $(LIBDIR)
a3e17a89 67 $(INSTALL_DATA) $(LIBCUPSIMAGE) $(LIBDIR)
ea315b09 68 -if test $(LIBCUPSIMAGE) != "libcupsimage.a" -a $(LIBCUPSIMAGE) != "libcupsimage.la"; then \
7131922f 69 $(RM) `basename $(LIBCUPSIMAGE) .2`; \
70 $(LN) $(LIBCUPSIMAGE) `basename $(LIBCUPSIMAGE) .2`; \
7e8966ca 71 fi
898749d4 72
a2c6b8b1 73
74#
75# formtops
76#
77
78formtops: $(FORMOBJS) common.o ../Makedefs ../cups/$(LIBCUPS)
79 echo Linking $@...
80 $(CC) $(LDFLAGS) -o $@ $(FORMOBJS) common.o $(LIBS) -lm
81$(FORMOBJS): form.h
82
83
898749d4 84#
e2a47002 85# hpgltops
898749d4 86#
87
7e8966ca 88hpgltops: $(HPGLOBJS) common.o ../Makedefs ../cups/$(LIBCUPS)
37005c09 89 echo Linking $@...
2d35d8ee 90 $(CC) $(LDFLAGS) -o $@ $(HPGLOBJS) common.o $(LIBS) -lm
91$(HPGLOBJS): hpgltops.h
898749d4 92
a2c6b8b1 93
898749d4 94#
7131922f 95# libcupsimage.so.2, libcupsimage.sl.2
898749d4 96#
97
7131922f 98libcupsimage.so.2 libcupsimage.sl.2: $(IMAGEOBJS) raster.o ../Makedefs
7e8966ca 99 echo Linking $@...
aff2356d 100 $(DSO) $@ $(IMAGEOBJS) raster.o $(DSOLIBS) -lm
f99d4fce 101 $(RM) `basename $@ .2`
102 $(LN) $@ `basename $@ .2`
7e8966ca 103
a2c6b8b1 104
ea315b09 105#
106# libcupsimage.la
107#
108
109libcupsimage.la: $(IMAGEOBJS) raster.o ../Makedefs
110 echo Linking $@...
111 $(CC) -o $@ $(IMAGEOBJS:.o=.lo) raster.lo -rpath $(LIBDIR) \
112 -version-info 2:0
113
114
7e8966ca 115#
116# libcupsimage.a
117#
118
aff2356d 119libcupsimage.a: $(IMAGEOBJS) raster.o ../Makedefs
37005c09 120 echo Archiving $@...
e2a47002 121 $(RM) $@
aff2356d 122 $(AR) $(ARFLAGS) $@ $(IMAGEOBJS) raster.o
e2a47002 123 $(RANLIB) $@
7e8966ca 124
2d35d8ee 125$(IMAGEOBJS): image.h
aff2356d 126raster.o: raster.h
898749d4 127
a2c6b8b1 128
898749d4 129#
e2a47002 130# imagetops
898749d4 131#
132
7e8966ca 133imagetops: imagetops.o common.o $(LIBCUPSIMAGE) ../Makedefs \
134 ../cups/$(LIBCUPS)
37005c09 135 echo Linking $@...
ea315b09 136 $(CC) $(LDFLAGS) -o $@ imagetops.o common.o $(LINKCUPSIMAGE) \
7e8966ca 137 $(IMGLIBS) $(LIBS)
2d35d8ee 138imagetops: common.h image.h
e2a47002 139
a2c6b8b1 140
e2a47002 141#
142# imagetoraster
143#
144
7e8966ca 145imagetoraster: imagetoraster.o common.o $(LIBCUPSIMAGE) ../Makedefs \
146 ../cups/$(LIBCUPS)
37005c09 147 echo Linking $@...
ea315b09 148 $(CC) $(LDFLAGS) -o $@ imagetoraster.o common.o $(LINKCUPSIMAGE) \
7e8966ca 149 $(IMGLIBS) $(LIBS)
aff2356d 150imagetoraster: common.h image.h raster.h
e2a47002 151
a2c6b8b1 152
e2a47002 153#
154# pstops
155#
156
7e8966ca 157pstops: pstops.o common.o ../Makedefs ../cups/$(LIBCUPS)
37005c09 158 echo Linking $@...
ed19bd98 159 $(CC) $(LDFLAGS) -o $@ pstops.o common.o $(LIBS)
160pstops.o: common.h
e2a47002 161
a2c6b8b1 162
40c1123a 163#
164# rastertoepson
165#
166
ea315b09 167rastertoepson: rastertoepson.o ../Makedefs ../cups/$(LIBCUPS) $(LIBCUPSIMAGE)
40c1123a 168 echo Linking $@...
ea315b09 169 $(CC) $(LDFLAGS) -o $@ rastertoepson.o $(LINKCUPSIMAGE) $(LIBS)
40c1123a 170rastertoepson.o: raster.h
171
a2c6b8b1 172
5f82b2f5 173#
ba8a42d9 174# rastertohp
5f82b2f5 175#
176
ea315b09 177rastertohp: rastertohp.o ../Makedefs ../cups/$(LIBCUPS) $(LIBCUPSIMAGE)
37005c09 178 echo Linking $@...
ea315b09 179 $(CC) $(LDFLAGS) -o $@ rastertohp.o $(LINKCUPSIMAGE) $(LIBS)
aff2356d 180rastertohp.o: raster.h
5f82b2f5 181
a2c6b8b1 182
e2a47002 183#
184# texttops
185#
898749d4 186
7e8966ca 187texttops: texttops.o textcommon.o common.o ../Makedefs \
188 ../cups/$(LIBCUPS)
37005c09 189 echo Linking $@...
2d35d8ee 190 $(CC) $(LDFLAGS) -o $@ texttops.o textcommon.o common.o $(LIBS)
191texttops.o: common.h textcommon.h
192
193common.o: common.h
194textcommon.o: textcommon.h common.h
a2c6b8b1 195
196
2d35d8ee 197$(OBJS): ../Makedefs ../cups/cups.h ../cups/ppd.h ../cups/language.h
898749d4 198
a2c6b8b1 199
898749d4 200#
d8916a11 201# End of "$Id: Makefile,v 1.31 2000/04/30 22:03:56 mike Exp $".
898749d4 202#