xref: /titanic_41/usr/src/cmd/ssh/libssh/Makefile.com (revision 54f1e6d0c65afabe949aadb54f842af6603508de)
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	radix.o \
68	entropy.o \
69	readpass.o \
70	rsa.o \
71	scard.o \
72	scard-opensc.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	monitor_wrap.o \
83	monitor_fdpass.o \
84	readconf.o \
85	sftp-common.o \
86	proxy-io.o
87
88include $(SRC)/lib/Makefile.lib
89
90BUILD.AR=       $(RM) $@ ; $(AR) $(ARFLAGS) $@ $(AROBJS)
91
92SRCDIR=	../common
93SRCS=	$(OBJECTS:%.o=../common/%.c)
94
95LIBS =		$(LIBRARY) $(LINTLIB)
96
97# definitions for lint
98# Until libz is compiled against unsigned uid/gid ON bits.
99#LINTFLAGS	+= $(OPENSSL_LDFLAGS) -lcrypto -lz -lsocket -lnsl -lc
100LINTFLAGS	+= $(OPENSSL_LDFLAGS) -lcrypto -lsocket -lnsl -lc
101$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
102
103POFILE_DIR= ../..
104
105.KEEP_STATE:
106
107all: $(LIBS)
108
109# lint requires the (not installed) lint library
110lint: $(LINTLIB) .WAIT lintcheck
111
112include $(SRC)/lib/Makefile.targ
113
114objs/%.o: $(SRCDIR)/%.c
115	$(COMPILE.c) -o $@ $<
116	$(POST_PROCESS_O)
117
118include ../../Makefile.ssh-common
119include ../../Makefile.msg.targ
120