xref: /onnv-gate/usr/src/cmd/ssh/Makefile (revision 9678:67872fe09b8e)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
54162Skupfer# Common Development and Distribution License (the "License").
64162Skupfer# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
214162Skupfer
224162Skupfer#
239139SJan.Pechanec@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
240Sstevel@tonic-gate# Use is subject to license terms.
250Sstevel@tonic-gate#
260Sstevel@tonic-gate
270Sstevel@tonic-gateinclude		../Makefile.cmd
280Sstevel@tonic-gate
299139SJan.Pechanec@Sun.COM# libopenbsd-compat and libssh are used by all SSH binaries, and sftp-server is
309139SJan.Pechanec@Sun.COM# also used as an internal part of sshd.
310Sstevel@tonic-gateSUBDIRS= \
320Sstevel@tonic-gate	etc \
330Sstevel@tonic-gate	libopenbsd-compat \
340Sstevel@tonic-gate	libssh \
359139SJan.Pechanec@Sun.COM	sftp-server \
360Sstevel@tonic-gate	.WAIT \
370Sstevel@tonic-gate	ssh \
380Sstevel@tonic-gate	sshd \
390Sstevel@tonic-gate	scp \
400Sstevel@tonic-gate	ssh-add \
410Sstevel@tonic-gate	ssh-agent \
420Sstevel@tonic-gate	ssh-keygen \
430Sstevel@tonic-gate	ssh-keysign \
440Sstevel@tonic-gate	ssh-keyscan \
450Sstevel@tonic-gate	sftp \
460Sstevel@tonic-gate	ssh-http-proxy-connect \
470Sstevel@tonic-gate	ssh-socks5-proxy-connect
480Sstevel@tonic-gate
490Sstevel@tonic-gateMSGFILE=ssh.po
500Sstevel@tonic-gatePOFILE=_messages.po
510Sstevel@tonic-gate
520Sstevel@tonic-gate.KEEP_STATE:
530Sstevel@tonic-gate
540Sstevel@tonic-gateall :=          TARGET= all
550Sstevel@tonic-gateclean :=        TARGET= clean
560Sstevel@tonic-gateclobber :=      TARGET= clobber
570Sstevel@tonic-gatedelete :=       TARGET= delete
580Sstevel@tonic-gateinstall :=      TARGET= install
590Sstevel@tonic-gatelint :=         TARGET= lint
600Sstevel@tonic-gatecatalog :=      TARGET= catalog
610Sstevel@tonic-gatepackage :=      TARGET= package
620Sstevel@tonic-gate_msg :=		TARGET= _msg
630Sstevel@tonic-gate$(POFILE) :=	TARGET= $(POFILE)
640Sstevel@tonic-gate
650Sstevel@tonic-gateall clean clobber install lint $(POFILE): $(SUBDIRS)
660Sstevel@tonic-gate
674162Skupferclobber: FRC
684162Skupfer	$(RM) THIRDPARTYLICENSE
694162Skupfer
704162Skupferall install: THIRDPARTYLICENSE
714162Skupfer
720Sstevel@tonic-gatecheck: $(CHECKHDRS)
730Sstevel@tonic-gate
740Sstevel@tonic-gate# See Makefile.msg.targ for $(MSGFILE) update instructions
75*9678SHuie-Ying.Lee@Sun.COM_msg:
760Sstevel@tonic-gate	$(RM) $(POFILE)
770Sstevel@tonic-gate	$(TOUCH) $(POFILE)
78*9678SHuie-Ying.Lee@Sun.COM	$(MAKE) $(POFILE) XGETTEXT=/usr/bin/gxgettext
79*9678SHuie-Ying.Lee@Sun.COM	$(CP) $(POFILE) $(MSGFILE)
800Sstevel@tonic-gate	$(CP) $(MSGFILE) $(MSGDOMAIN)
810Sstevel@tonic-gate
820Sstevel@tonic-gate$(SUBDIRS):     FRC
830Sstevel@tonic-gate	cd $@; pwd; $(MAKE) $(TARGET)
840Sstevel@tonic-gate
854162Skupfer# skip the summary; just include the actual license clauses.
864162SkupferTHIRDPARTYLICENSE: doc/LICENCE
874162Skupfer	$(SED) -n '/1)/,$$p' doc/LICENCE > $@
884162Skupfer
890Sstevel@tonic-gateFRC:
90