xref: /titanic_51/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1516fc7f3Shx147065#
2516fc7f3Shx147065# CDDL HEADER START
3516fc7f3Shx147065#
4516fc7f3Shx147065# The contents of this file are subject to the terms of the
5516fc7f3Shx147065# Common Development and Distribution License, Version 1.0 only
6516fc7f3Shx147065# (the "License").  You may not use this file except in compliance
7516fc7f3Shx147065# with the License.
8516fc7f3Shx147065#
9516fc7f3Shx147065# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10516fc7f3Shx147065# or http://www.opensolaris.org/os/licensing.
11516fc7f3Shx147065# See the License for the specific language governing permissions
12516fc7f3Shx147065# and limitations under the License.
13516fc7f3Shx147065#
14516fc7f3Shx147065# When distributing Covered Code, include this CDDL HEADER in each
15516fc7f3Shx147065# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16516fc7f3Shx147065# If applicable, add the following below this CDDL HEADER, with the
17516fc7f3Shx147065# fields enclosed by brackets "[]" replaced with your own identifying
18516fc7f3Shx147065# information: Portions Copyright [yyyy] [name of copyright owner]
19516fc7f3Shx147065#
20516fc7f3Shx147065# CDDL HEADER END
21516fc7f3Shx147065#
22516fc7f3Shx147065#
23516fc7f3Shx147065# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24516fc7f3Shx147065# Use is subject to license terms.
25516fc7f3Shx147065#
26516fc7f3Shx147065
27516fc7f3Shx147065PROG=		wificonfig
28516fc7f3Shx147065OBJS=		wificonfig.o
29516fc7f3Shx147065SRCS=		$(OBJS:%.o=%.c)
30516fc7f3Shx147065
31516fc7f3Shx147065include		../../../Makefile.cmd
32516fc7f3Shx147065
33516fc7f3Shx147065LDLIBS +=	-lsecdb
34516fc7f3Shx147065
35516fc7f3Shx147065$(ROOTSBIN)/wificonfig := FILEMODE = 04755
36516fc7f3Shx147065ROOTUSRSBINLINKS = $(ROOTUSRSBIN)/$(PROG)
37*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts
38*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
39516fc7f3Shx147065
40516fc7f3Shx147065.KEEP_STATE:
41516fc7f3Shx147065
42516fc7f3Shx147065all:	$(PROG)
43516fc7f3Shx147065
44516fc7f3Shx147065_msg:	$(POFILE)
45516fc7f3Shx147065
46516fc7f3Shx147065CPPFLAGS	+= -I$(SRC)/uts/common
47516fc7f3Shx147065
48516fc7f3Shx147065SECLEVEL	= standard
49516fc7f3Shx147065
50516fc7f3Shx147065$(PROG):	$(OBJS)
51516fc7f3Shx147065	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
52516fc7f3Shx147065	$(POST_PROCESS)
53516fc7f3Shx147065
54516fc7f3Shx147065install: all $(ROOTSBINPROG) $(ROOTUSRSBINLINKS)
55516fc7f3Shx147065
56516fc7f3Shx147065$(ROOTUSRSBINLINKS):
57516fc7f3Shx147065	-$(RM) $@; $(SYMLINK) ../../sbin/$(PROG) $@
58516fc7f3Shx147065
59516fc7f3Shx147065clean:
60516fc7f3Shx147065	$(RM) $(OBJS)
61516fc7f3Shx147065
62516fc7f3Shx147065lint:	lint_SRCS
63516fc7f3Shx147065
64516fc7f3Shx147065include		../../../Makefile.targ
65