xref: /titanic_41/usr/src/cmd/ssh/libopenbsd-compat/Makefile.com (revision 24a1f0af9f770e0e795ef1fa1c6dece8dd8dc959)
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# 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		daemon.o \
45		dirname.o \
46		getcwd.o \
47		getgrouplist.o \
48		getopt.o \
49		glob.o \
50		inet_aton.o \
51		inet_ntoa.o \
52		inet_ntop.o \
53		mktemp.o \
54		readpassphrase.o \
55		realpath.o \
56		rresvport.o \
57		setenv.o \
58		setproctitle.o \
59		sigact.o \
60		strlcat.o \
61		strlcpy.o \
62		strmode.o \
63		port-irix.o \
64		port-aix.o
65
66include $(SRC)/lib/Makefile.lib
67
68BUILD.AR =	$(RM) $@ ; $(AR) $(ARFLAGS) $@ $(AROBJS)
69
70SRCDIR =	../common
71SRCS =		$(OBJECTS:%.o=../common/%.c)
72
73LIBS =		$(LIBRARY) $(LINTLIB)
74
75$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
76
77POFILE_DIR =	../..
78
79.KEEP_STATE:
80
81all:		$(LIBS)
82
83# lint requires the (non-installed) lint library
84lint:		$(LINTLIB) .WAIT lintcheck
85
86include $(SRC)/lib/Makefile.targ
87
88objs/%.o:	$(SRCDIR)/%.c
89	$(COMPILE.c) -o $@ $<
90	$(POST_PROCESS_O)
91
92include ../../Makefile.ssh-common
93include ../../Makefile.msg.targ
94