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