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 2009 Sun Microsystems, Inc.  All rights reserved.
  22 # Use is subject to license terms.
  23 #
  24 
  25 LIBRARY =       libssh.a
  26 VERS =          .1
  27 
  28 OBJECTS =       \
  29                 addrmatch.o \
  30                 atomicio.o \
  31                 authfd.o \
  32                 authfile.o \
  33                 bufaux.o \
  34                 buffer.o \
  35                 canohost.o \
  36                 channels.o \
  37                 cipher.o \
  38                 cipher-ctr.o \
  39                 compat.o \
  40                 compress.o \
  41                 crc32.o \
  42                 deattack.o \
  43                 dh.o \
  44                 dispatch.o \
  45                 engine.o \
  46                 entropy.o \
  47                 fatal.o \
  48                 g11n.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                 mac.o \
  62                 match.o \
  63                 misc.o \
  64                 mpaux.o \
  65                 msg.o \
  66                 nchan.o \
  67                 packet.o \
  68                 progressmeter.o \
  69                 proxy-io.o \
  70                 radix.o \
  71                 readconf.o \
  72                 readpass.o \
  73                 rsa.o \
  74                 sftp-common.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 
  85 include $(SRC)/lib/Makefile.lib
  86 
  87 BUILD.AR =       $(RM) $@ ; $(AR) $(ARFLAGS) $@ $(AROBJS)
  88 
  89 SRCDIR =        ../common
  90 SRCS =          $(OBJECTS:%.o=../common/%.c)
  91 
  92 LIBS =          $(LIBRARY) $(LINTLIB)
  93 
  94 # Define LDLIBS conditionally for lintcheck, rather than in general, since
  95 # we're building an archive library which itself links to nothing, we just
  96 # want lint to know about these libraries.
  97 lintcheck  :=   LDLIBS += -lsocket -lnsl -lc
  98 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  99 
 100 POFILE_DIR =    ../..
 101 
 102 .KEEP_STATE:
 103 
 104 all:            $(LIBS)
 105 
 106 # lint requires the (not installed) lint library
 107 lint:           $(LINTLIB) .WAIT lintcheck
 108 
 109 include $(SRC)/lib/Makefile.targ
 110 
 111 objs/%.o:       $(SRCDIR)/%.c
 112         $(COMPILE.c) -o $@ $<
 113         $(POST_PROCESS_O)
 114 
 115 include ../../Makefile.ssh-common
 116 include ../../Makefile.msg.targ