xref: /titanic_44/usr/src/cmd/ssh/libssh/Makefile.com (revision d7141854234c22ab8fe0547bf51a2f3a30781870)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5f48205beScasper# Common Development and Distribution License (the "License").
6f48205beScasper# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
21b07b2f5cSHuie-Ying Lee# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
227c478bd9Sstevel@tonic-gate# Use is subject to license terms.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateLIBRARY =	libssh.a
267c478bd9Sstevel@tonic-gateVERS =		.1
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateOBJECTS =	\
29b07b2f5cSHuie-Ying Lee		addrmatch.o \
307c478bd9Sstevel@tonic-gate		atomicio.o \
317c478bd9Sstevel@tonic-gate		authfd.o \
327c478bd9Sstevel@tonic-gate		authfile.o \
337c478bd9Sstevel@tonic-gate		bufaux.o \
347c478bd9Sstevel@tonic-gate		buffer.o \
357c478bd9Sstevel@tonic-gate		canohost.o \
367c478bd9Sstevel@tonic-gate		channels.o \
377c478bd9Sstevel@tonic-gate		cipher.o \
387c478bd9Sstevel@tonic-gate		cipher-ctr.o \
397c478bd9Sstevel@tonic-gate		compat.o \
407c478bd9Sstevel@tonic-gate		compress.o \
417c478bd9Sstevel@tonic-gate		crc32.o \
427c478bd9Sstevel@tonic-gate		deattack.o \
437c478bd9Sstevel@tonic-gate		dh.o \
447c478bd9Sstevel@tonic-gate		dispatch.o \
45cd7d5fafSJan Pechanec		engine.o \
46b07b2f5cSHuie-Ying Lee		entropy.o \
477c478bd9Sstevel@tonic-gate		fatal.o \
487c478bd9Sstevel@tonic-gate		g11n.o \
497c478bd9Sstevel@tonic-gate		hostfile.o \
507c478bd9Sstevel@tonic-gate		key.o \
517c478bd9Sstevel@tonic-gate		kex.o \
527c478bd9Sstevel@tonic-gate		kexdh.o \
537c478bd9Sstevel@tonic-gate		kexdhc.o \
547c478bd9Sstevel@tonic-gate		kexdhs.o \
557c478bd9Sstevel@tonic-gate		kexgex.o \
567c478bd9Sstevel@tonic-gate		kexgexc.o \
577c478bd9Sstevel@tonic-gate		kexgexs.o \
587c478bd9Sstevel@tonic-gate		kexgssc.o \
597c478bd9Sstevel@tonic-gate		kexgsss.o \
607c478bd9Sstevel@tonic-gate		log.o \
61b07b2f5cSHuie-Ying Lee		mac.o \
627c478bd9Sstevel@tonic-gate		match.o \
637c478bd9Sstevel@tonic-gate		misc.o \
647c478bd9Sstevel@tonic-gate		mpaux.o \
65b07b2f5cSHuie-Ying Lee		msg.o \
667c478bd9Sstevel@tonic-gate		nchan.o \
677c478bd9Sstevel@tonic-gate		packet.o \
6890685d2cSjp161948		progressmeter.o \
69b07b2f5cSHuie-Ying Lee		proxy-io.o \
707c478bd9Sstevel@tonic-gate		radix.o \
71b07b2f5cSHuie-Ying Lee		readconf.o \
727c478bd9Sstevel@tonic-gate		readpass.o \
737c478bd9Sstevel@tonic-gate		rsa.o \
74b07b2f5cSHuie-Ying Lee		sftp-common.o \
757c478bd9Sstevel@tonic-gate		ssh-dss.o \
767c478bd9Sstevel@tonic-gate		ssh-gss.o \
777c478bd9Sstevel@tonic-gate		ssh-rsa.o \
787c478bd9Sstevel@tonic-gate		tildexpand.o \
797c478bd9Sstevel@tonic-gate		ttymodes.o \
807c478bd9Sstevel@tonic-gate		uidswap.o \
817c478bd9Sstevel@tonic-gate		uuencode.o \
827c478bd9Sstevel@tonic-gate		xlist.o \
83b07b2f5cSHuie-Ying Lee		xmalloc.o
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gateBUILD.AR =       $(RM) $@ ; $(AR) $(ARFLAGS) $@ $(AROBJS)
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gateSRCDIR =	../common
907c478bd9Sstevel@tonic-gateSRCS =		$(OBJECTS:%.o=../common/%.c)
917c478bd9Sstevel@tonic-gate
927c478bd9Sstevel@tonic-gateLIBS =		$(LIBRARY) $(LINTLIB)
937c478bd9Sstevel@tonic-gate
94c110a195SRichard Lowe# Define LDLIBS conditionally for lintcheck, rather than in general, since
95c110a195SRichard Lowe# we're building an archive library which itself links to nothing, we just
96c110a195SRichard Lowe# want lint to know about these libraries.
97*d7141854SRobert Mustacchilintcheck  :=	LDLIBS += -lcrypto -lz -lsocket -lnsl -lc
987c478bd9Sstevel@tonic-gate$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gatePOFILE_DIR =	../..
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gate.KEEP_STATE:
1037c478bd9Sstevel@tonic-gate
1047c478bd9Sstevel@tonic-gateall:		$(LIBS)
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gate# lint requires the (not installed) lint library
1077c478bd9Sstevel@tonic-gatelint:		$(LINTLIB) .WAIT lintcheck
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ
1107c478bd9Sstevel@tonic-gate
1117c478bd9Sstevel@tonic-gateobjs/%.o:	$(SRCDIR)/%.c
1127c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1137c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gateinclude ../../Makefile.ssh-common
1167c478bd9Sstevel@tonic-gateinclude ../../Makefile.msg.targ
117