xref: /titanic_44/usr/src/cmd/ssh/sshd/Makefile (revision ae115bc77f6fcde83175c75b4206dc2e50747966)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 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	-lcontract
84
85DYNFLAGS += $(OPENSSL_DYNFLAGS) $(C99_DISABLE)
86
87POFILE_DIR= ..
88
89CPPFLAGS += -I$(ROOTSFWINCLUDE)
90
91.KEEP_STATE:
92
93.PARALLEL: $(OBJS)
94
95all: $(PROG)
96
97$(PROG): $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
98	$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
99	$(POST_PROCESS)
100
101install: all $(DIRS) $(ROOTLIBSSHPROG) $(ROOTLIBSSH)
102
103
104$(ROOTLIBSSHPROG)/%: %
105	$(INS.file)
106
107$(DIRS):
108	$(INS.dir)
109
110clean:
111	$(RM) -f $(OBJS) $(PROG)
112
113lint:	lint_SRCS
114
115include ../Makefile.msg.targ
116include ../../Makefile.targ
117