xref: /onnv-gate/usr/src/lib/krb5/ss/Makefile.com (revision 8093:d2fc11f7c4e7)
10Sstevel@tonic-gate#
22522Sraf# CDDL HEADER START
32522Sraf#
42522Sraf# 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.
72522Sraf#
82522Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92522Sraf# or http://www.opensolaris.org/os/licensing.
102522Sraf# See the License for the specific language governing permissions
112522Sraf# and limitations under the License.
122522Sraf#
132522Sraf# When distributing Covered Code, include this CDDL HEADER in each
142522Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152522Sraf# If applicable, add the following below this CDDL HEADER, with the
162522Sraf# fields enclosed by brackets "[]" replaced with your own identifying
172522Sraf# information: Portions Copyright [yyyy] [name of copyright owner]
182522Sraf#
192522Sraf# CDDL HEADER END
202522Sraf#
212522Sraf#
225827Srie# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate
260Sstevel@tonic-gateLIBRARY= libss.a
270Sstevel@tonic-gateVERS= .1
280Sstevel@tonic-gate
290Sstevel@tonic-gateSSOBJS= \
300Sstevel@tonic-gate	data.o \
310Sstevel@tonic-gate	error.o \
320Sstevel@tonic-gate	execute_cmd.o \
330Sstevel@tonic-gate	help.o \
340Sstevel@tonic-gate	invocation.o \
350Sstevel@tonic-gate	list_rqs.o \
360Sstevel@tonic-gate	listen.o \
370Sstevel@tonic-gate	pager.o \
380Sstevel@tonic-gate	parse.o \
390Sstevel@tonic-gate	prompt.o \
400Sstevel@tonic-gate	request_tbl.o \
410Sstevel@tonic-gate	requests.o \
420Sstevel@tonic-gate	std_rqs.o
430Sstevel@tonic-gate
440Sstevel@tonic-gateOBJECTS= $(SSOBJS)
450Sstevel@tonic-gate
460Sstevel@tonic-gate# include library definitions
470Sstevel@tonic-gateinclude ../../Makefile.lib
480Sstevel@tonic-gate
490Sstevel@tonic-gateSRCS=	$(SSOBJS:%.o=../%.c)
500Sstevel@tonic-gate
510Sstevel@tonic-gateLIBS=		$(DYNLIB)
520Sstevel@tonic-gate
530Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
540Sstevel@tonic-gate
550Sstevel@tonic-gate#override liblink
560Sstevel@tonic-gateINS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
570Sstevel@tonic-gate
580Sstevel@tonic-gateCPPFLAGS +=     -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAS_STRDUP=1 \
590Sstevel@tonic-gate		-DUSE_DIRENT_H=1 -DWAIT_USES_INT=1 -DPOSIX_SIGNALS=1 \
600Sstevel@tonic-gate		-D_REENTRANT -DUSE_SIGPROCMASK=1 -DRETSIGTYPE=void \
610Sstevel@tonic-gate		-DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_COMPILE=1 \
620Sstevel@tonic-gate		-DHAVE_UNISTD_H=1 -DHAVE_UMASK=1 -DHAVE_SRAND48=1 \
630Sstevel@tonic-gate		-DHAVESRAND=1 -DHAVESRANDOM=1 -DHAVE_RE_COMP=1 \
640Sstevel@tonic-gate		-DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 -DHAVE_REGEXEC=1 \
650Sstevel@tonic-gate		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
660Sstevel@tonic-gate		-I$(SRC)/lib/krb5
670Sstevel@tonic-gate
680Sstevel@tonic-gateCFLAGS +=	$(CCVERBOSE) -I..
690Sstevel@tonic-gate
705827SrieDYNFLAGS +=	$(KRUNPATH) $(KMECHLIB) $(ZIGNORE)
710Sstevel@tonic-gate
72*8093SMark.Phalan@Sun.COMLDLIBS +=	-lc -ltecla
730Sstevel@tonic-gate
740Sstevel@tonic-gate$(PICS) :=      CFLAGS += $(XFFLAG)
750Sstevel@tonic-gate
760Sstevel@tonic-gate.KEEP_STATE:
770Sstevel@tonic-gate
780Sstevel@tonic-gateall:	$(LIBS)
790Sstevel@tonic-gate
800Sstevel@tonic-gatelint: lintcheck
810Sstevel@tonic-gate
820Sstevel@tonic-gate# include library targets
830Sstevel@tonic-gateinclude ../../Makefile.targ
84