]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - systemv/Makefile
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / systemv / Makefile
index 14326f53411d02668247223d4c159555614bd746..7515d511460d39ff42de07a435cb55e3a5c2f626 100644 (file)
@@ -1,33 +1,22 @@
 #
-# "$Id: Makefile 5317 2006-03-21 02:35:37Z mike $"
+# System V commands makefile for CUPS.
 #
-#   System V commands makefile for the Common UNIX Printing System (CUPS).
+# Copyright 2007-2014 by Apple Inc.
+# Copyright 1997-2006 by Easy Software Products, all rights reserved.
 #
-#   Copyright 1997-2006 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
+# These coded instructions, statements, and computer programs are the
+# 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
+# missing or damaged, see the license at "http://www.cups.org/".
 #
 
 include ../Makedefs
 
-TARGETS        =       accept cancel cupsaddsmb cupstestdsc cupstestppd \
-               lp lpadmin lpinfo lpmove lpoptions lppasswd lpstat
-OBJS   =       accept.o cancel.o cupsaddsmb.o cupstestdsc.o cupstestppd.o \
-               lp.o lpadmin.o lpinfo.o lpmove.o lpoptions.o lppasswd.o \
+TARGETS        =       cancel cupsaccept cupsaddsmb cupsctl cupstestdsc cupstestppd \
+               lp lpadmin lpinfo lpmove lpoptions lpstat
+OBJS   =       cancel.o cupsaccept.o cupsaddsmb.o cupsctl.o cupstestdsc.o \
+               cupstestppd.o lp.o lpadmin.o lpinfo.o lpmove.o lpoptions.o \
                lpstat.o
 
 
@@ -38,12 +27,27 @@ OBJS        =       accept.o cancel.o cupsaddsmb.o cupstestdsc.o cupstestppd.o \
 all:   $(TARGETS)
 
 
+#
+# Make library targets...
+#
+
+libs:
+
+
+#
+# Make unit tests...
+#
+
+unittests:
+
+
 #
 # Clean all object files...
 #
 
 clean:
-       $(RM) $(OBJS) $(TARGETS) cupsdisable cupsenable reject
+       $(RM) $(OBJS) $(TARGETS)
+       $(RM) accept cupsdisable cupsenable cupsreject reject
 
 
 #
@@ -51,34 +55,75 @@ clean:
 #
 
 depend:
-       makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
+       $(CC) -MM $(ALL_CFLAGS) $(OBJS:.o=.c) >Dependencies
 
 
 #
 # Install all targets...
 #
 
-install:       all
+install:       all install-data install-headers install-libs install-exec
+
+
+#
+# Install data files...
+#
+
+install-data:
+
+
+#
+# Install programs...
+#
+
+install-exec:
+       echo Installing System V admin printing commands in $(SBINDIR)
        $(INSTALL_DIR) -m 755 $(SBINDIR)
-       $(INSTALL_BIN) accept $(SBINDIR)
-       $(RM) $(SBINDIR)/reject
-       $(LN) accept $(SBINDIR)/reject
+       $(INSTALL_BIN) cupsaccept $(SBINDIR)
        $(INSTALL_BIN) cupsaddsmb $(SBINDIR)
+       $(INSTALL_BIN) cupsctl $(SBINDIR)
        $(INSTALL_BIN) lpadmin $(SBINDIR)
        $(INSTALL_BIN) lpinfo $(SBINDIR)
        $(INSTALL_BIN) lpmove $(SBINDIR)
+       $(RM) $(SBINDIR)/accept
+       $(LN) cupsaccept $(SBINDIR)/accept
+       $(RM) $(SBINDIR)/cupsdisable
+       $(LN) cupsaccept $(SBINDIR)/cupsdisable
+       $(RM) $(SBINDIR)/cupsenable
+       $(LN) cupsaccept $(SBINDIR)/cupsenable
+       $(RM) $(SBINDIR)/cupsreject
+       $(LN) cupsaccept $(SBINDIR)/cupsreject
+       $(RM) $(SBINDIR)/reject
+       $(LN) cupsaccept $(SBINDIR)/reject
+       echo Installing System V user printing commands in $(BINDIR)
        $(INSTALL_DIR) -m 755 $(BINDIR)
        $(INSTALL_BIN) cancel $(BINDIR)
        $(INSTALL_BIN) cupstestdsc $(BINDIR)
        $(INSTALL_BIN) cupstestppd $(BINDIR)
-       $(RM) $(SBINDIR)/cupsdisable
-       $(LN) accept $(SBINDIR)/cupsdisable
-       $(RM) $(SBINDIR)/cupsenable
-       $(LN) accept $(SBINDIR)/cupsenable
        $(INSTALL_BIN) lp $(BINDIR)
        $(INSTALL_BIN) lpoptions $(BINDIR)
        $(INSTALL_BIN) lpstat $(BINDIR)
