22 # Use is subject to license terms.
23 #
24 # cmd/ssh/ssh/Makefile
25
26 PROG= ssh
27
28 OBJS = ssh.o \
29 sshconnect.o \
30 sshconnect1.o \
31 sshconnect2.o \
32 sshtty.o \
33 clientloop.o \
34 gss-clnt.o
35 SRCS = $(OBJS:.o=.c)
36
37 include ../../Makefile.cmd
38 include ../Makefile.ssh-common
39
40 LDLIBS += $(SSH_COMMON_LDLIBS) -lsocket \
41 -lnsl \
42 -lz \
43 -lcrypto \
44 -lgss
45
46 POFILE_DIR= ..
47
48 .KEEP_STATE:
49
50 .PARALLEL: $(OBJS)
51
52 all: $(PROG)
53
54 $(PROG): $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
55 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
56 $(POST_PROCESS)
57
58 install: all $(ROOTPROG)
59
60 clean:
61 $(RM) -f $(OBJS) $(PROG)
62
63 lint: lint_SRCS
64
65 include ../Makefile.msg.targ
|
22 # Use is subject to license terms.
23 #
24 # cmd/ssh/ssh/Makefile
25
26 PROG= ssh
27
28 OBJS = ssh.o \
29 sshconnect.o \
30 sshconnect1.o \
31 sshconnect2.o \
32 sshtty.o \
33 clientloop.o \
34 gss-clnt.o
35 SRCS = $(OBJS:.o=.c)
36
37 include ../../Makefile.cmd
38 include ../Makefile.ssh-common
39
40 LDLIBS += $(SSH_COMMON_LDLIBS) -lsocket \
41 -lnsl \
42 -lgss
43
44 # libcrypto and libz have no lint libraries, so we can only use them when
45 # building
46 $(PROG) := LDLIBS += -lcrypto -lz
47
48 POFILE_DIR= ..
49
50 .KEEP_STATE:
51
52 .PARALLEL: $(OBJS)
53
54 all: $(PROG)
55
56 $(PROG): $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
57 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
58 $(POST_PROCESS)
59
60 install: all $(ROOTPROG)
61
62 clean:
63 $(RM) -f $(OBJS) $(PROG)
64
65 lint: lint_SRCS
66
67 include ../Makefile.msg.targ
|