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