16ba597c5SAnurag S. Maskey# 26ba597c5SAnurag S. Maskey# CDDL HEADER START 36ba597c5SAnurag S. Maskey# 46ba597c5SAnurag S. Maskey# The contents of this file are subject to the terms of the 56ba597c5SAnurag S. Maskey# Common Development and Distribution License (the "License"). 66ba597c5SAnurag S. Maskey# You may not use this file except in compliance with the License. 76ba597c5SAnurag S. Maskey# 86ba597c5SAnurag S. Maskey# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 96ba597c5SAnurag S. Maskey# or http://www.opensolaris.org/os/licensing. 106ba597c5SAnurag S. Maskey# See the License for the specific language governing permissions 116ba597c5SAnurag S. Maskey# and limitations under the License. 126ba597c5SAnurag S. Maskey# 136ba597c5SAnurag S. Maskey# When distributing Covered Code, include this CDDL HEADER in each 146ba597c5SAnurag S. Maskey# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 156ba597c5SAnurag S. Maskey# If applicable, add the following below this CDDL HEADER, with the 166ba597c5SAnurag S. Maskey# fields enclosed by brackets "[]" replaced with your own identifying 176ba597c5SAnurag S. Maskey# information: Portions Copyright [yyyy] [name of copyright owner] 186ba597c5SAnurag S. Maskey# 196ba597c5SAnurag S. Maskey# CDDL HEADER END 206ba597c5SAnurag S. Maskey# 216ba597c5SAnurag S. Maskey 226ba597c5SAnurag S. Maskey# 236ba597c5SAnurag S. Maskey# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 246ba597c5SAnurag S. Maskey# Use is subject to license terms. 256ba597c5SAnurag S. Maskey# 265661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 276ba597c5SAnurag S. Maskey 286ba597c5SAnurag S. MaskeyPROG= nwamadm 296ba597c5SAnurag S. Maskey 306ba597c5SAnurag S. Maskeyinclude ../../../Makefile.cmd 316ba597c5SAnurag S. Maskey 326ba597c5SAnurag S. MaskeyXGETFLAGS += -a -x $(PROG).xcl 33e96f8419SYuri PankovLDLIBS += -lofmt -linetutil -lnsl -lnwam -lumem -lscf 346ba597c5SAnurag S. Maskey 357014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 36*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 377014882cSRichard Lowe 385661bb76SJohn Levon# not linted 395661bb76SJohn LevonSMATCH=off 405661bb76SJohn Levon 416ba597c5SAnurag S. Maskey.KEEP_STATE: 426ba597c5SAnurag S. Maskey 436ba597c5SAnurag S. Maskeyall: $(PROG) 446ba597c5SAnurag S. Maskey 456ba597c5SAnurag S. Maskeyinstall: all $(ROOTUSRSBINPROG) 466ba597c5SAnurag S. Maskey 476ba597c5SAnurag S. Maskeycheck: $(PROG).c 486ba597c5SAnurag S. Maskey $(CSTYLE) -pP $(PROG).c 496ba597c5SAnurag S. Maskey 506ba597c5SAnurag S. Maskeyclean: 516ba597c5SAnurag S. Maskey 526ba597c5SAnurag S. Maskeylint: lint_PROG 536ba597c5SAnurag S. Maskey 546ba597c5SAnurag S. Maskeyinclude ../../../Makefile.targ 55