xref: /titanic_41/usr/src/cmd/ssh/Makefile (revision 900a30171ba6f9cfc1c677784987eae6ef2dd2cc)
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#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27include		../Makefile.cmd
28
29# libopenbsd-compat and libssh are used by all SSH binaries, and sftp-server is
30# also used as an internal part of sshd.
31SUBDIRS= \
32	etc \
33	libopenbsd-compat \
34	libssh \
35	sftp-server \
36	.WAIT \
37	ssh \
38	sshd \
39	scp \
40	ssh-add \
41	ssh-agent \
42	ssh-keygen \
43	ssh-keysign \
44	ssh-keyscan \
45	sftp \
46	ssh-http-proxy-connect \
47	ssh-socks5-proxy-connect
48
49MSGFILE=ssh.po
50POFILE=_messages.po
51
52CLOBBERFILES += $(MSGFILE) THIRDPARTYLICENSE
53
54.KEEP_STATE:
55
56all :=          TARGET= all
57clean :=        TARGET= clean
58clobber :=      TARGET= clobber
59delete :=       TARGET= delete
60install :=      TARGET= install
61lint :=         TARGET= lint
62catalog :=      TARGET= catalog
63package :=      TARGET= package
64_msg :=		TARGET= _msg
65$(POFILE) :=	TARGET= $(POFILE)
66
67all clean install lint $(POFILE): $(SUBDIRS)
68clobber: $(SUBDIRS) clobber_local
69clobber_local:
70	$(RM) $(CLOBBERFILES)
71
72all install: THIRDPARTYLICENSE
73
74check: $(CHECKHDRS)
75
76# See Makefile.msg.targ for $(MSGFILE) update instructions
77_msg:
78	$(RM) $(POFILE)
79	$(TOUCH) $(POFILE)
80	$(MAKE) $(POFILE) XGETTEXT=/usr/bin/gxgettext
81	$(CP) $(POFILE) $(MSGFILE)
82	$(CP) $(MSGFILE) $(MSGDOMAIN)
83
84$(SUBDIRS):     FRC
85	cd $@; pwd; $(MAKE) $(TARGET)
86
87# skip the summary; just include the actual license clauses.
88THIRDPARTYLICENSE: doc/LICENCE
89	$(SED) -n '/1)/,$$p' doc/LICENCE > $@
90
91FRC:
92