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