xref: /titanic_50/usr/src/cmd/ssh/libopenbsd-compat/Makefile.com (revision 356f72340a69936724c69f2f87fffa6f5887f885)
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# cmd/ssh/libopenbsd-compat/Makefile.com
25#
26
27LIBRARY	=	libopenbsd-compat.a
28VERS =		.1
29
30OBJECTS =	\
31		bsd-arc4random.o \
32		bsd-cray.o \
33		bsd-cygwin_util.o \
34		bsd-getpeereid.o \
35		bsd-misc.o \
36		bsd-asprintf.o \
37		bsd-snprintf.o \
38		bsd-waitpid.o \
39		fake-getaddrinfo.o \
40		fake-getnameinfo.o \
41		xmmap.o \
42		base64.o \
43		bindresvport.o \
44		dirname.o \
45		getcwd.o \
46		getgrouplist.o \
47		getopt.o \
48		glob.o \
49		inet_aton.o \
50		inet_ntoa.o \
51		inet_ntop.o \
52		mktemp.o \
53		readpassphrase.o \
54		realpath.o \
55		rresvport.o \
56		setenv.o \
57		setproctitle.o \
58		sigact.o \
59		strlcat.o \
60		strlcpy.o \
61		strmode.o \
62		port-irix.o \
63		port-aix.o
64
65include $(SRC)/lib/Makefile.lib
66
67BUILD.AR =	$(RM) $@ ; $(AR) $(ARFLAGS) $@ $(AROBJS)
68
69SRCDIR =	../common
70SRCS =		$(OBJECTS:%.o=../common/%.c)
71
72LIBS =		$(LIBRARY) $(LINTLIB)
73
74$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
75
76POFILE_DIR =	../..
77
78.KEEP_STATE:
79
80all:		$(LIBS)
81
82# lint requires the (non-installed) lint library
83lint:		$(LINTLIB) .WAIT lintcheck
84
85include $(SRC)/lib/Makefile.targ
86
87objs/%.o:	$(SRCDIR)/%.c
88	$(COMPILE.c) -o $@ $<
89	$(POST_PROCESS_O)
90
91include ../../Makefile.ssh-common
92include ../../Makefile.msg.targ
93