-       $(INSTALL_BIN) -m 4755 -o $(CUPS_USER) -g $(CUPS_GROUP) lppasswd $(BINDIR) || $(INSTALL_BIN) lppasswd $(BINDIR)
+       if test "x$(SYMROOT)" != "x"; then \
+               $(INSTALL_DIR) $(SYMROOT); \
+               for file in $(TARGETS); do \
+                       cp $$file $(SYMROOT); \
+                       dsymutil $(SYMROOT)/$$file; \
+               done \
+       fi
+
+
+#
+# Install headers...
+#
+
+install-headers:
+
+
+#
+# Install libraries...
+#
+
+install-libs:
 
 
 #
@@ -91,13 +136,15 @@ uninstall:
        $(RM) $(BINDIR)/cupstestppd
        $(RM) $(BINDIR)/lp
        $(RM) $(BINDIR)/lpoptions
-       $(RM) $(BINDIR)/lppasswd
        $(RM) $(BINDIR)/lpstat
        -$(RMDIR) $(BINDIR)
        $(RM) $(SBINDIR)/accept
+       $(RM) $(SBINDIR)/cupsaccept
        $(RM) $(SBINDIR)/cupsaddsmb
+       $(RM) $(SBINDIR)/cupsaccept
        $(RM) $(SBINDIR)/cupsdisable
        $(RM) $(SBINDIR)/cupsenable
+       $(RM) $(SBINDIR)/cupsreject
        $(RM) $(SBINDIR)/lpadmin
        $(RM) $(SBINDIR)/lpinfo
        $(RM) $(SBINDIR)/lpmove
@@ -106,25 +153,25 @@ uninstall:
 
 
 #
-# accept
+# cancel
 #
 
-accept:        accept.o ../cups/$(LIBCUPS)
+cancel:        cancel.o ../cups/$(LIBCUPS)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o accept accept.o $(LIBS)
-       $(RM) reject cupsenable cupsdisable
-       $(LN) accept reject
-       $(LN) accept cupsenable
-       $(LN) accept cupsdisable
+       $(CC) $(LDFLAGS) -o cancel cancel.o $(LIBS)
 
 
 #
-# cancel
+# cupsaccept
 #
 
-cancel:        cancel.o ../cups/$(LIBCUPS)
+cupsaccept:    cupsaccept.o ../cups/$(LIBCUPS)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o cancel cancel.o $(LIBS)
+       $(CC) $(LDFLAGS) -o cupsaccept cupsaccept.o $(LIBS)
+       for file in accept cupsenable cupsdisable cupsreject reject; do \
+               $(RM) $$file; \
+               $(LN) cupsaccept $$file; \
+       done
 
 
 #
@@ -136,6 +183,15 @@ cupsaddsmb:        cupsaddsmb.o ../cups/$(LIBCUPS)
        $(CC) $(LDFLAGS) -o cupsaddsmb cupsaddsmb.o $(LIBS)
 
 
+#
+# cupsctl
+#
+
+cupsctl:       cupsctl.o ../cups/$(LIBCUPS)
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o cupsctl cupsctl.o $(LIBS)
+
+
 #
 # cupstestdsc
 #
@@ -149,9 +205,14 @@ cupstestdsc:       cupstestdsc.o ../cups/$(LIBCUPS)
 # cupstestppd
 #
 
-cupstestppd:   cupstestppd.o ../cups/$(LIBCUPS)
+cupstestppd:   cupstestppd.o ../cups/$(LIBCUPS) ../filter/$(LIBCUPSIMAGE)
        echo Linking $@...
-       $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LIBS)
+       $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
+
+cupstestppd-static:    cupstestppd.o ../cups/$(LIBCUPSSTATIC) ../filter/libcupsimage.a
+       echo Linking $@...
+       $(CC) $(LDFLAGS) -o $@ cupstestppd.o ../filter/libcupsimage.a \
+               ../cups/$(LIBCUPSSTATIC) $(IMGLIBS) $(LIBGSSAPI) $(LIBS) $(LIBZ)
 
 
 #
@@ -199,15 +260,6 @@ lpoptions: lpoptions.o ../cups/$(LIBCUPS)
        $(CC) $(LDFLAGS) -o lpoptions lpoptions.o $(LIBZ) $(LIBS)
 
 
-#
-# lppasswd
-#
-
-lppasswd:      lppasswd.o ../cups/$(LIBCUPS)
-       echo Linking $@...
-       $(CC) $(LDFLAGS) -o lppasswd lppasswd.o $(LIBZ) $(LIBS)
-
-
 #
 # lpstat
 #
@@ -222,8 +274,3 @@ lpstat:     lpstat.o ../cups/$(LIBCUPS)
 #
 
 include Dependencies
-
-
-#
-# End of "$Id: Makefile 5317 2006-03-21 02:35:37Z mike $".
-#