xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/Makefile (revision 55fea89dcaa64928bed4327112404dcb3e07b79f)
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#
26*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
27516fc7f3Shx147065
28516fc7f3Shx147065PROG=		wificonfig
29516fc7f3Shx147065OBJS=		wificonfig.o
30516fc7f3Shx147065SRCS=		$(OBJS:%.o=%.c)
31516fc7f3Shx147065
32516fc7f3Shx147065include		../../../Makefile.cmd
33516fc7f3Shx147065
34516fc7f3Shx147065LDLIBS +=	-lsecdb
35516fc7f3Shx147065
36516fc7f3Shx147065$(ROOTSBIN)/wificonfig := FILEMODE = 04755
37516fc7f3Shx147065ROOTUSRSBINLINKS = $(ROOTUSRSBIN)/$(PROG)
387014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts
397014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
40516fc7f3Shx147065
41*5661bb76SJohn Levon# needs work
42*5661bb76SJohn LevonSMOFF += index_overflow,memcpy_overflow
43*5661bb76SJohn Levon
44516fc7f3Shx147065.KEEP_STATE:
45516fc7f3Shx147065
46516fc7f3Shx147065all:	$(PROG)
47516fc7f3Shx147065
48516fc7f3Shx147065_msg:	$(POFILE)
49516fc7f3Shx147065
50516fc7f3Shx147065CPPFLAGS	+= -I$(SRC)/uts/common
51516fc7f3Shx147065
52516fc7f3Shx147065SECLEVEL	= standard
53516fc7f3Shx147065
54516fc7f3Shx147065$(PROG):	$(OBJS)
55516fc7f3Shx147065	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
56516fc7f3Shx147065	$(POST_PROCESS)
57516fc7f3Shx147065
58516fc7f3Shx147065install: all $(ROOTSBINPROG) $(ROOTUSRSBINLINKS)
59516fc7f3Shx147065
60516fc7f3Shx147065$(ROOTUSRSBINLINKS):
61516fc7f3Shx147065	-$(RM) $@; $(SYMLINK) ../../sbin/$(PROG) $@
62516fc7f3Shx147065
63516fc7f3Shx147065clean:
64516fc7f3Shx147065	$(RM) $(OBJS)
65516fc7f3Shx147065
66516fc7f3Shx147065lint:	lint_SRCS
67516fc7f3Shx147065
68516fc7f3Shx147065include		../../../Makefile.targ
69