1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate# 28*7c478bd9Sstevel@tonic-gate# usr/src/lib/passwdutil/Makefile.com 29*7c478bd9Sstevel@tonic-gate# 30*7c478bd9Sstevel@tonic-gate 31*7c478bd9Sstevel@tonic-gateLIBRARY= passwdutil.a 32*7c478bd9Sstevel@tonic-gateVERS= .1 33*7c478bd9Sstevel@tonic-gateOBJ= init.o \ 34*7c478bd9Sstevel@tonic-gate __check_history.o \ 35*7c478bd9Sstevel@tonic-gate __set_authtoken_attr.o \ 36*7c478bd9Sstevel@tonic-gate __get_authtoken_attr.o \ 37*7c478bd9Sstevel@tonic-gate __user_to_authenticate.o \ 38*7c478bd9Sstevel@tonic-gate __verify_rpc_passwd.o \ 39*7c478bd9Sstevel@tonic-gate __failed_count.o \ 40*7c478bd9Sstevel@tonic-gate files_attr.o \ 41*7c478bd9Sstevel@tonic-gate nis_attr.o \ 42*7c478bd9Sstevel@tonic-gate npd_clnt.o \ 43*7c478bd9Sstevel@tonic-gate nisplus_attr.o \ 44*7c478bd9Sstevel@tonic-gate ldap_attr.o \ 45*7c478bd9Sstevel@tonic-gate nss_attr.o \ 46*7c478bd9Sstevel@tonic-gate switch_utils.o \ 47*7c478bd9Sstevel@tonic-gate utils.o \ 48*7c478bd9Sstevel@tonic-gate debug.o \ 49*7c478bd9Sstevel@tonic-gate bsd-strsep.o 50*7c478bd9Sstevel@tonic-gate 51*7c478bd9Sstevel@tonic-gateDERIVED_OBJ= nispasswd_xdr.o 52*7c478bd9Sstevel@tonic-gate 53*7c478bd9Sstevel@tonic-gateOBJECTS= $(OBJ) $(DERIVED_OBJ) 54*7c478bd9Sstevel@tonic-gate 55*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 56*7c478bd9Sstevel@tonic-gate 57*7c478bd9Sstevel@tonic-gate# 58*7c478bd9Sstevel@tonic-gate# Since our name doesn't start with "lib", Makefile.lib incorrectly 59*7c478bd9Sstevel@tonic-gate# calculates LIBNAME. Therefore, we set it here. 60*7c478bd9Sstevel@tonic-gate# 61*7c478bd9Sstevel@tonic-gateLIBNAME= passwdutil 62*7c478bd9Sstevel@tonic-gate 63*7c478bd9Sstevel@tonic-gateLIBS= $(DYNLIB) $(LINTLIB) 64*7c478bd9Sstevel@tonic-gateSRCDIR= .. 65*7c478bd9Sstevel@tonic-gate$(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) 66*7c478bd9Sstevel@tonic-gateLDLIBS += -lcmd -lsldap -lnsl -lc 67*7c478bd9Sstevel@tonic-gate 68*7c478bd9Sstevel@tonic-gateMAPDIR= ../spec/$(TRANSMACH) 69*7c478bd9Sstevel@tonic-gateSPECMAPFILE= $(MAPDIR)/mapfile 70*7c478bd9Sstevel@tonic-gate 71*7c478bd9Sstevel@tonic-gateCPPFLAGS += -DENABLE_SUNOS_AGING -D_REENTRANT \ 72*7c478bd9Sstevel@tonic-gate -I$(SRC)/lib/libsldap/common -I$(SRC)/lib/libnsl/include 73*7c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 74*7c478bd9Sstevel@tonic-gate 75*7c478bd9Sstevel@tonic-gate# 76*7c478bd9Sstevel@tonic-gate# We depend upon a rpcgen file. Specify some additional macros 77*7c478bd9Sstevel@tonic-gate# to correctly build and get rid of the derived file 78*7c478bd9Sstevel@tonic-gate# 79*7c478bd9Sstevel@tonic-gatePROTOCOL_DIR= ../../../head/rpcsvc 80*7c478bd9Sstevel@tonic-gateDERIVED_FILES= ../nispasswd_xdr.c 81*7c478bd9Sstevel@tonic-gateCLOBBERFILES += $(DERIVED_FILES) 82*7c478bd9Sstevel@tonic-gate 83*7c478bd9Sstevel@tonic-gate# 84*7c478bd9Sstevel@tonic-gate# Don't lint derived files 85*7c478bd9Sstevel@tonic-gate# 86*7c478bd9Sstevel@tonic-gatelint := SRCS= $(OBJ:%.o=$(SRCDIR)/%.c) 87*7c478bd9Sstevel@tonic-gate 88*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 89*7c478bd9Sstevel@tonic-gate 90*7c478bd9Sstevel@tonic-gateall: $(LIBS) 91*7c478bd9Sstevel@tonic-gate 92*7c478bd9Sstevel@tonic-gate../nispasswd_xdr.c: $(PROTOCOL_DIR)/nispasswd.x 93*7c478bd9Sstevel@tonic-gate $(RPCGEN) -c -C -M $(PROTOCOL_DIR)/nispasswd.x > ../nispasswd_xdr.c 94*7c478bd9Sstevel@tonic-gate 95*7c478bd9Sstevel@tonic-gatelint: lintcheck 96*7c478bd9Sstevel@tonic-gate 97*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 98