Makefile revision 2923:da82ab368162
117721Speter#
217721Speter# CDDL HEADER START
317721Speter#
417721Speter# The contents of this file are subject to the terms of the
517721Speter# Common Development and Distribution License (the "License").
617721Speter# You may not use this file except in compliance with the License.
717721Speter#
817721Speter# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
917721Speter# or http://www.opensolaris.org/os/licensing.
1017721Speter# See the License for the specific language governing permissions
1117721Speter# and limitations under the License.
1217721Speter#
1317721Speter# When distributing Covered Code, include this CDDL HEADER in each
1417721Speter# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1517721Speter# If applicable, add the following below this CDDL HEADER, with the
1617721Speter# fields enclosed by brackets "[]" replaced with your own identifying
1717721Speter# information: Portions Copyright [yyyy] [name of copyright owner]
1817721Speter#
1925839Speter# CDDL HEADER END
2025839Speter#
2125839Speter#
2225839Speter# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2325839Speter# Use is subject to license terms.
2425839Speter#
2525839Speter# ident	"%Z%%M%	%I%	%E% SMI"
2625839Speter#
2725839Speter# cmd/ssh/sshd/Makefile
2825839Speter
2925839SpeterPROG= sshd
3025839Speter
3125839SpeterDIRS= $(ROOTLIBSSH)
3225839Speter
3317721SpeterOBJS	= sshd.o \
3425839Speter	  altprivsep.o \
3525839Speter	  auth.o \
3625839Speter	  auth1.o \
3725839Speter	  auth2.o \
3825839Speter	  auth-options.o \
3925839Speter	  auth2-chall.o \
4025839Speter	  auth2-gss.o \
4125839Speter	  auth2-hostbased.o \
4217721Speter	  auth2-kbdint.o \
4317721Speter	  auth2-none.o \
4417721Speter	  auth2-passwd.o \
4517721Speter	  auth2-pam.o \
4617721Speter	  auth2-pubkey.o \
4717721Speter	  auth-bsdauth.o \
4817721Speter	  auth-chall.o \
4917721Speter	  auth-rhosts.o \
5017721Speter	  auth-krb4.o \
5117721Speter	  auth-krb5.o \
5217721Speter	  auth-pam.o \
5317721Speter	  auth-passwd.o \
5417721Speter	  auth-rsa.o \
5517721Speter	  auth-rh-rsa.o \
5617721Speter	  auth-sia.o \
5717721Speter	  auth-skey.o \
5817721Speter	  bsmaudit.o \
5917721Speter	  groupaccess.o \
6017721Speter	  gss-serv.o \
6117721Speter	  loginrec.o \
6217721Speter	  md5crypt.o \
6317721Speter	  monitor.o \
6417721Speter	  monitor_mm.o \
6517721Speter	  servconf.o \
6617721Speter	  serverloop.o \
6717721Speter	  session.o \
6817721Speter	  sshlogin.o \
6917721Speter	  sshpty.o
7017721SpeterSRCS	= $(OBJS:.o=.c)
7117721Speter
7217721Speterinclude ../../Makefile.cmd
7317721Speterinclude ../Makefile.ssh-common
7417721Speter
7517721SpeterLDLIBS += $(SSH_COMMON_LDLIBS) -lsocket \
7617721Speter	-lnsl \
7717721Speter	-lz \
7817721Speter	-lpam \
7917721Speter	-lbsm \
8017721Speter	-L$(ROOTSFWLIB) -lwrap \
8117721Speter	$(OPENSSL_LDFLAGS) -lcrypto \
8217721Speter	-lgss \
8317721Speter	-lcontract
8417721Speter
8517721SpeterDYNFLAGS += $(OPENSSL_DYNFLAGS) $(C99_DISABLE)
8617721Speter
8717721SpeterPOFILE_DIR= ..
8817721Speter
8917721SpeterCPPFLAGS += -I$(ROOTSFWINCLUDE)
9017721Speter
9117721Speter.KEEP_STATE:
9217721Speter
9317721Speter.PARALLEL: $(OBJS)
9417721Speter
9517721Speterall: $(PROG)
9617721Speter
9717721Speter$(PROG): $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
9817721Speter	$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
9917721Speter	$(POST_PROCESS)
10017721Speter
10117721Speterinstall: all $(DIRS) $(ROOTLIBSSHPROG) $(ROOTLIBSSH)
10217721Speter
10317721Speter
10417721Speter$(ROOTLIBSSHPROG)/%: %
10517721Speter	$(INS.file)
10617721Speter
10717721Speter$(DIRS):
10817721Speter	$(INS.dir)
10917721Speter
11017721Speterclean:
11117721Speter	$(RM) -f $(OBJS) $(PROG)
11217721Speter
11317721Speterlint:	lint_SRCS
11417721Speter
11517721Speterinclude ../Makefile.msg.targ
11617721Speterinclude ../../Makefile.targ
11717721Speter