xref: /titanic_50/usr/src/cmd/ssh/sshd/Makefile (revision 75614fd9696d97522ed7ed8009a66eb3544d61ad)
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#
216f8d59d8SJan Pechanec# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
227c478bd9Sstevel@tonic-gate# Use is subject to license terms.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate# cmd/ssh/sshd/Makefile
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gatePROG= sshd
277c478bd9Sstevel@tonic-gate
28*75614fd9SAlexander PyhalovDIRS= $(ROOTLIBSSH) $(ROOTLIBSUNSSH)
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gateOBJS	= sshd.o \
317c478bd9Sstevel@tonic-gate	  altprivsep.o \
327c478bd9Sstevel@tonic-gate	  auth.o \
337c478bd9Sstevel@tonic-gate	  auth1.o \
347c478bd9Sstevel@tonic-gate	  auth2.o \
357c478bd9Sstevel@tonic-gate	  auth-options.o \
367c478bd9Sstevel@tonic-gate	  auth2-chall.o \
377c478bd9Sstevel@tonic-gate	  auth2-gss.o \
387c478bd9Sstevel@tonic-gate	  auth2-hostbased.o \
397c478bd9Sstevel@tonic-gate	  auth2-kbdint.o \
407c478bd9Sstevel@tonic-gate	  auth2-none.o \
417c478bd9Sstevel@tonic-gate	  auth2-passwd.o \
427c478bd9Sstevel@tonic-gate	  auth2-pam.o \
437c478bd9Sstevel@tonic-gate	  auth2-pubkey.o \
447c478bd9Sstevel@tonic-gate	  auth-bsdauth.o \
457c478bd9Sstevel@tonic-gate	  auth-chall.o \
467c478bd9Sstevel@tonic-gate	  auth-rhosts.o \
477c478bd9Sstevel@tonic-gate	  auth-krb4.o \
487c478bd9Sstevel@tonic-gate	  auth-krb5.o \
497c478bd9Sstevel@tonic-gate	  auth-pam.o \
507c478bd9Sstevel@tonic-gate	  auth-passwd.o \
517c478bd9Sstevel@tonic-gate	  auth-rsa.o \
527c478bd9Sstevel@tonic-gate	  auth-rh-rsa.o \
537c478bd9Sstevel@tonic-gate	  auth-sia.o \
547c478bd9Sstevel@tonic-gate	  auth-skey.o \
557c478bd9Sstevel@tonic-gate	  bsmaudit.o \
567c478bd9Sstevel@tonic-gate	  groupaccess.o \
577c478bd9Sstevel@tonic-gate	  gss-serv.o \
587c478bd9Sstevel@tonic-gate	  loginrec.o \
597c478bd9Sstevel@tonic-gate	  servconf.o \
607c478bd9Sstevel@tonic-gate	  serverloop.o \
617c478bd9Sstevel@tonic-gate	  session.o \
627c478bd9Sstevel@tonic-gate	  sshlogin.o \
63b6805bf7SGordon Ross	  sshpty.o
646f8d59d8SJan Pechanec
65b6805bf7SGordon RossEXTOBJS = sftp-server.o
66b6805bf7SGordon Ross
67b6805bf7SGordon RossSRCS	= $(OBJS:.o=.c) ../sftp-server/sftp-server.c
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
707c478bd9Sstevel@tonic-gateinclude ../Makefile.ssh-common
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateLDLIBS += $(SSH_COMMON_LDLIBS) -lsocket \
737c478bd9Sstevel@tonic-gate	-lnsl \
747c478bd9Sstevel@tonic-gate	-lz \
757c478bd9Sstevel@tonic-gate	-lpam \
767c478bd9Sstevel@tonic-gate	-lbsm \
77f998c95eSceastha	-lwrap \
78d7141854SRobert Mustacchi	-lcrypto \
797c478bd9Sstevel@tonic-gate	-lgss \
807c478bd9Sstevel@tonic-gate	-lcontract
8124da5b34SrieMAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
8224da5b34SrieLDFLAGS += $(MAPFILES:%=-M%)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gatePOFILE_DIR= ..
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gate.KEEP_STATE:
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gate.PARALLEL: $(OBJS)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gateall: $(PROG)
917c478bd9Sstevel@tonic-gate
92b6805bf7SGordon Ross$(PROG): $(OBJS) $(EXTOBJS) $(MAPFILES) ../libssh/$(MACH)/libssh.a \
9324da5b34Srie	../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
94b6805bf7SGordon Ross	$(LINK.c) $(OBJS) $(EXTOBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
957c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
967c478bd9Sstevel@tonic-gate
97b6805bf7SGordon Ross%.o : ../sftp-server/%.c
98b6805bf7SGordon Ross	$(COMPILE.c) -o $@ $<
99b6805bf7SGordon Ross	$(POST_PROCESS_O)
100b6805bf7SGordon Ross
101*75614fd9SAlexander Pyhalovinstall: all $(DIRS) $(ROOTLIBSSHPROG) $(ROOTLIBSSH) $(ROOTLIBSUNSSH)
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gate
1047c478bd9Sstevel@tonic-gate$(ROOTLIBSSHPROG)/%: %
1057c478bd9Sstevel@tonic-gate	$(INS.file)
1067c478bd9Sstevel@tonic-gate
107*75614fd9SAlexander Pyhalov$(ROOTLIBSUNSSHPROG)/%: %
108*75614fd9SAlexander Pyhalov	$(INS.file)
109*75614fd9SAlexander Pyhalov
1107c478bd9Sstevel@tonic-gate$(DIRS):
1117c478bd9Sstevel@tonic-gate	$(INS.dir)
1127c478bd9Sstevel@tonic-gate
1137c478bd9Sstevel@tonic-gateclean:
114b6805bf7SGordon Ross	$(RM) $(OBJS) $(EXTOBJS)
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gatelint:	lint_SRCS
1177c478bd9Sstevel@tonic-gate
1187c478bd9Sstevel@tonic-gateinclude ../Makefile.msg.targ
1197c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
120