Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
1487N/A#
1487N/A# CDDL HEADER START
1487N/A#
1487N/A# The contents of this file are subject to the terms of the
1487N/A# Common Development and Distribution License (the "License").
1487N/A# You may not use this file except in compliance with the License.
1487N/A#
1487N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1487N/A# or http://www.opensolaris.org/os/licensing.
1487N/A# See the License for the specific language governing permissions
1487N/A# and limitations under the License.
1487N/A#
1487N/A# When distributing Covered Code, include this CDDL HEADER in each
1487N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1487N/A# If applicable, add the following below this CDDL HEADER, with the
1487N/A# fields enclosed by brackets "[]" replaced with your own identifying
1487N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1487N/A#
1487N/A# CDDL HEADER END
1487N/A#
5353N/A#
1487N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5441N/A# Use is subject to license terms.
5441N/A#
5441N/A# cmd/oamuser/user/Makefile
5441N/A#
5441N/A
5441N/Ainclude ../../Makefile.cmd
5441N/A
1487N/AGREP= grep
5441N/A
5441N/AUSERADD= useradd
5441N/AUSERDEL= userdel
5441N/AUSERMOD= usermod
5441N/APROFILE= .profile
5441N/ASTDPROFILE= stdprofile
5441N/AROLEADD= roleadd
5441N/AROLEDEL= roledel
1487N/AROLEMOD= rolemod
1487N/A
3160N/ASBINPROG= $(USERADD) $(USERDEL) $(USERMOD)
2899N/ASKELFILE= $(PROFILE)
3817N/A#
5441N/A# Removing sysadm: deleted $(SYSADMPROG) from this target.
3817N/A#
1487N/APROG= $(SBINPROG)
1487N/APRODUCT= $(PROG) $(PROFILE)
5441N/A
1487N/AADD_OBJ= useradd.o uid.o homedir.o \
1938N/A groups.o call_pass.o userdefs.o messages.o \
1938N/A val_lgrp.o funcs.o val_lprj.o proj.o
5441N/A
5441N/ADEL_OBJ= userdel.o call_pass.o rmfiles.o isbusy.o \
5441N/A groups.o messages.o funcs.o proj.o
5441N/A
5441N/AMOD_OBJ= usermod.o uid.o movedir.o groups.o \
1487N/A rmfiles.o call_pass.o isbusy.o homedir.o \
5441N/A userdefs.o messages.o val_lgrp.o funcs.o \
5441N/A val_lprj.o proj.o
1888N/A
5441N/AOBJECTS= $(ADD_OBJ) $(DEL_OBJ) $(MOD_OBJ)
5441N/A
1487N/ASRCS= $(OBJECTS:.o=.c)
1487N/A
4337N/ACLOBBERFILES= $(PROFILE)
4337N/ALIBDIR= ../lib
5441N/ALIBUSRGRP= $(LIBDIR)/lib.a
5441N/ALIBADM= -ladm
LOCAL= ../inc
HERE= .
LINTFLAGS= -u
ROOTSKEL= $(ROOTETC)/skel
INSSBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%)
INSSKELFILE= $(SKELFILE:%=$(ROOTSKEL)/%)
CPPFLAGS= -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
$(INSSBINPROG) := FILEMODE = 0555
$(INSSYSADMPROG):= FILEMODE = 0500
$(INSSKELFILE) := FILEMODE = 0644
$(USERADD) := OBJS = $(ADD_OBJ)
$(USERADD) := LIBS = $(LIBUSRGRP)
$(USERDEL) := OBJS = $(DEL_OBJ)
$(USERDEL) := LIBS = $(LIBUSRGRP)
$(USERMOD) := OBJS = $(MOD_OBJ)
$(USERMOD) := LIBS = $(LIBUSRGRP)
LDLIBS += -lsecdb -lproject -ltsol
.PARALLEL: $(OBJECTS)
all: $(PRODUCT)
$(PROFILE): $(STDPROFILE)
$(GREP) -v "^#ident" $(STDPROFILE) > $(PROFILE)
$(PROG): $$(OBJS) $$(LIBS)
$(LINK.c) $(OBJS) -o $@ $(LIBS) $(LDLIBS)
$(POST_PROCESS)
$(USERADD): $(ADD_OBJ)
$(USERMOD): $(MOD_OBJ)
$(USERDEL): $(DEL_OBJ)
install: all .WAIT $(ROOTSKEL) $(INSSBINPROG) $(INSSKELFILE)
$(RM) $(ROOTUSRSBIN)/$(ROLEADD)
$(LN) $(ROOTUSRSBIN)/$(USERADD) $(ROOTUSRSBIN)/$(ROLEADD)
$(RM) $(ROOTUSRSBIN)/$(ROLEDEL)
$(LN) $(ROOTUSRSBIN)/$(USERDEL) $(ROOTUSRSBIN)/$(ROLEDEL)
$(RM) $(ROOTUSRSBIN)/$(ROLEMOD)
$(LN) $(ROOTUSRSBIN)/$(USERMOD) $(ROOTUSRSBIN)/$(ROLEMOD)
$(ROOTSKEL):
$(INS.dir)
$(ROOTSKEL)/%: %
$(INS.file)
clean:
$(RM) $(OBJECTS)
lint: lint_SRCS
include ../../Makefile.targ