]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/Makefile
Merge changes from CUPS 1.3.1.
[thirdparty/cups.git] / scheduler / Makefile
index adbebbf54aba0600edba8c4a1994f4db67d2e07a..08752d28f009a1999ea861cbf6147cc4930a3825 100644 (file)
@@ -1,25 +1,16 @@
 #
-# "$Id: Makefile 5116 2006-02-16 12:52:32Z mike $"
+# "$Id: Makefile 6802 2007-08-16 18:44:46Z mike $"
 #
 #   Scheduler Makefile for the Common UNIX Printing System (CUPS).
 #
-#   Copyright 1997-2006 by Easy Software Products, all rights reserved.
+#   Copyright 2007 by Apple Inc.
+#   Copyright 1997-2007 by Easy Software Products, all rights reserved.
 #
 #   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/".
 #
 
 include ../Makedefs
@@ -43,6 +34,8 @@ CUPSDOBJS =   \
                printers.o \
                process.o \
                quotas.o \
+               removefile.o \
+               select.o \
                server.o \
                statbuf.o \
                subscriptions.o \
@@ -54,24 +47,30 @@ MIMEOBJS =  \
 OBJS   =       \
                $(CUPSDOBJS) \
                $(MIMEOBJS) \
+               cupsfilter.o \
                cups-deviced.o \
                cups-driverd.o \
                cups-lpd.o \
                cups-polld.o \
                testdirsvc.o \
+               testlpd.o \
                testmime.o \
                testspeed.o \
+               testsub.o \
                util.o
 TARGETS        =       \
                cupsd \
+               cupsfilter \
                cups-deviced \
                cups-driverd \
                cups-lpd \
                cups-polld \
                libmime.a \
                testdirsvc \
+               testlpd \
                testmime \
-               testspeed
+               testspeed \
+               testsub
 
 
 #
@@ -87,7 +86,7 @@ all:          $(TARGETS)
 
 clean:
        $(RM) $(OBJS)
-       $(RM) $(TARGETS)
+       $(RM) $(TARGETS) convert
 
 
 #
@@ -107,6 +106,8 @@ install:    all
        $(INSTALL_DIR) -m 755 $(SBINDIR)
        echo Installing cupsd in $(SBINDIR)...
        $(INSTALL_BIN) cupsd $(SBINDIR)
+       echo Installing cupsfilter in $(SBINDIR)...
+       $(INSTALL_BIN) cupsfilter $(SBINDIR)
        echo Creating $(SERVERBIN)...
        $(INSTALL_DIR) -m 755 $(SERVERBIN)
        echo Creating $(SERVERBIN)/daemon...
@@ -127,11 +128,19 @@ install:  all
        echo Creating $(SERVERROOT)/ppd...
        $(INSTALL_DIR) -m 755 $(SERVERROOT)/ppd
        -chgrp $(CUPS_GROUP) $(SERVERROOT)/ppd
-       echo Creating $(STATEDIR)...
-       $(INSTALL_DIR) -m 755 $(STATEDIR)
-       echo Creating $(STATEDIR)/certs...
-       $(INSTALL_DIR) -m 511 $(STATEDIR)/certs
-       -chgrp $(CUPS_PRIMARY_SYSTEM_GROUP) $(STATEDIR)/certs
+       -if test "x`uname`" = xDarwin; then \
+               $(INSTALL_DIR) $(BUILDROOT)/System/Library/Printers/Libraries; \
+               $(LN) $(sbindir)/cupsfilter $(BUILDROOT)/System/Library/Printers/Libraries/convert; \
+       else \
+               echo Creating $(SERVERROOT)/ssl...; \
+               $(INSTALL_DIR) -m 700 $(SERVERROOT)/ssl; \
+               chgrp $(CUPS_GROUP) $(SERVERROOT)/ssl || true; \
+               echo Creating $(STATEDIR)...; \
+               $(INSTALL_DIR) -m 755 $(STATEDIR); \
+               echo Creating $(STATEDIR)/certs...; \
+               $(INSTALL_DIR) -m 511 $(STATEDIR)/certs; \
+               chgrp $(CUPS_PRIMARY_SYSTEM_GROUP) $(STATEDIR)/certs || true; \
+       fi
        echo Creating $(LOGDIR)...
        $(INSTALL_DIR) -m 755 $(LOGDIR)
        echo Creating $(REQUESTS)...
@@ -146,6 +155,39 @@ install:   all
 #      echo Creating $(CACHEDIR)/ppd...
 #      $(INSTALL_DIR) -m 755 $(CACHEDIR)/ppd
 #      -chgrp $(CUPS_GROUP) $(CACHEDIR)/ppd
