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 progressmeter.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 99# Until libz is compiled against unsigned uid/gid ON bits. 100#LINTFLAGS += $(OPENSSL_LDFLAGS) -lcrypto -lz -lsocket -lnsl -lc 101LINTFLAGS += $(OPENSSL_LDFLAGS) -lcrypto -lsocket -lnsl -lc 102$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 103 104POFILE_DIR = ../.. 105 106.KEEP_STATE: 107 108all: $(LIBS) 109 110# lint requires the (not installed) lint library 111lint: $(LINTLIB) .WAIT lintcheck 112 113include $(SRC)/lib/Makefile.targ 114 115objs/%.o: $(SRCDIR)/%.c 116 $(COMPILE.c) -o $@ $< 117 $(POST_PROCESS_O) 118 119include ../../Makefile.ssh-common 120include ../../Makefile.msg.targ 121