18 #
19 # CDDL HEADER END
20 #
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
23 #
24 # cmd/ssh/sftp/Makefile
25
26 PROG = sftp
27
28 OBJS = \
29 sftp.o \
30 sftp-client.o \
31 sftp-glob.o
32
33 SRCS = $(OBJS:.o=.c)
34
35 include ../../Makefile.cmd
36 include ../Makefile.ssh-common
37
38 LDLIBS += $(SSH_COMMON_LDLIBS) -lsocket -lcrypto -ltecla
39
40 POFILE_DIR = ..
41
42 .KEEP_STATE:
43
44 .PARALLEL: $(OBJS)
45
46 all: $(PROG)
47
48 $(PROG): $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
49 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
50 $(POST_PROCESS)
51
52 install: all $(ROOTPROG)
53
54 clean:
55 $(RM) -f $(OBJS) $(PROG)
56
57 lint: lint_SRCS
58
|
18 #
19 # CDDL HEADER END
20 #
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
23 #
24 # cmd/ssh/sftp/Makefile
25
26 PROG = sftp
27
28 OBJS = \
29 sftp.o \
30 sftp-client.o \
31 sftp-glob.o
32
33 SRCS = $(OBJS:.o=.c)
34
35 include ../../Makefile.cmd
36 include ../Makefile.ssh-common
37
38 LDLIBS += $(SSH_COMMON_LDLIBS) -lsocket -ltecla
39
40 # libsunw_crypto has no lint library, so we can only use it when building
41 $(PROG) := LDLIBS += -lsunw_crypto
42
43 POFILE_DIR = ..
44
45 .KEEP_STATE:
46
47 .PARALLEL: $(OBJS)
48
49 all: $(PROG)
50
51 $(PROG): $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
52 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
53 $(POST_PROCESS)
54
55 install: all $(ROOTPROG)
56
57 clean:
58 $(RM) -f $(OBJS) $(PROG)
59
60 lint: lint_SRCS
61
|