Makefile.com revision 5a5eeccada4b11bc692e9a5015d5f4a4f188226c
69cd775ffd53de411433f1f43de2b4f644793528schwartz#
69cd775ffd53de411433f1f43de2b4f644793528schwartz# CDDL HEADER START
69cd775ffd53de411433f1f43de2b4f644793528schwartz#
69cd775ffd53de411433f1f43de2b4f644793528schwartz# The contents of this file are subject to the terms of the
69cd775ffd53de411433f1f43de2b4f644793528schwartz# Common Development and Distribution License, Version 1.0 only
69cd775ffd53de411433f1f43de2b4f644793528schwartz# (the "License"). You may not use this file except in compliance
69cd775ffd53de411433f1f43de2b4f644793528schwartz# with the License.
69cd775ffd53de411433f1f43de2b4f644793528schwartz#
69cd775ffd53de411433f1f43de2b4f644793528schwartz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
69cd775ffd53de411433f1f43de2b4f644793528schwartz# or http://www.opensolaris.org/os/licensing.
69cd775ffd53de411433f1f43de2b4f644793528schwartz# See the License for the specific language governing permissions
69cd775ffd53de411433f1f43de2b4f644793528schwartz# and limitations under the License.
69cd775ffd53de411433f1f43de2b4f644793528schwartz#
69cd775ffd53de411433f1f43de2b4f644793528schwartz# When distributing Covered Code, include this CDDL HEADER in each
69cd775ffd53de411433f1f43de2b4f644793528schwartz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
69cd775ffd53de411433f1f43de2b4f644793528schwartz# If applicable, add the following below this CDDL HEADER, with the
69cd775ffd53de411433f1f43de2b4f644793528schwartz# fields enclosed by brackets "[]" replaced with your own identifying
69cd775ffd53de411433f1f43de2b4f644793528schwartz# information: Portions Copyright [yyyy] [name of copyright owner]
69cd775ffd53de411433f1f43de2b4f644793528schwartz#
69cd775ffd53de411433f1f43de2b4f644793528schwartz# CDDL HEADER END
69cd775ffd53de411433f1f43de2b4f644793528schwartz#
69cd775ffd53de411433f1f43de2b4f644793528schwartz#
69cd775ffd53de411433f1f43de2b4f644793528schwartz# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
69cd775ffd53de411433f1f43de2b4f644793528schwartz# Use is subject to license terms.
69cd775ffd53de411433f1f43de2b4f644793528schwartz#
69cd775ffd53de411433f1f43de2b4f644793528schwartz# ident "%Z%%M% %I% %E% SMI"
69cd775ffd53de411433f1f43de2b4f644793528schwartz#
69cd775ffd53de411433f1f43de2b4f644793528schwartz# lib/libsec/Makefile.com
69cd775ffd53de411433f1f43de2b4f644793528schwartz#
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzLIBRARY= libsec.a
69cd775ffd53de411433f1f43de2b4f644793528schwartzVERS= .1
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzYFLAGS = -d -v -b acl
69cd775ffd53de411433f1f43de2b4f644793528schwartzLFLAGS = -t
69cd775ffd53de411433f1f43de2b4f644793528schwartzOBJS_SHARED= acl_common.o
d4476ccb08e9498c2013971c4212dc6362fcec46schwartzGENERATED_SRCS = acl.tab.o acl_lex.o
69cd775ffd53de411433f1f43de2b4f644793528schwartzOBJS_COMMON= aclcheck.o aclmode.o aclsort.o acltext.o aclutils.o
69cd775ffd53de411433f1f43de2b4f644793528schwartzOBJECTS= $(OBJS_COMMON) $(OBJS_SHARED) $(GENERATED_SRCS)
69cd775ffd53de411433f1f43de2b4f644793528schwartzCLEANFILES += acl_lex.c acl.tab.c acl.tab.h
69cd775ffd53de411433f1f43de2b4f644793528schwartzLINTSRCS = $(OBJS_COMMON)
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartz# include library definitions
69cd775ffd53de411433f1f43de2b4f644793528schwartzinclude ../../Makefile.lib
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzLIBS = $(DYNLIB) $(LINTLIB)
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzCFLAGS += $(CCVERBOSE)
69cd775ffd53de411433f1f43de2b4f644793528schwartzCPPFLAGS += -I$(SRCDIR) -I. -I../../../common/acl
69cd775ffd53de411433f1f43de2b4f644793528schwartzLDLIBS += -lc
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartz# install this library in the root filesystem
69cd775ffd53de411433f1f43de2b4f644793528schwartzinclude ../../Makefile.rootfs
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzSRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \
69cd775ffd53de411433f1f43de2b4f644793528schwartz $(OBJS_SHARED:%.o=$(SRC)/common/acl/%.c)
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartz$(LINTLIB):= SRCS= $(SRCDIR)/$(LINTSRC)
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzSRCDIR= ../common
69cd775ffd53de411433f1f43de2b4f644793528schwartzMAPDIR= ../spec/$(TRANSMACH)
69cd775ffd53de411433f1f43de2b4f644793528schwartzSPECMAPFILE= $(MAPDIR)/mapfile
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartz.KEEP_STATE:
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzall: $(LIBS)
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzlint: lintcheck
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzpics/%.o: ../../../common/acl/%.c
69cd775ffd53de411433f1f43de2b4f644793528schwartz $(COMPILE.c) -o $@ $<
69cd775ffd53de411433f1f43de2b4f644793528schwartz $(POST_PROCESS_O)
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzacl.tab.c acl.tab.h: $(SRCDIR)/acl.y
69cd775ffd53de411433f1f43de2b4f644793528schwartz $(YACC) $(YFLAGS) $(SRCDIR)/acl.y
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzacl_lex.c: $(SRCDIR)/acl_lex.l acl.tab.h
69cd775ffd53de411433f1f43de2b4f644793528schwartz $(LEX) $(LFLAGS) $(SRCDIR)/acl_lex.l > $@
69cd775ffd53de411433f1f43de2b4f644793528schwartz
69cd775ffd53de411433f1f43de2b4f644793528schwartzinclude ../../Makefile.targ
69cd775ffd53de411433f1f43de2b4f644793528schwartz