2 # "$Id: Makefile,v 1.23.2.1 2001/12/26 16:52:56 mike Exp $"
4 # System V commands makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2001 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-3111 USA
20 # Voice: (301) 373-9603
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
27 TARGETS
= accept cancel cupsaddsmb lp lpadmin lpinfo lpmove \
28 lpoptions lppasswd lpstat
29 OBJS
= accept.o cancel.o cupsaddsmb.o lp.o lpadmin.o \
30 lpinfo.o lpmove.o lpoptions.o lppasswd.o lpstat.o
41 # Clean all object files...
45 $(RM
) $(OBJS
) $(TARGETS
)
49 # Install all targets...
53 $(INSTALL_DIR
) $(BINDIR
)
54 $(INSTALL_BIN
) accept
$(SBINDIR
)
55 $(RM
) $(SBINDIR
)/reject
56 $(LN
) accept
$(SBINDIR
)/reject
57 $(INSTALL_BIN
) cupsaddsmb
$(SBINDIR
)
58 $(INSTALL_BIN
) lpadmin
$(SBINDIR
)
59 $(INSTALL_BIN
) lpinfo
$(SBINDIR
)
60 $(INSTALL_BIN
) lpmove
$(SBINDIR
)
61 $(INSTALL_BIN
) cancel
$(BINDIR
)
62 $(RM
) $(BINDIR
)/disable
63 $(LN
) ..
/sbin
/accept
$(BINDIR
)/disable
64 $(RM
) $(BINDIR
)/enable
65 $(LN
) ..
/sbin
/accept
$(BINDIR
)/enable
66 $(INSTALL_BIN
) lp
$(BINDIR
)
67 $(INSTALL_BIN
) lpoptions
$(BINDIR
)
68 $(INSTALL_BIN
) lpstat
$(BINDIR
)
69 $(INSTALL_BIN
) -m
4755 -o
$(CUPS_USER
) -g
$(CUPS_GROUP
) lppasswd
$(BINDIR
)
76 accept
: accept.o ..
/cups
/$(LIBCUPS
)
78 $(CC
) $(LDFLAGS
) -o accept accept.o
$(LIBS
)
79 $(RM
) reject enable disable
84 accept.o
: ..
/cups
/cups.h
91 cancel
: cancel.o ..
/cups
/$(LIBCUPS
)
93 $(CC
) $(LDFLAGS
) -o cancel cancel.o
$(LIBS
)
95 cancel.o
: ..
/cups
/cups.h
102 cupsaddsmb
: cupsaddsmb.o ..
/cups
/$(LIBCUPS
)
104 $(CC
) $(LDFLAGS
) -o cupsaddsmb cupsaddsmb.o
$(LIBS
)
106 cupsaddsmb.o
: ..
/cups
/cups.h ..
/cups
/string.h
113 lp
: lp.o ..
/cups
/$(LIBCUPS
)
115 $(CC
) $(LDFLAGS
) -o lp lp.o
$(LIBS
)
124 lpadmin
: lpadmin.o ..
/cups
/$(LIBCUPS
)
126 $(CC
) $(LDFLAGS
) -o lpadmin lpadmin.o
$(LIBZ
) $(LIBS
)
128 lpadmin.o
: ..
/cups
/cups.h
135 lpinfo
: lpinfo.o ..
/cups
/$(LIBCUPS
)
137 $(CC
) $(LDFLAGS
) -o lpinfo lpinfo.o
$(LIBS
)
139 lpinfo.o
: ..
/cups
/cups.h
146 lpmove
: lpmove.o ..
/cups
/$(LIBCUPS
)
148 $(CC
) $(LDFLAGS
) -o lpmove lpmove.o
$(LIBS
)
150 lpmove.o
: ..
/cups
/cups.h
157 lpoptions
: lpoptions.o ..
/cups
/$(LIBCUPS
)
159 $(CC
) $(LDFLAGS
) -o lpoptions lpoptions.o
$(LIBZ
) $(LIBS
)
161 lpoptions.o
: ..
/cups
/cups.h
168 lppasswd
: lppasswd.o ..
/cups
/$(LIBCUPS
)
170 $(CC
) $(LDFLAGS
) -o lppasswd lppasswd.o
$(LIBZ
) $(LIBS
)
172 lppasswd.o
: ..
/cups
/cups.h ..
/cups
/md5.h ..
/cups
/string.h ..
/config.h
179 lpstat
: lpstat.o ..
/cups
/$(LIBCUPS
)
181 $(CC
) $(LDFLAGS
) -o lpstat lpstat.o
$(LIBS
)
183 lpstat.o
: ..
/cups
/cups.h
189 # End of "$Id: Makefile,v 1.23.2.1 2001/12/26 16:52:56 mike Exp $".