]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/Makefile
Load cups into easysw/current.
[thirdparty/cups.git] / filter / Makefile
index 9defb35b73a5b75e72f1effd0e593e2b24bfd663..06a31d5e165e9dbfd9ae1231b1f4739b7e472a16 100644 (file)
@@ -1,9 +1,9 @@
 #
-# "$Id: Makefile 4804 2005-10-20 14:05:42Z mike $"
+# "$Id: Makefile 5192 2006-02-27 03:08:47Z mike $"
 #
 #   Filter makefile for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 1997-2005 by Easy Software Products.
+#   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
@@ -71,14 +71,14 @@ depend:
 # Install all targets...
 #
 
-install:       all installhdrs
-       $(INSTALL_DIR) $(SERVERBIN)/filter
+install:       all installhdrs $(INSTALLSTATIC)
+       $(INSTALL_DIR) -m 755 $(SERVERBIN)/filter
        for file in $(FILTERS); do \
                $(INSTALL_BIN) $$file $(SERVERBIN)/filter; \
        done
        $(RM) $(SERVERBIN)/filter/rastertodymo
        $(LN) rastertolabel $(SERVERBIN)/filter/rastertodymo
-       $(INSTALL_DIR) $(LIBDIR)
+       $(INSTALL_DIR) -m 755 $(LIBDIR)
        $(INSTALL_LIB) $(LIBCUPSIMAGE) $(LIBDIR)
        -if test $(LIBCUPSIMAGE) = "libcupsimage.so.2" -o $(LIBCUPSIMAGE) = "libcupsimage.sl.2"; then \
                $(RM) $(LIBDIR)/`basename $(LIBCUPSIMAGE) .2`; \
@@ -89,17 +89,31 @@ install:    all installhdrs
                $(RM) $(LIBDIR)/libcupsimage.dylib; \
                $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/libcupsimage.dylib; \
        fi
+
+installstatic:
+       $(INSTALL_DIR) -m 755 $(LIBDIR)
        -if test $(LIBCUPSIMAGE) != "libcupsimage.a"; then \
                $(INSTALL_LIB) libcupsimage.a $(LIBDIR); \
                $(RANLIB) $(LIBDIR)/libcupsimage.a; \
        fi
 
 installhdrs:
-       $(INSTALL_DIR) $(INCLUDEDIR)/cups
+       $(INSTALL_DIR) -m 755 $(INCLUDEDIR)/cups
        $(INSTALL_DATA) image.h $(INCLUDEDIR)/cups
        $(INSTALL_DATA) raster.h $(INCLUDEDIR)/cups
 
 
+#
+# Automatic API help files...
+#
+
+apihelp:
+       echo Generating CUPS API help files...
+       mxmldoc --section "Programming" --title "Raster API" \
+               --intro api-raster.shtml \
+               raster.h interpret.c raster.c >../doc/help/api-raster.html
+
+
 #
 # formtops
 #
@@ -145,7 +159,7 @@ libcupsimage.so.2 libcupsimage.sl.2:        $(IMAGEOBJS)
 libcupsimage.2.dylib:  $(IMAGEOBJS)
        echo Linking $@...
        $(DSO) $(DSOFLAGS) -o $@ \
-               -install_name $(libdir)/libcupsimage.dylib \
+               -install_name $(libdir)/$@ \
                -current_version 2.2.0 \
                -compatibility_version 2.0.0 \
                $(IMAGEOBJS) $(DSOLIBS) -L../cups $(LINKCUPS) -lm
@@ -224,7 +238,7 @@ imagetoraster:      imagetoraster.o common.o $(LIBCUPSIMAGE) \
 
 pstops:        pstops.o common.o ../cups/$(LIBCUPS)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ pstops.o common.o $(LIBS)
+       $(CC) $(LDFLAGS) -o $@ pstops.o common.o $(LIBS) -lm
 
 
 #
@@ -281,5 +295,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile 4804 2005-10-20 14:05:42Z mike $".
+# End of "$Id: Makefile 5192 2006-02-27 03:08:47Z mike $".
 #