xref: /titanic_50/usr/src/cmd/ssh/sshd/Makefile (revision 71269a2275bf5a143dad6461eee2710a344e7261)
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 2008 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	  servconf.o \
64	  serverloop.o \
65	  session.o \
66	  sshlogin.o \
67	  sshpty.o
68SRCS	= $(OBJS:.o=.c)
69
70include ../../Makefile.cmd
71include ../Makefile.ssh-common
72
73LDLIBS += $(SSH_COMMON_LDLIBS) -lsocket \
74	-lnsl \
75	-lz \
76	-lpam \
77	-lbsm \
78	-lwrap \
79	$(OPENSSL_LDFLAGS) -lcrypto \
80	-lgss \
81	-lcontract
82MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
83LDFLAGS += $(MAPFILES:%=-M%)
84
85DYNFLAGS += $(OPENSSL_DYNFLAGS) $(C99_DISABLE)
86
87POFILE_DIR= ..
88
89.KEEP_STATE:
90
91.PARALLEL: $(OBJS)
92
93all: $(PROG)
94
95$(PROG): $(OBJS) $(MAPFILES) ../libssh/$(MACH)/libssh.a \
96	../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
97	$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
98	$(POST_PROCESS)
99
100install: all $(DIRS) $(ROOTLIBSSHPROG) $(ROOTLIBSSH)
101
102
103$(ROOTLIBSSHPROG)/%: %
104	$(INS.file)
105
106$(DIRS):
107	$(INS.dir)
108
109clean:
110	$(RM) -f $(OBJS) $(PROG)
111
112lint:	lint_SRCS
113
114include ../Makefile.msg.targ
115include ../../Makefile.targ
116