]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / filter / Makefile
index 79b7fecb26382feb989bb81bd1859e30f4dba1e6..36e947ce255b35ba07fba304d21204a85050aef2 100644 (file)
@@ -1,31 +1,23 @@
 #
-# "$Id: Makefile 5354 2006-03-29 20:55:15Z mike $"
+# "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $"
 #
 #   Filter makefile for the Common UNIX Printing System (CUPS).
 #
+#   Copyright 2007 by Apple Inc.
 #   Copyright 1997-2006 by Easy Software Products.
 #
 #   These coded instructions, statements, and computer programs are the
-#   property of Easy Software Products and are protected by Federal
-#   copyright law.  Distribution and use rights are outlined in the file
-#   "LICENSE.txt" which should have been included with this file.  If this
-#   file is missing or damaged please contact Easy Software Products
-#   at:
-#
-#       Attn: CUPS Licensing Information
-#       Easy Software Products
-#       44141 Airport View Drive, Suite 204
-#       Hollywood, Maryland 20636 USA
-#
-#       Voice: (301) 373-9600
-#       EMail: cups-info@cups.org
-#         WWW: http://www.cups.org
+#   property of Apple Inc. and are protected by Federal copyright
+#   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+#   which should have been included with this file.  If this file is
+#   file is missing or damaged, see the license at "http://www.cups.org/".
 #
 #   This file is subject to the Apple OS-Developed Software exception.
 #
 
 include ../Makedefs
 
+
 FILTERS        =       gziptoany hpgltops texttops pstops $(IMGFILTERS) \
                rastertolabel rastertoepson rastertohp
 TARGETS        =       $(FILTERS) \
@@ -33,6 +25,7 @@ TARGETS       =       $(FILTERS) \
                libcupsimage.a \
                $(LIB32CUPSIMAGE) \
                $(LIB64CUPSIMAGE) \
+               rasterbench \
                testimage \
                testraster
 
@@ -41,13 +34,13 @@ HPGLOBJS =  hpgl-attr.o hpgl-config.o hpgl-main.o hpgl-prolog.o \
 IMAGEOBJS =    image-bmp.o image-colorspace.o image-gif.o image-jpeg.o \
                image-photocd.o image-pix.o image-png.o image-pnm.o \
                image-sgi.o image-sgilib.o image-sun.o image-tiff.o \
-               image-zoom.o image.o interpret.o raster.o
+               image-zoom.o image.o error.o interpret.o raster.o
 IMAGE32OBJS =  $(IMAGEOBJS:.o=.32.o)
 IMAGE64OBJS =  $(IMAGEOBJS:.o=.64.o)
 FORMOBJS =     form-attr.o form-main.o form-ps.o form-text.o form-tree.o
 OBJS   =       $(HPGLOBJS) $(IMAGEOBJS) $(FORMOBJS) \
                gziptoany.o imagetops.o imagetoraster.o common.o pstops.o \
-               raster.o rastertoepson.o rastertohp.o rastertolabel.o \
+               rasterbench.o rastertoepson.o rastertohp.o rastertolabel.o \
                testimage.o testraster.o textcommon.o texttops.o
 
 
@@ -65,7 +58,7 @@ all:  $(TARGETS)
 clean:
        $(RM) $(OBJS) $(TARGETS)
        $(RM) libcupsimage.so libcupsimage.sl libcupsimage.dylib
-       $(RM) libcupsimage.32.so libcupsimage.64.so
+       $(RM) -r 32bit 64bit
 
 
 #
@@ -104,6 +97,12 @@ install:    all installhdrs $(INSTALLSTATIC) $(INSTALL32) $(INSTALL64)
                $(RM) $(LIBDIR)/libcupsimage.dylib; \
                $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/libcupsimage.dylib; \
        fi
+       if test "x$(SYMROOT)" != "x"; then \
+               $(INSTALL_DIR) $(SYMROOT); \
+               for file in $(TARGETS); do \
+                       cp $$file $(SYMROOT); \
+               done \
+       fi
 
 installstatic:
        $(INSTALL_DIR) -m 755 $(LIBDIR)
@@ -117,13 +116,13 @@ installhdrs:
 
 install32bit:
        $(INSTALL_DIR) -m 755 $(LIB32DIR)
-       $(INSTALL_LIB) libcupsimage.32.so.2 $(LIB32DIR)/libcupsimage.so.2
-       $(LN) libcupsimage.so $(LIB32DIR)/libcupsimage.so.2
+       $(INSTALL_LIB) 32bit/libcupsimage.so.2 $(LIB32DIR)/libcupsimage.so.2
+       $(LN) libcupsimage.so.2 $(LIB32DIR)/libcupsimage.so
 
 install64bit:
        $(INSTALL_DIR) -m 755 $(LIB64DIR)
