]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/Makefile
Merge changes from CUPS 1.4svn-r8227.
[thirdparty/cups.git] / filter / Makefile
index 61d578ce7f552f9a12dac878f228e297af906639..0f6d694113fce8308d3882c8af6fbc96001b661e 100644 (file)
@@ -1,9 +1,9 @@
 #
-# "$Id: Makefile 6696 2007-07-19 23:27:49Z mike $"
+# "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $"
 #
 #   Filter makefile for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 2007-2008 by Apple Inc.
+#   Copyright 2007-2009 by Apple Inc.
 #   Copyright 1997-2006 by Easy Software Products.
 #
 #   These coded instructions, statements, and computer programs are the
@@ -19,10 +19,11 @@ include ../Makedefs
 
 
 FILTERS        =       \
+               $(BANNERTOPS) \
                commandtops \
                gziptoany \
                hpgltops \
-               texttops \
+               $(TEXTTOPS) \
                pstops \
                $(IMGFILTERS) \
                $(PDFTOPS) \
@@ -33,13 +34,14 @@ LIBTARGETS =        \
                $(LIBCUPSIMAGE) \
                libcupsimage.a \
                $(LIB32CUPSIMAGE) \
-               $(LIB64CUPSIMAGE) \
+               $(LIB64CUPSIMAGE)
+UNITTARGETS =  \
+               rasterbench \
+               testimage \
                testraster
 TARGETS        =       \
                $(LIBTARGETS) \
-               $(FILTERS) \
-               rasterbench \
-               testimage
+               $(FILTERS)
 
 HPGLOBJS =     hpgl-attr.o hpgl-config.o hpgl-main.o hpgl-prolog.o \
                hpgl-char.o hpgl-input.o hpgl-polygon.o hpgl-vector.o
@@ -51,8 +53,8 @@ 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) \
-               commandtops.o gziptoany.o imagetops.o imagetoraster.o common.o \
-               pdftops.o pstops.o \
+               bannertops.o commandtops.o gziptoany.o imagetops.o \
+               imagetoraster.o common.o pdftops.o pstext.o pstops.o \
                rasterbench.o rastertoepson.o rastertohp.o rastertolabel.o \
                testimage.o testraster.o textcommon.o texttops.o
 
@@ -71,12 +73,19 @@ all:        $(TARGETS)
 libs:          $(LIBTARGETS)
 
 
+#
+# Make unit tests...
+#
+
+unittests:     $(UNITTARGETS)
+
+
 #
 # Clean all object files...
 #
 
 clean:
-       $(RM) $(OBJS) $(TARGETS)
+       $(RM) $(OBJS) $(TARGETS) $(UNITTARGETS)
        $(RM) libcupsimage.so libcupsimage.sl libcupsimage.dylib
        $(RM) -r 32bit 64bit
 
@@ -214,6 +223,24 @@ apihelp:
                --header api-raster.header --intro api-raster.shtml \
                ../cups/raster.h interpret.c raster.c \
                >../doc/help/api-raster.html
+       mxmldoc --section "Programming" \
+               --title "Developing PostScript Printer Drivers" \
+               --css ../doc/cups-printable.css \
+               --header postscript-driver.header \
+               --intro postscript-driver.shtml \
+               >../doc/help/postscript-driver.html
+       mxmldoc --section "Programming" \
+               --title "Introduction to the PPD Compiler" \
+               --css ../doc/cups-printable.css \
+               --header ppd-compiler.header \
+               --intro ppd-compiler.shtml \
+               >../doc/help/ppd-compiler.html
+       mxmldoc --section "Programming" \
+               --title "Developing Raster Printer Drivers" \
+               --css ../doc/cups-printable.css \
+               --header raster-driver.header \
+               --intro raster-driver.shtml \
+               >../doc/help/raster-driver.html
 
 framedhelp:
        echo Generating CUPS API help files...
@@ -222,6 +249,53 @@ framedhelp:
                --css ../doc/cups-printable.css \
                --header api-raster.header --intro api-raster.shtml \
                ../cups/raster.h interpret.c raster.c
+       mxmldoc --section "Programming" \
+               --title "Developing PostScript Printer Drivers" \
+               --framed ../cups/postscript-driver \
+               --css ../doc/cups-printable.css \
+               --header postscript-driver.header \
+               --intro postscript-driver.shtml
+       mxmldoc --section "Programming" \
+               --title "Introduction to the PPD Compiler" \
+               --framed ../cups/ppd-compiler \
+               --css ../doc/cups-printable.css \
+               --header ppd-compiler.header \
+               --intro ppd-compiler.shtml
+       mxmldoc --section "Programming" \
+               --title "Developing Raster Printer Drivers" \
+               --framed ../cups/raster-driver \
+               --css ../doc/cups-printable.css \
+               --header raster-driver.header \
+               --intro raster-driver.shtml
+
+docsets:
+       echo Generating CUPS API documentation sets...
+       ../tools/makedocset --docset org.cups.raster.docset \
+               --title "Raster API" \
+               --header api-raster.header --intro api-raster.shtml \
+               ../cups/raster.h interpret.c raster.c
+       ../tools/makedocset --docset org.cups.postscript-driver.docset \
+               --title "Developing PostScript Printer Drivers" \
+               --header postscript-driver.header \
+               --intro postscript-driver.shtml
+       ../tools/makedocset --docset org.cups.ppd-compiler.docset \
+               --title "Introduction to the PPD Compiler" \
+               --header ppd-compiler.header \
+               --intro ppd-compiler.shtml
+       ../tools/makedocset --docset org.cups.raster-driver.docset \
+               --title "Developing Raster Printer Drivers" \
+               --header raster-driver.header \
+               --intro raster-driver.shtml
+
+
+#
+# bannertops
+#
+
+bannertops:    bannertops.o pstext.o common.o ../cups/$(LIBCUPS) $(LIBCUPSIMAGE)
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o $@ bannertops.o pstext.o common.o $(LINKCUPSIMAGE) \
+               $(IMGLIBS) $(LIBS)
 
 
 #
@@ -429,7 +503,7 @@ testraster: testraster.o ../cups/libcups.a libcupsimage.a
        echo Linking $@...
        $(CC) $(ARCHFLAGS) $(LDFLAGS) -o $@ testraster.o libcupsimage.a \
                ../cups/libcups.a $(IMGLIBS) $(DSOLIBS) $(COMMONLIBS) \
-               $(SSLLIBS) $(LIBGSSAPI)
+               $(SSLLIBS) $(DNSSDLIBS) $(LIBGSSAPI)
        echo Running raster API tests...
        ./testraster
 
@@ -461,5 +535,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile 6696 2007-07-19 23:27:49Z mike $".
+# End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $".
 #