#
-# "$Id: Makefile 5317 2006-03-21 02:35:37Z mike $"
+# "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $"
#
# System V commands makefile for the Common UNIX Printing System (CUPS).
#
+# Copyright 2007-2008 by Apple Inc.
# 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
+# 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
-TARGETS = accept cancel cupsaddsmb cupstestdsc cupstestppd \
+TARGETS = accept cancel cupsaddsmb cupsctl 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 \
- lpstat.o
+OBJS = accept.o cancel.o cupsaddsmb.o cupsctl.o cupstestdsc.o \
+ cupstestppd.o lp.o lpadmin.o lpinfo.o lpmove.o lpoptions.o \
+ lppasswd.o lpstat.o
#
all: $(TARGETS)
+#
+# Make library targets...
+#
+
+libs:
+
+
+#
+# Make unit tests...
+#
+
+unittests:
+
+
#
# Clean all object files...
#
# Install all targets...
#
-install: all
+install: all install-data install-headers install-libs install-exec
+
+
+#
+# Install data files...
+#
+
+install-data:
+
+
+#
+# Install programs...
+#
+
+install-exec:
$(INSTALL_DIR) -m 755 $(SBINDIR)
$(INSTALL_BIN) accept $(SBINDIR)
$(RM) $(SBINDIR)/reject
$(LN) accept $(SBINDIR)/reject
$(INSTALL_BIN) cupsaddsmb $(SBINDIR)
+ $(INSTALL_BIN) cupsctl $(SBINDIR)
$(INSTALL_BIN) lpadmin $(SBINDIR)
$(INSTALL_BIN) lpinfo $(SBINDIR)
$(INSTALL_BIN) lpmove $(SBINDIR)
$(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)
+ $(INSTALL_BIN) lppasswd $(BINDIR)
+ if test "x$(SYMROOT)" != "x"; then \
+ $(INSTALL_DIR) $(SYMROOT); \
+ for file in $(TARGETS); do \
+ cp $$file $(SYMROOT); \
+ done \
+ fi
+
+
+#
+# Install headers...
+#
+
+install-headers:
+
+
+#
+# Install libraries...
+#
+
+install-libs:
#
$(CC) $(LDFLAGS) -o cupsaddsmb cupsaddsmb.o $(LIBS)
+#
+# cupsctl
+#
+
+cupsctl: cupsctl.o ../cups/$(LIBCUPS)
+ echo Linking $@...
+ $(CC) $(LDFLAGS) -o cupsctl cupsctl.o $(LIBS)
+
+
#
# cupstestdsc
#
# cupstestppd
#
-cupstestppd: cupstestppd.o ../cups/$(LIBCUPS)
+cupstestppd: cupstestppd.o ../cups/$(LIBCUPS) ../filter/$(LIBCUPSIMAGE)
+ echo Linking $@...
+ $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
+
+cupstestppd-static: cupstestppd.o ../cups/libcups.a ../filter/libcupsimage.a
echo Linking $@...
- $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LIBS)
+ $(CC) $(LDFLAGS) -o $@ cupstestppd.o ../filter/libcupsimage.a \
+ ../cups/libcups.a $(IMGLIBS) $(LIBGSSAPI) $(LIBS) $(LIBZ)
#
#
-# End of "$Id: Makefile 5317 2006-03-21 02:35:37Z mike $".
+# End of "$Id: Makefile 7558 2008-05-12 23:46:44Z mike $".
#