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# 266ba597c5SAnurag S. Maskey# cmd/cmd-inet/usr.sbin/nwamcfg/Makefile 276ba597c5SAnurag S. Maskey 286ba597c5SAnurag S. MaskeyPROG= nwamcfg 296ba597c5SAnurag S. MaskeyOBJS= nwamcfg.o nwamcfg_lex.o nwamcfg_grammar.tab.o 306ba597c5SAnurag S. Maskey 316ba597c5SAnurag S. Maskeyinclude ../../../Makefile.cmd 326ba597c5SAnurag S. Maskey 336ba597c5SAnurag S. MaskeyXGETFLAGS += -a -x $(PROG).xcl 346ba597c5SAnurag S. MaskeyLFLAGS = -t 356ba597c5SAnurag S. MaskeyLDLIBS += -ll -ltecla -lnwam -lumem 366ba597c5SAnurag S. MaskeyYFLAGS += -d -b nwamcfg_grammar 376ba597c5SAnurag S. MaskeyCLEANFILES += nwamcfg_lex.c nwamcfg_grammar.tab.c nwamcfg_grammar.tab.h 38*b6805bf7SGordon RossCLEANFILES += $(PROG).ln 396ba597c5SAnurag S. Maskey 407014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 417014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 427014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 437014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 447014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 457014882cSRichard Lowe 466ba597c5SAnurag S. Maskey.KEEP_STATE: 476ba597c5SAnurag S. Maskey 486ba597c5SAnurag S. Maskeyall: $(PROG) 496ba597c5SAnurag S. Maskey 506ba597c5SAnurag S. Maskey$(PROG): $(OBJS) 516ba597c5SAnurag S. Maskey $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 526ba597c5SAnurag S. Maskey $(POST_PROCESS) 536ba597c5SAnurag S. Maskey 546ba597c5SAnurag S. Maskeyinstall: all $(ROOTUSRSBINPROG) 556ba597c5SAnurag S. Maskey 566ba597c5SAnurag S. Maskeynwamcfg_lex.c: nwamcfg_lex.l nwamcfg_grammar.tab.h nwamcfg.h 576ba597c5SAnurag S. Maskey $(LEX) $(LFLAGS) nwamcfg_lex.l > $@ 586ba597c5SAnurag S. Maskey 596ba597c5SAnurag S. Maskeynwamcfg_grammar.tab.h nwamcfg_grammar.tab.c: nwamcfg_grammar.y nwamcfg.h 606ba597c5SAnurag S. Maskey $(YACC) $(YFLAGS) nwamcfg_grammar.y 616ba597c5SAnurag S. Maskey 626ba597c5SAnurag S. Maskeynwamcfg_lex.o nwamcfg_grammar.tab.o := CCVERBOSE = 636ba597c5SAnurag S. Maskey 646ba597c5SAnurag S. Maskeycheck: $(PROG).c $(PROG).h 656ba597c5SAnurag S. Maskey $(CSTYLE) -pP $(PROG).c $(PROG).h 666ba597c5SAnurag S. Maskey $(HDRCHK) $(PROG).h 676ba597c5SAnurag S. Maskey 686ba597c5SAnurag S. Maskeyclean: 696ba597c5SAnurag S. Maskey $(RM) $(OBJS) $(CLEANFILES) 706ba597c5SAnurag S. Maskey 716ba597c5SAnurag S. Maskey# 726ba597c5SAnurag S. Maskey# We don't do lint of lex- and yacc- generated source files 736ba597c5SAnurag S. Maskey# 746ba597c5SAnurag S. Maskeylint: 756ba597c5SAnurag S. Maskey $(LINT.c) -c $(PROG).c $(LDLIBS) 766ba597c5SAnurag S. Maskey 776ba597c5SAnurag S. Maskeyinclude ../../../Makefile.targ 78