10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 52522Sraf# Common Development and Distribution License (the "License"). 62522Sraf# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*11134SCasper.Dik@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23634Sdp# Use is subject to license terms. 240Sstevel@tonic-gate# 252522Sraf 260Sstevel@tonic-gateLIBRARY= lib.a 270Sstevel@tonic-gate 280Sstevel@tonic-gateDATEFILE= ugdates 290Sstevel@tonic-gateDATEFILESRC= ugdates.dat 300Sstevel@tonic-gateTXT= $(DATEFILESRC) 310Sstevel@tonic-gate 320Sstevel@tonic-gateOBJECTS= putgrent.o \ 330Sstevel@tonic-gate errmsg.o \ 340Sstevel@tonic-gate file.o \ 350Sstevel@tonic-gate vgid.o \ 360Sstevel@tonic-gate vgname.o \ 370Sstevel@tonic-gate vgroup.o \ 380Sstevel@tonic-gate vuid.o \ 390Sstevel@tonic-gate vlogin.o \ 400Sstevel@tonic-gate vproj.o \ 410Sstevel@tonic-gate dates.o \ 420Sstevel@tonic-gate vexpire.o \ 430Sstevel@tonic-gate putprojent.o \ 440Sstevel@tonic-gate vprojid.o \ 450Sstevel@tonic-gate vprojname.o 460Sstevel@tonic-gate 470Sstevel@tonic-gate# include library definitions 480Sstevel@tonic-gateinclude ../../Makefile.cmd 490Sstevel@tonic-gateinclude ../../../lib/Makefile.lib 500Sstevel@tonic-gate 512522SrafSRCDIR = . 522522Sraf 530Sstevel@tonic-gateGREP= grep 540Sstevel@tonic-gateFILEMODE= $(LIBFILEMODE) 550Sstevel@tonic-gate 560Sstevel@tonic-gatePRODUCT= $(LIBRARY) $(DATEFILE) 570Sstevel@tonic-gate 580Sstevel@tonic-gate# Must retain `lib', since default expands to nothing 590Sstevel@tonic-gateLLINTLIB= llib-l$(LIBRARY:lib%.a=lib).ln 600Sstevel@tonic-gate 610Sstevel@tonic-gateCLEANFILES= $(LLINTLIB) 620Sstevel@tonic-gateCLOBBERFILES= $(DATEFILE) 630Sstevel@tonic-gate 640Sstevel@tonic-gateGENERAL= ../inc 650Sstevel@tonic-gateCPPFLAGS= -I. -I$(GENERAL) $(CPPFLAGS.master) 660Sstevel@tonic-gateARFLAGS= cr 670Sstevel@tonic-gateAROBJS= `$(LORDER) $(OBJS) | $(TSORT)` 680Sstevel@tonic-gateLINTFLAGS= -u 690Sstevel@tonic-gate 700Sstevel@tonic-gateROOTUSRSADM= $(ROOT)/usr/sadm 710Sstevel@tonic-gateROOTUSRSADMFILE=$(DATEFILE:%=$(ROOTUSRSADM)/%) 720Sstevel@tonic-gate 730Sstevel@tonic-gate.KEEP_STATE: 740Sstevel@tonic-gate 750Sstevel@tonic-gateall: $(PRODUCT) $(TXT) 760Sstevel@tonic-gate 770Sstevel@tonic-gate$(DATEFILE): $(DATEFILESRC) 780Sstevel@tonic-gate $(GREP) -v "^#ident" $(DATEFILESRC) > $(DATEFILE) 790Sstevel@tonic-gate 800Sstevel@tonic-gateinstall: all $(DATEFILE) $(ROOTUSRSADMFILE) 810Sstevel@tonic-gate 820Sstevel@tonic-gate$(ROOTUSRSADM)/%: % 830Sstevel@tonic-gate $(INS.file) 840Sstevel@tonic-gate 850Sstevel@tonic-gatelint: $(LLINTLIB) 860Sstevel@tonic-gate 870Sstevel@tonic-gate$(LLINTLIB): $(SRCS) 880Sstevel@tonic-gate $(LINT.c) -o $(LIBRARY:lib%.a=lib) $(SRCS) > $(LINTOUT) 2>&1 890Sstevel@tonic-gate 900Sstevel@tonic-gateinclude ../../../lib/Makefile.targ 91