xref: /titanic_44/usr/src/cmd/ssh/libssh/Makefile.com (revision c28749e97052f09388969427adf7df641cdcdc22)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY= libssh.a
29VERS= .1
30
31OBJECTS= \
32	atomicio.o \
33	authfd.o \
34	authfile.o \
35	bufaux.o \
36	buffer.o \
37	canohost.o \
38	channels.o \
39	cipher.o \
40	cipher-ctr.o \
41	compat.o \
42	compress.o \
43	crc32.o \
44	deattack.o \
45	dh.o \
46	dispatch.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	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	monitor_wrap.o \
84	monitor_fdpass.o \
85	readconf.o \
86	sftp-common.o \
87	proxy-io.o
88
89include $(SRC)/lib/Makefile.lib
90
91BUILD.AR=       $(RM) $@ ; $(AR) $(ARFLAGS) $@ $(AROBJS)
92
93SRCDIR=	../common
94SRCS=	$(OBJECTS:%.o=../common/%.c)
95
96LIBS =		$(LIBRARY) $(LINTLIB)
97
98# definitions for lint
99LINTFLAGS	+= $(OPENSSL_LDFLAGS) -lcrypto -lz -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