xref: /illumos-gate/usr/src/cmd/lp/cmd/lpadmin/Makefile (revision 508a0e8cf1600b06c1f7361ad76e736710d3fdf8)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20
21
22#
23#
24# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27# ident	"%Z%%M%	%I%	%E% SMI"
28#
29# cmd/lp/cmd/lpadmin/Makefile
30#
31
32include		../../Makefile.lp
33
34CPPFLAGS =	-D_REENTRANT -I. -I$(LPINC) $(CPPFLAGS.master)
35
36SRCS=		chkopts.c	\
37		default.c	\
38		do_align.c	\
39		do_fault.c	\
40		do_mount.c	\
41		do_printer.c	\
42		do_pwheel.c	\
43		done.c		\
44		fromclass.c	\
45		ismodel.c	\
46		lpadmin.c	\
47		options.c	\
48		output.c	\
49		pick_opts.c	\
50		rmdest.c	\
51		send_message.c	\
52		signals.c	\
53		startup.c	\
54		usage.c
55
56OBJS=		$(SRCS:.c=.o)
57
58LPLIBS=		$(LIBACC)	\
59		$(LIBCLS)	\
60		$(LIBMSG)	\
61		$(LIBPRT)	\
62		$(LIBFRM)	\
63		$(LIBREQ)	\
64		$(LIBOAM)	\
65		$(LIBLP)
66
67SYSLIBS=	-lcurses
68
69LDLIBS +=	-lsecdb $(LPLIBS) $(SYSLIBS) $(I18N)
70LDFLAGS +=	$(MAPFILE.NGB:%=-M%)
71
72PROG=		lpadmin
73
74
75#ROOTSYMLINK=	$(ROOTLIBPROG)
76
77POFILE=		lp_cmd_lpadmin.po
78
79.KEEP_STATE:
80
81all:		$(PROG)
82
83$(PROG):	$(OBJS) $(MAPFILE.NGB)
84		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
85		$(POST_PROCESS)
86
87install:	all $(ROOTLIBLPLOCLPROG) #$(ROOTSYMLINK)
88
89#$(ROOTSYMLINK):
90#		$(RM) $@; $(SYMLINK) ../sbin/$(PROG) $@
91
92clean:
93		$(RM) $(OBJS)
94
95clobber: clean
96		-$(RM) $(PROG) $(CLOBBERFILES)
97
98strip:
99		$(STRIP) $(PROG)
100
101lint:
102		$(LINT.c) $(SRCS) $(LDLIBS)
103
104include		../Makefile.msg
105