Makefile revision 6ba597c56d749c61b4f783157f63196d7b2445f0
970N/A#
1170N/A# CDDL HEADER START
970N/A#
970N/A# The contents of this file are subject to the terms of the
970N/A# Common Development and Distribution License (the "License").
970N/A# You may not use this file except in compliance with the License.
970N/A#
970N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
970N/A# or http://www.opensolaris.org/os/licensing.
970N/A# See the License for the specific language governing permissions
970N/A# and limitations under the License.
970N/A#
970N/A# When distributing Covered Code, include this CDDL HEADER in each
970N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
970N/A# If applicable, add the following below this CDDL HEADER, with the
970N/A# fields enclosed by brackets "[]" replaced with your own identifying
970N/A# information: Portions Copyright [yyyy] [name of copyright owner]
970N/A#
970N/A# CDDL HEADER END
970N/A#
970N/A
970N/A#
970N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
1170N/A# Use is subject to license terms.
1170N/A#
1170N/A# cmd/cmd-inet/usr.sbin/nwamcfg/Makefile
970N/A
970N/APROG= nwamcfg
970N/AOBJS= nwamcfg.o nwamcfg_lex.o nwamcfg_grammar.tab.o
970N/A
970N/Ainclude ../../../Makefile.cmd
970N/A
970N/AXGETFLAGS += -a -x $(PROG).xcl
970N/ALFLAGS = -t
970N/ALDLIBS += -ll -ltecla -lnwam -lumem
970N/AYFLAGS += -d -b nwamcfg_grammar
970N/ACLEANFILES += nwamcfg_lex.c nwamcfg_grammar.tab.c nwamcfg_grammar.tab.h
970N/A
970N/A.KEEP_STATE:
970N/A
970N/Aall: $(PROG)
970N/A
970N/A$(PROG): $(OBJS)
970N/A $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
970N/A $(POST_PROCESS)
970N/A
970N/Ainstall: all $(ROOTUSRSBINPROG)
970N/A
970N/Anwamcfg_lex.c: nwamcfg_lex.l nwamcfg_grammar.tab.h nwamcfg.h
970N/A $(LEX) $(LFLAGS) nwamcfg_lex.l > $@
970N/A
970N/Anwamcfg_grammar.tab.h nwamcfg_grammar.tab.c: nwamcfg_grammar.y nwamcfg.h
970N/A $(YACC) $(YFLAGS) nwamcfg_grammar.y
970N/A
970N/Anwamcfg_lex.o nwamcfg_grammar.tab.o := CCVERBOSE =
970N/A
970N/Acheck: $(PROG).c $(PROG).h
970N/A $(CSTYLE) -pP $(PROG).c $(PROG).h
970N/A $(HDRCHK) $(PROG).h
clean:
$(RM) $(OBJS) $(CLEANFILES)
#
# We don't do lint of lex- and yacc- generated source files
#
lint:
$(LINT.c) -c $(PROG).c $(LDLIBS)
include ../../../Makefile.targ