2 # "$Id: Makefile 5222 2006-03-03 18:57:56Z mike $"
4 # System V commands makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2006 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 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
) cupsdisable cupsenable 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
) -m
755 $(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
) -m
755 $(BINDIR
)
71 $(INSTALL_BIN
) cancel
$(BINDIR
)
72 $(INSTALL_BIN
) cupstestppd
$(BINDIR
)
73 $(RM
) $(SBINDIR
)/cupsdisable
74 $(LN
) accept
$(SBINDIR
)/cupsdisable
75 $(RM
) $(SBINDIR
)/cupsenable
76 $(LN
) accept
$(SBINDIR
)/cupsenable
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
) ||
$(INSTALL_BIN
) lppasswd
$(BINDIR
)
87 accept
: accept.o ..
/cups
/$(LIBCUPS
)
89 $(CC
) $(LDFLAGS
) -o accept accept.o
$(LIBS
)
90 $(RM
) reject cupsenable cupsdisable
92 $(LN
) accept cupsenable
93 $(LN
) accept cupsdisable
100 cancel
: cancel.o ..
/cups
/$(LIBCUPS
)
102 $(CC
) $(LDFLAGS
) -o cancel cancel.o
$(LIBS
)
109 cupsaddsmb
: cupsaddsmb.o ..
/cups
/$(LIBCUPS
)
111 $(CC
) $(LDFLAGS
) -o cupsaddsmb cupsaddsmb.o
$(LIBS
)
118 cupstestppd
: cupstestppd.o ..
/cups
/$(LIBCUPS
)
120 $(CC
) $(LDFLAGS
) -o
$@ cupstestppd.o
$(LIBS
)
127 lp
: lp.o ..
/cups
/$(LIBCUPS
)
129 $(CC
) $(LDFLAGS
) -o lp lp.o
$(LIBS
)
136 lpadmin
: lpadmin.o ..
/cups
/$(LIBCUPS
)
138 $(CC
) $(LDFLAGS
) -o lpadmin lpadmin.o
$(LIBZ
) $(LIBS
)
145 lpinfo
: lpinfo.o ..
/cups
/$(LIBCUPS
)
147 $(CC
) $(LDFLAGS
) -o lpinfo lpinfo.o
$(LIBS
)
154 lpmove
: lpmove.o ..
/cups
/$(LIBCUPS
)
156 $(CC
) $(LDFLAGS
) -o lpmove lpmove.o
$(LIBS
)
163 lpoptions
: lpoptions.o ..
/cups
/$(LIBCUPS
)
165 $(CC
) $(LDFLAGS
) -o lpoptions lpoptions.o
$(LIBZ
) $(LIBS
)
172 lppasswd
: lppasswd.o ..
/cups
/$(LIBCUPS
)
174 $(CC
) $(LDFLAGS
) -o lppasswd lppasswd.o
$(LIBZ
) $(LIBS
)
181 lpstat
: lpstat.o ..
/cups
/$(LIBCUPS
)
183 $(CC
) $(LDFLAGS
) -o lpstat lpstat.o
$(LIBS
)
194 # End of "$Id: Makefile 5222 2006-03-03 18:57:56Z mike $".