da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# or http://www.opensolaris.org/os/licensing.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
148c5f43199ca0b43fc8e3b643aab11cd66ea327Alan Wright#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
148c5f43199ca0b43fc8e3b643aab11cd66ea327Alan Wright# Use is subject to license terms.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ident "%Z%%M% %I% %E% SMI"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# cmd/pools/poolbind/Makefile
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwPROG = poolcfg
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwOBJS = poolcfg_lex.o poolcfg_grammar.o
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwSRCS = $(OBJS:%.o=%.c) $(COMMON_SRCS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwPOFILES = $(OBJS:.o=.po)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwPOFILE = poolcfg.po
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../Makefile.cmd
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../Makefile.pools
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# poolcf has a name clash with main() and libl.so.1. However, poolcfg must
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego# still export a number of "yy*" (libl) interfaces. Reduce all other symbols
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as# to local scope.
7f667e74610492ddbce8ce60f52ece95d2401949jose borregoMAPFILES += $(MAPFILE.LEX) $(MAPFILE.NGB)
7f667e74610492ddbce8ce60f52ece95d2401949jose borregoMAPOPTS = $(MAPFILES:%=-M%)
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
7f667e74610492ddbce8ce60f52ece95d2401949jose borregoLFLAGS = -t
7f667e74610492ddbce8ce60f52ece95d2401949jose borregoYFLAGS = -d
dc20a3024900c47dd2ee44b9707e6df38f7d62a5asCFLAGS += -I$(POOLSCOMMONDIR)
b3700b074e637f8c6991b70754c88a2cfffb246bGordon RossLDFLAGS += $(MAPOPTS)
b3700b074e637f8c6991b70754c88a2cfffb246bGordon RossLDLIBS += -lpool -ll
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwXGETFLAGS = -a
dc20a3024900c47dd2ee44b9707e6df38f7d62a5asCLOBBERFILES += poolcfg_lex.c poolcfg_grammar.c poolcfg_grammar.h
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
7f667e74610492ddbce8ce60f52ece95d2401949jose borrego.KEEP_STATE:
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borregoall: $(PROG)
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego$(PROG): $(OBJS) $(COMMON_OBJS) $(MAPFILES)
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego $(LINK.c) -o $@ $(OBJS) $(COMMON_OBJS) $(LDLIBS)
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego $(POST_PROCESS)
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego%.o : $(POOLSCOMMONDIR)/%.c
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego $(COMPILE.c) -o $@ $<
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as $(POST_PROCESS_O)
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
dc20a3024900c47dd2ee44b9707e6df38f7d62a5asinstall: all $(ROOTUSRSBINPROG)
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
dc20a3024900c47dd2ee44b9707e6df38f7d62a5aspoolcfg_lex.c: poolcfg.l poolcfg_grammar.h
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as $(LEX) $(LFLAGS) poolcfg.l > $@
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borregopoolcfg_grammar.h poolcfg_grammar.c: poolcfg.y
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego $(YACC) $(YFLAGS) poolcfg.y
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego @$(MV) y.tab.h poolcfg_grammar.h
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego @$(MV) y.tab.c poolcfg_grammar.c
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego
dc20a3024900c47dd2ee44b9707e6df38f7d62a5aspoolcfg_lex.o poolcfg_grammar.o := CCVERBOSE =
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as
7f667e74610492ddbce8ce60f52ece95d2401949jose borregoclean:
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as $(RM) $(OBJS) $(COMMON_OBJS) $(POFILES)
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego$(POFILE): $(POFILES)
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego $(RM) $@; cat $(POFILES) > $@
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego#
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego# We don't do lint of lex- and yacc- generated source files
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego#
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borregolint:
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borregoinclude ../../Makefile.targ
89dc44ce9705974a8bc4a39f1e878a0491a5be61jose borrego