xref: /titanic_44/usr/src/cmd/ssh/libssh/Makefile.com (revision 72ca8cc954e6ca79da549736925d4569dc23b239)
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 2008 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24# ident	"@(#)Makefile.com	1.19	08/08/12 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		engine.o \
47		fatal.o \
48		g11n.o \
49		mac.o \
50		msg.o \
51		hostfile.o \
52		key.o \
53		kex.o \
54		kexdh.o \
55		kexdhc.o \
56		kexdhs.o \
57		kexgex.o \
58		kexgexc.o \
59		kexgexs.o \
60		kexgssc.o \
61		kexgsss.o \
62		log.o \
63		match.o \
64		misc.o \
65		mpaux.o \
66		nchan.o \
67		packet.o \
68		progressmeter.o \
69		radix.o \
70		entropy.o \
71		readpass.o \
72		rsa.o \
73		ssh-dss.o \
74		ssh-gss.o \
75		ssh-rsa.o \
76		tildexpand.o \
77		ttymodes.o \
78		uidswap.o \
79		uuencode.o \
80		xlist.o \
81		xmalloc.o \
82		readconf.o \
83		sftp-common.o \
84		proxy-io.o
85
86include $(SRC)/lib/Makefile.lib
87
88BUILD.AR =       $(RM) $@ ; $(AR) $(ARFLAGS) $@ $(AROBJS)
89
90SRCDIR =	../common
91SRCS =		$(OBJECTS:%.o=../common/%.c)
92
93LIBS =		$(LIBRARY) $(LINTLIB)
94
95# definitions for lint
96# Until libz is compiled against unsigned uid/gid ON bits.
97#LINTFLAGS +=	 $(OPENSSL_LDFLAGS) -lcrypto -lz -lsocket -lnsl -lc
98LINTFLAGS +=	 $(OPENSSL_LDFLAGS) -lcrypto -lsocket -lnsl -lc
99$(LINTLIB) :=	 SRCS = $(SRCDIR)/$(LINTSRC)
100
101POFILE_DIR =	../..
102
103.KEEP_STATE:
104
105all:		$(LIBS)
106
107# lint requires the (not installed) lint library
108lint:		$(LINTLIB) .WAIT lintcheck
109
110include $(SRC)/lib/Makefile.targ
111
112objs/%.o:	$(SRCDIR)/%.c
113	$(COMPILE.c) -o $@ $<
114	$(POST_PROCESS_O)
115
116include ../../Makefile.ssh-common
117include ../../Makefile.msg.targ
118