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