1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# ident "%Z%%M% %I% %E% SMI" 26# 27# cmd/ssh/sshd/Makefile 28 29PROG= sshd 30 31DIRS= $(ROOTLIBSSH) 32 33OBJS = sshd.o \ 34 altprivsep.o \ 35 auth.o \ 36 auth1.o \ 37 auth2.o \ 38 auth-options.o \ 39 auth2-chall.o \ 40 auth2-gss.o \ 41 auth2-hostbased.o \ 42 auth2-kbdint.o \ 43 auth2-none.o \ 44 auth2-passwd.o \ 45 auth2-pam.o \ 46 auth2-pubkey.o \ 47 auth-bsdauth.o \ 48 auth-chall.o \ 49 auth-rhosts.o \ 50 auth-krb4.o \ 51 auth-krb5.o \ 52 auth-pam.o \ 53 auth-passwd.o \ 54 auth-rsa.o \ 55 auth-rh-rsa.o \ 56 auth-sia.o \ 57 auth-skey.o \ 58 bsmaudit.o \ 59 groupaccess.o \ 60 gss-serv.o \ 61 loginrec.o \ 62 md5crypt.o \ 63 monitor.o \ 64 monitor_mm.o \ 65 servconf.o \ 66 serverloop.o \ 67 session.o \ 68 sshlogin.o \ 69 sshpty.o 70SRCS = $(OBJS:.o=.c) 71 72include ../../Makefile.cmd 73include ../Makefile.ssh-common 74 75LDLIBS += $(SSH_COMMON_LDLIBS) -lsocket \ 76 -lnsl \ 77 -lz \ 78 -lpam \ 79 -lbsm \ 80 -L$(ROOTSFWLIB) -lwrap \ 81 $(OPENSSL_LDFLAGS) -lcrypto \ 82 -lgss \ 83 -lcmd \ 84 -lcontract 85 86DYNFLAGS += $(OPENSSL_DYNFLAGS) $(C99_DISABLE) 87 88POFILE_DIR= .. 89 90CPPFLAGS += -I$(ROOTSFWINCLUDE) 91 92.KEEP_STATE: 93 94.PARALLEL: $(OBJS) 95 96all: $(PROG) 97 98$(PROG): $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a 99 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS) 100 $(POST_PROCESS) 101 102install: all $(DIRS) $(ROOTLIBSSHPROG) $(ROOTLIBSSH) 103 104 105$(ROOTLIBSSHPROG)/%: % 106 $(INS.file) 107 108$(DIRS): 109 $(INS.dir) 110 111clean: 112 $(RM) -f $(OBJS) $(PROG) 113 114lint: lint_SRCS 115 116include ../Makefile.msg.targ 117include ../../Makefile.targ 118