1516fc7f3Shx# 2516fc7f3Shx# CDDL HEADER START 3516fc7f3Shx# 4516fc7f3Shx# The contents of this file are subject to the terms of the 5516fc7f3Shx# Common Development and Distribution License, Version 1.0 only 6516fc7f3Shx# (the "License"). You may not use this file except in compliance 7516fc7f3Shx# with the License. 8516fc7f3Shx# 9516fc7f3Shx# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10516fc7f3Shx# or http://www.opensolaris.org/os/licensing. 11516fc7f3Shx# See the License for the specific language governing permissions 12516fc7f3Shx# and limitations under the License. 13516fc7f3Shx# 14516fc7f3Shx# When distributing Covered Code, include this CDDL HEADER in each 15516fc7f3Shx# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16516fc7f3Shx# If applicable, add the following below this CDDL HEADER, with the 17516fc7f3Shx# fields enclosed by brackets "[]" replaced with your own identifying 18516fc7f3Shx# information: Portions Copyright [yyyy] [name of copyright owner] 19516fc7f3Shx# 20516fc7f3Shx# CDDL HEADER END 21516fc7f3Shx# 22516fc7f3Shx# 23516fc7f3Shx# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24516fc7f3Shx# Use is subject to license terms. 25516fc7f3Shx# 265661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 27516fc7f3Shx 28*55fea89dSDan CrossPROG= wificonfig 29516fc7f3ShxOBJS= wificonfig.o 30516fc7f3ShxSRCS= $(OBJS:%.o=%.c) 31516fc7f3Shx 32516fc7f3Shxinclude ../../../Makefile.cmd 33516fc7f3Shx 34516fc7f3ShxLDLIBS += -lsecdb 35516fc7f3Shx 36516fc7f3Shx$(ROOTSBIN)/wificonfig := FILEMODE = 04755 37516fc7f3ShxROOTUSRSBINLINKS = $(ROOTUSRSBIN)/$(PROG) 387014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts 397014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 40516fc7f3Shx 415661bb76SJohn Levon# needs work 425661bb76SJohn LevonSMOFF += index_overflow,memcpy_overflow 435661bb76SJohn Levon 44516fc7f3Shx.KEEP_STATE: 45516fc7f3Shx 46516fc7f3Shxall: $(PROG) 47516fc7f3Shx 48516fc7f3Shx_msg: $(POFILE) 49516fc7f3Shx 50516fc7f3ShxCPPFLAGS += -I$(SRC)/uts/common 51516fc7f3Shx 52516fc7f3ShxSECLEVEL = standard 53516fc7f3Shx 54516fc7f3Shx$(PROG): $(OBJS) 55516fc7f3Shx $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 56516fc7f3Shx $(POST_PROCESS) 57516fc7f3Shx 58516fc7f3Shxinstall: all $(ROOTSBINPROG) $(ROOTUSRSBINLINKS) 59516fc7f3Shx 60516fc7f3Shx$(ROOTUSRSBINLINKS): 61516fc7f3Shx -$(RM) $@; $(SYMLINK) ../../sbin/$(PROG) $@ 62516fc7f3Shx 63516fc7f3Shxclean: 64516fc7f3Shx $(RM) $(OBJS) 65516fc7f3Shx 66516fc7f3Shxlint: lint_SRCS 67516fc7f3Shx 68516fc7f3Shxinclude ../../../Makefile.targ 69