xref: /titanic_41/usr/src/cmd/ssh/libopenbsd-compat/Makefile.com (revision 25cf1a301a396c38e8adf52c15f537b80d2483f7)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27# cmd/ssh/libopenbsd-compat/Makefile.com
28#
29
30LIBRARY= libopenbsd-compat.a
31VERS= .1
32
33OBJECTS= \
34	bsd-arc4random.o \
35	bsd-cray.o \
36	bsd-cygwin_util.o \
37	bsd-getpeereid.o \
38	bsd-misc.o \
39	bsd-nextstep.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