Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan#
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan# CDDL HEADER START
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm#
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm# The contents of this file are subject to the terms of the
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm# Common Development and Distribution License, Version 1.0 only
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm# (the "License"). You may not use this file except in compliance
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico# with the License.
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico#
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico# or http://www.opensolaris.org/os/licensing.
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico# See the License for the specific language governing permissions
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico# and limitations under the License.
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico#
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico# When distributing Covered Code, include this CDDL HEADER in each
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6b464dfa85f56bbe7e0ff053bcb709fe346a5e2cJazzyNico# If applicable, add the following below this CDDL HEADER, with the
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm# fields enclosed by brackets "[]" replaced with your own identifying
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm# information: Portions Copyright [yyyy] [name of copyright owner]
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm#
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm# CDDL HEADER END
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm#
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm#
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm# Copyright (c) 1989 by Sun Microsystems, Inc.
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm#
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrmPROG= htable
OBJS= htable.o parse.o scan.o
SRCS= htable.c parse.y scan.l
include ../../../Makefile.cmd
CPPFLAGS += -DSYSV -DSTRNET -DBSD_COMP
LDLIBS += -lsocket -lnsl
YFLAGS += -d
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-implicit-function-declaration
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-unused-variable
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
install: all $(ROOTUSRSBINPROG)
clean:
$(RM) $(OBJS) y.tab.h y.tab.c parse.c scan.c
lint: lint_PROG
include ../../../Makefile.targ
# explicit target for the NSE
y.tab.h: parse.y
$(YACC.y) $?