+       if test "x$(SYMROOT)" != "x"; then \
+               $(INSTALL_DIR) $(SYMROOT); \
+               for file in $(TARGETS); do \
+                       cp $$file $(SYMROOT); \
+               done \
+       fi
+
+
+#
+# Uninstall the scheduler...
+#
+
+uninstall:     all
+       $(RM) $(SBINDIR)/cupsd
+       $(RM) $(SBINDIR)/cupsfilter
+       $(RM) $(SERVERBIN)/daemon/cups-deviced
+       $(RM) $(SERVERBIN)/daemon/cups-driverd
+       $(RM) $(SERVERBIN)/daemon/cups-lpd
+       $(RM) $(SERVERBIN)/daemon/cups-polld
+       $(RM) $(BUILDROOT)/System/Library/Printers/Libraries/convert
+       -$(RMDIR) $(STATEDIR)/certs
+       -$(RMDIR) $(STATEDIR)
+       -$(RMDIR) $(SERVERROOT)/ppd
+       -$(RMDIR) $(SERVERROOT)/interfaces
+       -$(RMDIR) $(SERVERROOT)
+       -$(RMDIR) $(SERVERBIN)/driver
+       -$(RMDIR) $(SERVERBIN)/daemon
+       -$(RMDIR) $(SERVERBIN)
+       -$(RMDIR) $(SBINDIR)
+       -$(RMDIR) $(REQUESTS)/tmp
+       -$(RMDIR) $(REQUESTS)
+       -$(RMDIR) $(LOGDIR)
+       -$(RMDIR) $(CACHEDIR)
 
 
 #
@@ -155,14 +197,27 @@ install:  all
 cupsd: $(CUPSDOBJS) libmime.a ../cups/$(LIBCUPS)
        echo Linking $@...
        $(CC) $(LDFLAGS) -o cupsd $(CUPSDOBJS) libmime.a \
-               $(LIBZ) $(SSLLIBS) $(LIBSLP) $(PAMLIBS) \
-               $(LIBPAPER) $(LIBMALLOC) $(CUPSDLIBS) $(LIBS)
+               $(LIBZ) $(SSLLIBS) $(LIBSLP) $(LIBLDAP) $(PAMLIBS) \
+               $(LIBPAPER) $(LIBMALLOC) $(CUPSDLIBS) $(DNSSDLIBS) $(LIBS) \
+               $(LIBGSSAPI)
 
 cupsd-static:  $(CUPSDOBJS) libmime.a ../cups/libcups.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o cupsd-static $(CUPSDOBJS) libmime.a \
-               $(LIBZ) $(SSLLIBS) $(LIBSLP) $(PAMLIBS) ../cups/libcups.a \
-               $(COMMONLIBS) $(LIBZ) $(LIBPAPER) $(LIBMALLOC) $(CUPSDLIBS)
+               $(LIBZ) $(SSLLIBS) $(LIBSLP) $(LIBLDAP) $(PAMLIBS) \
+               ../cups/libcups.a $(COMMONLIBS) $(LIBZ) $(LIBPAPER) \
+               $(LIBMALLOC) $(CUPSDLIBS) $(DNSSDLIBS) $(LIBGSSAPI)
+
+
+#
+# Make the cupsfilter utility.
+#
+
+cupsfilter:    cupsfilter.o libmime.a ../cups/$(LIBCUPS)
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o cupsfilter cupsfilter.o libmime.a $(LIBS)
+       $(RM) convert
+       $(LN) cupsfilter convert
 
 
 #
@@ -221,6 +276,16 @@ testdirsvc:        testdirsvc.o
        $(CC) $(LDFLAGS) -o testdirsvc testdirsvc.o $(COMMONLIBS) $(NETLIBS)
 
 
+#
+# Make the test program, "testlpd".
+#
+
+testlpd:       testlpd.o ../cups/libcups.a cups-lpd
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o testlpd testlpd.o ../cups/libcups.a \
+               $(COMMONLIBS) $(LIBZ) $(SSLLIBS) $(LIBGSSAPI)
+
+
 #
 # testmime
 #
@@ -228,16 +293,27 @@ testdirsvc:       testdirsvc.o
 testmime:      testmime.o libmime.a ../cups/libcups.a
        echo Linking $@...
        $(CC) $(LDFLAGS) -o $@ testmime.o libmime.a ../cups/libcups.a \
-               $(COMMONLIBS) $(LIBZ) $(SSLLIBS)
+               $(COMMONLIBS) $(LIBZ) $(SSLLIBS) $(LIBGSSAPI)
 
 
 #
 # Make the test program, "testspeed".
 #
 
-testspeed:     testspeed.o ../cups/$(LIBCUPS)
+testspeed:     testspeed.o ../cups/libcups.a
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o testspeed testspeed.o ../cups/libcups.a \
+               $(SSLLIBS) $(COMMONLIBS) $(LIBZ) $(LIBGSSAPI)
+
+
+#
+# Make the test program, "testsub".
+#
+
+testsub:       testsub.o ../cups/libcups.a
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o testspeed testspeed.o $(LIBS)
+       $(CC) $(LDFLAGS) -o testsub testsub.o ../cups/libcups.a \
+               $(SSLLIBS) $(COMMONLIBS) $(LIBZ) $(LIBGSSAPI)
 
 
 #
@@ -248,5 +324,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile 5116 2006-02-16 12:52:32Z mike $".
+# End of "$Id: Makefile 6802 2007-08-16 18:44:46Z mike $".
 #