xref: /titanic_50/usr/src/cmd/ssh/sshd/Makefile (revision f998c95e3b7029fe5f7542e115f7474ddb8024d7)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
506e1a714Sraf# Common Development and Distribution License (the "License").
606e1a714Sraf# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
2106e1a714Sraf#
22*f998c95eSceastha# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate# cmd/ssh/sshd/Makefile
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gatePROG= sshd
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateDIRS= $(ROOTLIBSSH)
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gateOBJS	= sshd.o \
347c478bd9Sstevel@tonic-gate	  altprivsep.o \
357c478bd9Sstevel@tonic-gate	  auth.o \
367c478bd9Sstevel@tonic-gate	  auth1.o \
377c478bd9Sstevel@tonic-gate	  auth2.o \
387c478bd9Sstevel@tonic-gate	  auth-options.o \
397c478bd9Sstevel@tonic-gate	  auth2-chall.o \
407c478bd9Sstevel@tonic-gate	  auth2-gss.o \
417c478bd9Sstevel@tonic-gate	  auth2-hostbased.o \
427c478bd9Sstevel@tonic-gate	  auth2-kbdint.o \
437c478bd9Sstevel@tonic-gate	  auth2-none.o \
447c478bd9Sstevel@tonic-gate	  auth2-passwd.o \
457c478bd9Sstevel@tonic-gate	  auth2-pam.o \
467c478bd9Sstevel@tonic-gate	  auth2-pubkey.o \
477c478bd9Sstevel@tonic-gate	  auth-bsdauth.o \
487c478bd9Sstevel@tonic-gate	  auth-chall.o \
497c478bd9Sstevel@tonic-gate	  auth-rhosts.o \
507c478bd9Sstevel@tonic-gate	  auth-krb4.o \
517c478bd9Sstevel@tonic-gate	  auth-krb5.o \
527c478bd9Sstevel@tonic-gate	  auth-pam.o \
537c478bd9Sstevel@tonic-gate	  auth-passwd.o \
547c478bd9Sstevel@tonic-gate	  auth-rsa.o \
557c478bd9Sstevel@tonic-gate	  auth-rh-rsa.o \
567c478bd9Sstevel@tonic-gate	  auth-sia.o \
577c478bd9Sstevel@tonic-gate	  auth-skey.o \
587c478bd9Sstevel@tonic-gate	  bsmaudit.o \
597c478bd9Sstevel@tonic-gate	  groupaccess.o \
607c478bd9Sstevel@tonic-gate	  gss-serv.o \
617c478bd9Sstevel@tonic-gate	  loginrec.o \
627c478bd9Sstevel@tonic-gate	  md5crypt.o \
637c478bd9Sstevel@tonic-gate	  servconf.o \
647c478bd9Sstevel@tonic-gate	  serverloop.o \
657c478bd9Sstevel@tonic-gate	  session.o \
667c478bd9Sstevel@tonic-gate	  sshlogin.o \
677c478bd9Sstevel@tonic-gate	  sshpty.o
687c478bd9Sstevel@tonic-gateSRCS	= $(OBJS:.o=.c)
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
717c478bd9Sstevel@tonic-gateinclude ../Makefile.ssh-common
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gateLDLIBS += $(SSH_COMMON_LDLIBS) -lsocket \
747c478bd9Sstevel@tonic-gate	-lnsl \
757c478bd9Sstevel@tonic-gate	-lz \
767c478bd9Sstevel@tonic-gate	-lpam \
777c478bd9Sstevel@tonic-gate	-lbsm \
78*f998c95eSceastha	-lwrap \
797c478bd9Sstevel@tonic-gate	$(OPENSSL_LDFLAGS) -lcrypto \
807c478bd9Sstevel@tonic-gate	-lgss \
817c478bd9Sstevel@tonic-gate	-lcontract
8224da5b34SrieMAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
8324da5b34SrieLDFLAGS += $(MAPFILES:%=-M%)
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gateDYNFLAGS += $(OPENSSL_DYNFLAGS) $(C99_DISABLE)
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gatePOFILE_DIR= ..
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gate.KEEP_STATE:
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gate.PARALLEL: $(OBJS)
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gateall: $(PROG)
947c478bd9Sstevel@tonic-gate
9524da5b34Srie$(PROG): $(OBJS) $(MAPFILES) ../libssh/$(MACH)/libssh.a \
9624da5b34Srie	../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
977c478bd9Sstevel@tonic-gate	$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
987c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gateinstall: all $(DIRS) $(ROOTLIBSSHPROG) $(ROOTLIBSSH)
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gate$(ROOTLIBSSHPROG)/%: %
1047c478bd9Sstevel@tonic-gate	$(INS.file)
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gate$(DIRS):
1077c478bd9Sstevel@tonic-gate	$(INS.dir)
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gateclean:
1107c478bd9Sstevel@tonic-gate	$(RM) -f $(OBJS) $(PROG)
1117c478bd9Sstevel@tonic-gate
1127c478bd9Sstevel@tonic-gatelint:	lint_SRCS
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gateinclude ../Makefile.msg.targ
1157c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
116