xref: /titanic_50/usr/src/cmd/ssh/libssh/Makefile.com (revision 3fbbb872ea33adea240e8fd8c692f6d3131cc69b)
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# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24# ident	"%Z%%M%	%I%	%E% SMI"
25#
26
27LIBRARY =	libssh.a
28VERS =		.1
29
30OBJECTS =	\
31		atomicio.o \
32		authfd.o \
33		authfile.o \
34		bufaux.o \
35		buffer.o \
36		canohost.o \
37		channels.o \
38		cipher.o \
39		cipher-ctr.o \
40		compat.o \
41		compress.o \
42		crc32.o \
43		deattack.o \
44		dh.o \
45		dispatch.o \
46		fatal.o \
47		g11n.o \
48		mac.o \
49		msg.o \
50		hostfile.o \
51		key.o \
52		kex.o \
53		kexdh.o \
54		kexdhc.o \
55		kexdhs.o \
56		kexgex.o \
57		kexgexc.o \
58		kexgexs.o \
59		kexgssc.o \
60		kexgsss.o \
61		log.o \
62		match.o \
63		misc.o \
64		mpaux.o \
65		nchan.o \
66		packet.o \
67		progressmeter.o \
68		radix.o \
69		entropy.o \
70		readpass.o \
71		rsa.o \
72		scard.o \
73		scard-opensc.o \
74		ssh-dss.o \
75		ssh-gss.o \
76		ssh-rsa.o \
77		tildexpand.o \
78		ttymodes.o \
79		uidswap.o \
80		uuencode.o \
81		xlist.o \
82		xmalloc.o \
83		readconf.o \
84		sftp-common.o \
85		proxy-io.o
86
87include $(SRC)/lib/Makefile.lib
88
89BUILD.AR =       $(RM) $@ ; $(AR) $(ARFLAGS) $@ $(AROBJS)
90
91SRCDIR =	../common
92SRCS =		$(OBJECTS:%.o=../common/%.c)
93
94LIBS =		$(LIBRARY) $(LINTLIB)
95
96# definitions for lint
97# Until libz is compiled against unsigned uid/gid ON bits.
98#LINTFLAGS +=	 $(OPENSSL_LDFLAGS) -lcrypto -lz -lsocket -lnsl -lc
99LINTFLAGS +=	 $(OPENSSL_LDFLAGS) -lcrypto -lsocket -lnsl -lc
100$(LINTLIB) :=	 SRCS = $(SRCDIR)/$(LINTSRC)
101
102POFILE_DIR =	../..
103
104.KEEP_STATE:
105
106all:		$(LIBS)
107
108# lint requires the (not installed) lint library
109lint:		$(LINTLIB) .WAIT lintcheck
110
111include $(SRC)/lib/Makefile.targ
112
113objs/%.o:	$(SRCDIR)/%.c
114	$(COMPILE.c) -o $@ $<
115	$(POST_PROCESS_O)
116
117include ../../Makefile.ssh-common
118include ../../Makefile.msg.targ
119