xref: /titanic_50/usr/src/cmd/ssh/sshd/Makefile (revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968)
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	  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
84MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
85LDFLAGS += $(MAPFILES:%=-M%)
86
87DYNFLAGS += $(OPENSSL_DYNFLAGS) $(C99_DISABLE)
88
89POFILE_DIR= ..
90
91CPPFLAGS += -I$(ROOTSFWINCLUDE)
92
93.KEEP_STATE:
94
95.PARALLEL: $(OBJS)
96
97all: $(PROG)
98
99$(PROG): $(OBJS) $(MAPFILES) ../libssh/$(MACH)/libssh.a \
100	../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
101	$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
102	$(POST_PROCESS)
103
104install: all $(DIRS) $(ROOTLIBSSHPROG) $(ROOTLIBSSH)
105
106
107$(ROOTLIBSSHPROG)/%: %
108	$(INS.file)
109
110$(DIRS):
111	$(INS.dir)
112
113clean:
114	$(RM) -f $(OBJS) $(PROG)
115
116lint:	lint_SRCS
117
118include ../Makefile.msg.targ
119include ../../Makefile.targ
120