Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark Andrews#
816e576f77e2c46df3e3d97d65822aa8aded7c4bDavid Lawrence# CDDL HEADER START
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
1e730144b4cbb0767510f5f6adef6666bf861bbbMark Andrews# The contents of this file are subject to the terms of the
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# Common Development and Distribution License, Version 1.0 only
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# (the "License"). You may not use this file except in compliance
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# with the License.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# See the License for the specific language governing permissions
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# and limitations under the License.
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson#
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
aff4e48c82c1de198a627fe7a57fb6f400d6d3c1Andreas Gustafsson#
aff4e48c82c1de198a627fe7a57fb6f400d6d3c1Andreas Gustafsson# CDDL HEADER END
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson#
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson# Use is subject to license terms.
2d54cf04fc02db7c369592b6f91bbd1330df3387Andreas Gustafsson#
b3651a8e87c12ea0428eeb5cf4b304be5bcd9db0Brian Wellington# ident "%Z%%M% %I% %E% SMI"
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson#
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson# cmd/ssh/ssh-keygen/Makefile
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonPROG= ssh-keygen
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson
bfe7da9c6b20573c2da09ad2e7cac0a54c8cd47bMark AndrewsOBJS = \
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafsson ssh-keygen.o
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas GustafssonSRCS = $(OBJS:.o=.c)
c5b14e2676e8832de77bf63b8f58890d13a6c1e2Andreas Gustafsson
65dfcdc392b93f9d67684adce8b33a1d8168e67cAndreas Gustafssoninclude ../../Makefile.cmd
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark Andrewsinclude ../Makefile.ssh-common
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark Andrews
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark AndrewsLDLIBS += $(SSH_COMMON_LDLIBS) $(OPENSSL_LDFLAGS) -lcrypto
f11c81f4fe26ae9f1ef990257b3b2cac6ab5be12Mark Andrews
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas GustafssonDYNFLAGS += $(OPENSSL_DYNFLAGS)
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas GustafssonPOFILE_DIR= ..
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson
0e873a120279dbae16ec3773d7c67d473602b7c6Andreas Gustafsson.KEEP_STATE:
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafsson
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafsson.PARALLEL: $(OBJS)
72e278abc7c73059de68017eceae7d5138ee98c1Andreas Gustafsson
76458ec215a57c6806afdd831b9c9a30b93344b0Andreas Gustafssonall: $(PROG)
c5b14e2676e8832de77bf63b8f58890d13a6c1e2Andreas Gustafsson
d075bd326e34600c036c905eea6c80f565ea951fAndreas Gustafsson$(PROG): $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
d075bd326e34600c036c905eea6c80f565ea951fAndreas Gustafsson $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
361a4334ec8ef9d678dcd6c94f96547efedb02bdAndreas Gustafsson $(POST_PROCESS)
7f800a6b10b0172e36e6fef855f48109717b6a2cAndreas Gustafsson
7f800a6b10b0172e36e6fef855f48109717b6a2cAndreas Gustafssoninstall: all $(ROOTPROG)
b976f9c60a09f4a098852d0653ad5df6842557a7Andreas Gustafsson
a1bb4b0e4f71fb2878050905087d279cfa87b786Andreas Gustafssonclean:
36bc6a0a8312de762caf1e984efe15c8e7170d9dAndreas Gustafsson $(RM) -f $(OBJS) $(PROG)
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssonlint: lint_SRCS
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssoninclude ../Makefile.msg.targ
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafssoninclude ../../Makefile.targ
63404af69b0b99b8fa551e92702921f01c3bbfd7Andreas Gustafsson