2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A
2N/ALIBRARY= lib.a
2N/A
2N/ADATEFILE= ugdates
2N/ADATEFILESRC= ugdates.dat
2N/ATXT= $(DATEFILESRC)
2N/A
2N/AOBJECTS= putgrent.o \
2N/A errmsg.o \
2N/A file.o \
2N/A vgid.o \
2N/A vgname.o \
2N/A vgroup.o \
2N/A vuid.o \
2N/A vlogin.o \
2N/A vproj.o \
2N/A dates.o \
2N/A vexpire.o \
2N/A putprojent.o \
2N/A vprojid.o \
2N/A vprojname.o
2N/A
2N/A# include library definitions
2N/Ainclude ../../Makefile.cmd
2N/Ainclude ../../../lib/Makefile.lib
2N/A
2N/ASRCDIR = .
2N/A
2N/AGREP= grep
2N/AFILEMODE= $(LIBFILEMODE)
2N/A
2N/APRODUCT= $(LIBRARY) $(DATEFILE)
2N/A
2N/A# Must retain `lib', since default expands to nothing
2N/ALLINTLIB= llib-l$(LIBRARY:lib%.a=lib).ln
2N/A
2N/ACLEANFILES= $(LLINTLIB)
2N/ACLOBBERFILES= $(DATEFILE)
2N/A
2N/AGENERAL= ../inc
2N/ACPPFLAGS= -I. -I$(GENERAL) $(CPPFLAGS.master)
2N/ACERRWARN += -_gcc=-Wno-parentheses
2N/ACERRWARN += -_gcc=-Wno-type-limits
2N/ACERRWARN += -_gcc=-Wno-unused-variable
2N/AARFLAGS= cr
2N/AAROBJS= `$(LORDER) $(OBJS) | $(TSORT)`
2N/ALINTFLAGS= -u
2N/A
2N/AROOTUSRSADM= $(ROOT)/usr/sadm
2N/AROOTUSRSADMFILE=$(DATEFILE:%=$(ROOTUSRSADM)/%)
2N/A
2N/ACLOBBERFILES += $(LIBRARY)
2N/A
2N/A.KEEP_STATE:
2N/A
2N/Aall: $(PRODUCT) $(TXT)
2N/A
2N/A$(DATEFILE): $(DATEFILESRC)
2N/A $(GREP) -v "^#ident" $(DATEFILESRC) > $(DATEFILE)
2N/A
2N/Ainstall: all $(DATEFILE) $(ROOTUSRSADMFILE)
2N/A
2N/A$(ROOTUSRSADM)/%: %
2N/A $(INS.file)
2N/A
2N/Alint: $(LLINTLIB)
2N/A
2N/A$(LLINTLIB): $(SRCS)
2N/A $(LINT.c) -o $(LIBRARY:lib%.a=lib) $(SRCS) > $(LINTOUT) 2>&1
2N/A
2N/Ainclude ../../../lib/Makefile.targ
2N/A