2 # "$Id: Makefile,v 1.23.2.10 2004/10/20 19:55:50 mike Exp $"
4 # System V commands makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2004 by Easy Software Products, all rights reserved.
8 # These coded instructions, statements, and computer programs are the
9 # property of Easy Software Products and are protected by Federal
10 # copyright law. Distribution and use rights are outlined in the file
11 # "LICENSE.txt" which should have been included with this file. If this
12 # file is missing or damaged please contact Easy Software Products
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636-3142 USA
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
27 TARGETS
= accept cancel cupsaddsmb cupstestppd lp lpadmin lpinfo \
28 lpmove lpoptions lppasswd lpstat
29 OBJS
= accept.o cancel.o cupsaddsmb.o cupstestppd.o lp.o \
30 lpadmin.o lpinfo.o lpmove.o lpoptions.o lppasswd.o \
42 # Clean all object files...
46 $(RM
) $(OBJS
) $(TARGETS
) disable enable reject
50 # Update dependencies (without system header dependencies...)
54 makedepend
-Y
-I..
-fDependencies
$(OBJS
:.o
=.c
) >/dev
/null
2>&1
58 # Install all targets...
62 $(INSTALL_DIR
) $(SBINDIR
)
63 $(INSTALL_BIN
) accept
$(SBINDIR
)
64 $(RM
) $(SBINDIR
)/reject
65 $(LN
) accept
$(SBINDIR
)/reject
66 $(INSTALL_BIN
) cupsaddsmb
$(SBINDIR
)
67 $(INSTALL_BIN
) lpadmin
$(SBINDIR
)
68 $(INSTALL_BIN
) lpinfo
$(SBINDIR
)
69 $(INSTALL_BIN
) lpmove
$(SBINDIR
)
70 $(INSTALL_DIR
) $(BINDIR
)
71 $(INSTALL_BIN
) cancel
$(BINDIR
)
72 $(INSTALL_BIN
) cupstestppd
$(SBINDIR
)
73 $(RM
) $(SBINDIR
)/disable
74 $(LN
) accept
$(SBINDIR
)/disable
75 $(RM
) $(SBINDIR
)/enable
76 $(LN
) accept
$(SBINDIR
)/enable
77 $(INSTALL_BIN
) lp
$(BINDIR
)
78 $(INSTALL_BIN
) lpoptions
$(BINDIR
)
79 $(INSTALL_BIN
) lpstat
$(BINDIR
)
80 $(INSTALL_BIN
) -m
4755 -o
$(CUPS_USER
) -g
$(CUPS_GROUP
) lppasswd
$(BINDIR
)
81 if
test ! -x
$(BINDIR
)/lppasswd
; then \
82 chmod
755 $(BINDIR
)/lppasswd
; \
90 accept
: accept.o ..
/cups
/$(LIBCUPS
)
92 $(CC
) $(LDFLAGS
) -o accept accept.o
$(LIBS
)
93 $(RM
) reject enable disable
103 cancel
: cancel.o ..
/cups
/$(LIBCUPS
)
105 $(CC
) $(LDFLAGS
) -o cancel cancel.o
$(LIBS
)
112 cupsaddsmb
: cupsaddsmb.o ..
/cups
/$(LIBCUPS
)
114 $(CC
) $(LDFLAGS
) -o cupsaddsmb cupsaddsmb.o
$(LIBS
)
121 cupstestppd
: cupstestppd.o ..
/cups
/$(LIBCUPS
)
123 $(CC
) $(LDFLAGS
) -o
$@ cupstestppd.o
$(LIBS
)
130 lp
: lp.o ..
/cups
/$(LIBCUPS
)
132 $(CC
) $(LDFLAGS
) -o lp lp.o
$(LIBS
)
139 lpadmin
: lpadmin.o ..
/cups
/$(LIBCUPS
)
141 $(CC
) $(LDFLAGS
) -o lpadmin lpadmin.o
$(LIBZ
) $(LIBS
)
148 lpinfo
: lpinfo.o ..
/cups
/$(LIBCUPS
)
150 $(CC
) $(LDFLAGS
) -o lpinfo lpinfo.o
$(LIBS
)
157 lpmove
: lpmove.o ..
/cups
/$(LIBCUPS
)
159 $(CC
) $(LDFLAGS
) -o lpmove lpmove.o
$(LIBS
)
166 lpoptions
: lpoptions.o ..
/cups
/$(LIBCUPS
)
168 $(CC
) $(LDFLAGS
) -o lpoptions lpoptions.o
$(LIBZ
) $(LIBS
)
175 lppasswd
: lppasswd.o ..
/cups
/$(LIBCUPS
)
177 $(CC
) $(LDFLAGS
) -o lppasswd lppasswd.o
$(LIBZ
) $(LIBS
)
184 lpstat
: lpstat.o ..
/cups
/$(LIBCUPS
)
186 $(CC
) $(LDFLAGS
) -o lpstat lpstat.o
$(LIBS
)
197 # End of "$Id: Makefile,v 1.23.2.10 2004/10/20 19:55:50 mike Exp $".