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 scard.o \ 74 scard-opensc.o \ 75 ssh-dss.o \ 76 ssh-gss.o \ 77 ssh-rsa.o \ 78 tildexpand.o \ 79 ttymodes.o \ 80 uidswap.o \ 81 uuencode.o \ 82 xlist.o \ 83 xmalloc.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