1b00044a2SJames Carlson# 2b00044a2SJames Carlson# CDDL HEADER START 3b00044a2SJames Carlson# 4b00044a2SJames Carlson# The contents of this file are subject to the terms of the 5b00044a2SJames Carlson# Common Development and Distribution License (the "License"). 6b00044a2SJames Carlson# You may not use this file except in compliance with the License. 7b00044a2SJames Carlson# 8b00044a2SJames Carlson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9b00044a2SJames Carlson# or http://www.opensolaris.org/os/licensing. 10b00044a2SJames Carlson# See the License for the specific language governing permissions 11b00044a2SJames Carlson# and limitations under the License. 12b00044a2SJames Carlson# 13b00044a2SJames Carlson# When distributing Covered Code, include this CDDL HEADER in each 14b00044a2SJames Carlson# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15b00044a2SJames Carlson# If applicable, add the following below this CDDL HEADER, with the 16b00044a2SJames Carlson# fields enclosed by brackets "[]" replaced with your own identifying 17b00044a2SJames Carlson# information: Portions Copyright [yyyy] [name of copyright owner] 18b00044a2SJames Carlson# 19b00044a2SJames Carlson# CDDL HEADER END 20b00044a2SJames Carlson# 216ba597c5SAnurag S. Maskey 226ba597c5SAnurag S. Maskey# 236ba597c5SAnurag S. Maskey# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 24b00044a2SJames Carlson# Use is subject to license terms. 25b00044a2SJames Carlson# 265661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 276ba597c5SAnurag S. Maskey 286ba597c5SAnurag S. MaskeyPROG= nwamadm 29b00044a2SJames Carlson 306ba597c5SAnurag S. Maskeyinclude ../../../Makefile.cmd 31b00044a2SJames Carlson 326ba597c5SAnurag S. MaskeyXGETFLAGS += -a -x $(PROG).xcl 33e96f8419SYuri PankovLDLIBS += -lofmt -linetutil -lnsl -lnwam -lumem -lscf 34b00044a2SJames Carlson 357014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 36*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 377014882cSRichard Lowe 385661bb76SJohn Levon# not linted 395661bb76SJohn LevonSMATCH=off 405661bb76SJohn Levon 41b00044a2SJames Carlson.KEEP_STATE: 42b00044a2SJames Carlson 435661bb76SJohn Levonall: $(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: 51b00044a2SJames Carlson 526ba597c5SAnurag S. Maskeylint: lint_PROG 53b00044a2SJames Carlson 546ba597c5SAnurag S. Maskeyinclude ../../../Makefile.targ 55