17c478bd9Sstevel@tonic-gate# 2f808c858Sraf# CDDL HEADER START 3f808c858Sraf# 4f808c858Sraf# The contents of this file are subject to the terms of the 5f808c858Sraf# Common Development and Distribution License (the "License"). 6f808c858Sraf# You may not use this file except in compliance with the License. 7f808c858Sraf# 8f808c858Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9f808c858Sraf# or http://www.opensolaris.org/os/licensing. 10f808c858Sraf# See the License for the specific language governing permissions 11f808c858Sraf# and limitations under the License. 12f808c858Sraf# 13f808c858Sraf# When distributing Covered Code, include this CDDL HEADER in each 14f808c858Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15f808c858Sraf# If applicable, add the following below this CDDL HEADER, with the 16f808c858Sraf# fields enclosed by brackets "[]" replaced with your own identifying 17f808c858Sraf# information: Portions Copyright [yyyy] [name of copyright owner] 18f808c858Sraf# 19f808c858Sraf# CDDL HEADER END 20f808c858Sraf# 21f808c858Sraf# 2222337b4bSrie# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateLIBRARY= libss.a 277c478bd9Sstevel@tonic-gateVERS= .1 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateSSOBJS= \ 307c478bd9Sstevel@tonic-gate data.o \ 317c478bd9Sstevel@tonic-gate error.o \ 327c478bd9Sstevel@tonic-gate execute_cmd.o \ 337c478bd9Sstevel@tonic-gate help.o \ 347c478bd9Sstevel@tonic-gate invocation.o \ 357c478bd9Sstevel@tonic-gate list_rqs.o \ 367c478bd9Sstevel@tonic-gate listen.o \ 377c478bd9Sstevel@tonic-gate pager.o \ 387c478bd9Sstevel@tonic-gate parse.o \ 397c478bd9Sstevel@tonic-gate prompt.o \ 407c478bd9Sstevel@tonic-gate request_tbl.o \ 417c478bd9Sstevel@tonic-gate requests.o \ 427c478bd9Sstevel@tonic-gate std_rqs.o 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateOBJECTS= $(SSOBJS) 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gate# include library definitions 477c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gateSRCS= $(SSOBJS:%.o=../%.c) 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateLIBS= $(DYNLIB) 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate#override liblink 567c478bd9Sstevel@tonic-gateINS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@ 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gateCPPFLAGS += -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAS_STRDUP=1 \ 597c478bd9Sstevel@tonic-gate -DUSE_DIRENT_H=1 -DWAIT_USES_INT=1 -DPOSIX_SIGNALS=1 \ 607c478bd9Sstevel@tonic-gate -D_REENTRANT -DUSE_SIGPROCMASK=1 -DRETSIGTYPE=void \ 617c478bd9Sstevel@tonic-gate -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_COMPILE=1 \ 627c478bd9Sstevel@tonic-gate -DHAVE_UNISTD_H=1 -DHAVE_UMASK=1 -DHAVE_SRAND48=1 \ 637c478bd9Sstevel@tonic-gate -DHAVESRAND=1 -DHAVESRANDOM=1 -DHAVE_RE_COMP=1 \ 647c478bd9Sstevel@tonic-gate -DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 -DHAVE_REGEXEC=1 \ 657c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 667c478bd9Sstevel@tonic-gate -I$(SRC)/lib/krb5 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) -I.. 69*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 70*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 717c478bd9Sstevel@tonic-gate 7222337b4bSrieDYNFLAGS += $(KRUNPATH) $(KMECHLIB) $(ZIGNORE) 737c478bd9Sstevel@tonic-gate 746d084746SLDLIBS += -lc -ltecla 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate$(PICS) := CFLAGS += $(XFFLAG) 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate.KEEP_STATE: 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gateall: $(LIBS) 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gatelint: lintcheck 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate# include library targets 857c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 86