xref: /illumos-gate/usr/src/lib/krb5/ss/Makefile.com (revision d17be682)
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#
25*05ede3dbSJohn Levon# Copyright (c) 2018, Joyent, Inc.
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateLIBRARY= libss.a
287c478bd9Sstevel@tonic-gateVERS= .1
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gateSSOBJS= \
317c478bd9Sstevel@tonic-gate	data.o \
327c478bd9Sstevel@tonic-gate	error.o \
337c478bd9Sstevel@tonic-gate	execute_cmd.o \
347c478bd9Sstevel@tonic-gate	help.o \
357c478bd9Sstevel@tonic-gate	invocation.o \
367c478bd9Sstevel@tonic-gate	list_rqs.o \
377c478bd9Sstevel@tonic-gate	listen.o \
387c478bd9Sstevel@tonic-gate	pager.o \
397c478bd9Sstevel@tonic-gate	parse.o \
407c478bd9Sstevel@tonic-gate	prompt.o \
417c478bd9Sstevel@tonic-gate	request_tbl.o \
427c478bd9Sstevel@tonic-gate	requests.o \
437c478bd9Sstevel@tonic-gate	std_rqs.o
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gateOBJECTS= $(SSOBJS)
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gate# include library definitions
487c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gateSRCS=	$(SSOBJS:%.o=../%.c)
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gateLIBS=		$(DYNLIB)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gate#override liblink
577c478bd9Sstevel@tonic-gateINS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateCPPFLAGS +=     -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAS_STRDUP=1 \
607c478bd9Sstevel@tonic-gate		-DUSE_DIRENT_H=1 -DWAIT_USES_INT=1 -DPOSIX_SIGNALS=1 \
617c478bd9Sstevel@tonic-gate		-D_REENTRANT -DUSE_SIGPROCMASK=1 -DRETSIGTYPE=void \
627c478bd9Sstevel@tonic-gate		-DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_COMPILE=1 \
637c478bd9Sstevel@tonic-gate		-DHAVE_UNISTD_H=1 -DHAVE_UMASK=1 -DHAVE_SRAND48=1 \
647c478bd9Sstevel@tonic-gate		-DHAVESRAND=1 -DHAVESRANDOM=1 -DHAVE_RE_COMP=1 \
657c478bd9Sstevel@tonic-gate		-DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 -DHAVE_REGEXEC=1 \
667c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
677c478bd9Sstevel@tonic-gate		-I$(SRC)/lib/krb5
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gateCFLAGS +=	$(CCVERBOSE) -I..
707014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
717014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
727c478bd9Sstevel@tonic-gate
73*05ede3dbSJohn LevonSMOFF += all_func_returns
74*05ede3dbSJohn Levon
7522337b4bSrieDYNFLAGS +=	$(KRUNPATH) $(KMECHLIB) $(ZIGNORE)
767c478bd9Sstevel@tonic-gate
776d084746SLDLIBS +=	-lc -ltecla
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate.KEEP_STATE:
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gateall:	$(LIBS)
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gate# include library targets
857c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
86