xref: /titanic_50/usr/src/cmd/ssh/ssh-http-proxy-connect/Makefile (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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
28PROG= ssh-http-proxy-connect
29
30DIRS= $(ROOTLIBSSH)
31
32OBJS= ssh-http-proxy-connect.o
33
34SRCS= $(OBJS:.o=.c)
35
36POFILE_DIR= ..
37
38.KEEP_STATE:
39
40.PARALLEL: $(OBJS)
41
42all: $(PROG)
43
44include ../../Makefile.cmd
45include ../Makefile.ssh-common
46
47LDLIBS += $(SSH_COMMON_LDLIBS) -lsocket
48
49install: all $(DIRS) $(ROOTLIBSSHPROG) $(ROOTLIBSSH)
50
51$(ROOTLIBSSHPROG)/%: %
52	$(INS.file)
53
54$(DIRS):
55	$(INS.dir)
56
57$(PROG): $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
58	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
59	$(POST_PROCESS)
60
61clean:
62	$(RM) -f $(OBJS) $(PROG)
63
64lint:	lint_SRCS
65
66include ../../Makefile.targ
67include ../Makefile.msg.targ
68