xref: /titanic_44/usr/src/cmd/ssh/sshd/Makefile (revision 2a9459bdd821c1cf59590a7a9069ac9c591e8a6b)
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 2007 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	-L$(ROOTSFWLIB) -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
89CPPFLAGS += -I$(ROOTSFWINCLUDE)
90
91.KEEP_STATE:
92
93.PARALLEL: $(OBJS)
94
95all: $(PROG)
96
97$(PROG): $(OBJS) $(MAPFILES) ../libssh/$(MACH)/libssh.a \
98	../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