-       $(INSTALL_LIB) libcupsimage.64.so.2 $(LIB64DIR)/libcupsimage.so.2
-       $(LN) libcupsimage.so $(LIB64DIR)/libcupsimage.so.2
+       $(INSTALL_LIB) 64bit/libcupsimage.so.2 $(LIB64DIR)/libcupsimage.so.2
+       $(LN) libcupsimage.so.2 $(LIB64DIR)/libcupsimage.so
 
 
 #
@@ -205,27 +204,32 @@ hpgltops: $(HPGLOBJS) common.o ../cups/$(LIBCUPS)
 
 libcupsimage.so.2 libcupsimage.sl.2:   $(IMAGEOBJS)
        echo Linking $@...
-       $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(IMAGEOBJS) $(DSOLIBS) -lm
+       $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(IMAGEOBJS) $(DSOLIBS) \
+               -L../cups $(LINKCUPS) -lm
        $(RM) `basename $@ .2`
        $(LN) $@ `basename $@ .2`
 
 
 #
-# libcupsimage.32.so.2
+# 32bit/libcupsimage.so.2
 #
 
-libcupsimage.32.so.2:  $(IMAGE32OBJS)
+32bit/libcupsimage.so.2:       $(IMAGE32OBJS)
        echo Linking 32-bit $@...
-       $(DSO) $(ARCH32FLAGS) $(DSOFLAGS) -o $@ $(IMAGE32OBJS) $(DSOLIBS) -lm
+       -mkdir 32bit
+       $(DSO) $(ARCH32FLAGS) $(DSO32FLAGS) -o $@ $(IMAGE32OBJS) $(DSOLIBS) \
+               -L../cups/32bit $(LINKCUPS) -lm
 
 
 #
-# libcupsimage.64.so.2
+# 64bit/libcupsimage.so.2
 #
 
-libcupsimage.64.so.2:  $(IMAGE64OBJS)
+64bit/libcupsimage.so.2:       $(IMAGE64OBJS)
        echo Linking 64-bit $@...
-       $(DSO) $(ARCH64FLAGS) $(DSOFLAGS) -o $@ $(IMAGE64OBJS) $(DSOLIBS) -lm
+       -mkdir 64bit
+       $(DSO) $(ARCH64FLAGS) $(DSO64FLAGS) -o $@ $(IMAGE64OBJS) $(DSOLIBS) \
+               -L../cups/64bit $(LINKCUPS) -lm
 
 
 #
@@ -236,7 +240,7 @@ libcupsimage.2.dylib:       $(IMAGEOBJS)
        echo Linking $@...
        $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ \
                -install_name $(libdir)/$@ \
-               -current_version 2.2.0 \
+               -current_version 2.3.0 \
                -compatibility_version 2.0.0 \
                $(IMAGEOBJS) $(DSOLIBS) -L../cups $(LINKCUPS) -lm
        $(RM) libcupsimage.dylib
@@ -247,7 +251,7 @@ libcupsimage.2.dylib:       $(IMAGEOBJS)
 # libcupsimage_s.a
 #
 
-libcupsimage_s.a:      $(IMAGEOBJS)
+libcupsimage_s.a:      $(IMAGEOBJS) libcupsimage_s.exp
        echo Linking $@...
        $(DSO) $(DSOFLAGS) -Wl,-berok,-bexport:libcupsimage_s.exp \
                -o libcupsimage_s.o $(IMAGEOBJS) $(DSOLIBS) -lm
@@ -262,7 +266,8 @@ libcupsimage_s.a:   $(IMAGEOBJS)
 libcupsimage.la:       $(IMAGEOBJS)
        echo Linking $@...
        $(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(IMAGEOBJS:.o=.lo) $(DSOLIBS) \
-               -rpath $(LIBDIR) -version-info 2:2
+               -L../cups $(LINKCUPS) \
+               -rpath $(LIBDIR) -version-info 2:3
 
 
 #
@@ -348,9 +353,19 @@ rastertohp:        rastertohp.o ../cups/$(LIBCUPS) $(LIBCUPSIMAGE)
 # testraster
 #
 
-testraster:    testraster.o raster.o
+testraster:    testraster.o ../cups/libcups.a libcupsimage.a
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o $@ testraster.o libcupsimage.a ../cups/libcups.a \
+               $(IMGLIBS) $(DSOLIBS) $(COMMONLIBS) $(SSLLIBS) $(LIBGSSAPI)
+
+
+#
+# rasterbench
+#
+
+rasterbench:   rasterbench.o libcupsimage.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ testraster.o raster.o
+       $(CC) $(LDFLAGS) -o $@ rasterbench.o libcupsimage.a $(LIBS)
 
 
 #
@@ -371,5 +386,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile 5354 2006-03-29 20:55:15Z mike $".
+# End of "$Id: Makefile 6649 2007-07-11 21:46:42Z mike $".
 #