Print this page
don't pass in lint libraries which no longer exist


  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 # libcrypto has no lint library, so we can only use it when building
  40 $(PROG) := LDLIBS += -lcrypto
  41 
  42 POFILE_DIR =    ..
  43 
  44 .KEEP_STATE:
  45 
  46 .PARALLEL:      $(OBJS)
  47 
  48 all: $(PROG)
  49 
  50 $(PROG):        $(OBJS) ../libssh/$(MACH)/libssh.a ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
  51         $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
  52         $(POST_PROCESS)
  53 
  54 install:        all $(ROOTPROG)
  55 
  56 clean:
  57         $(RM) -f $(OBJS) $(PROG)
  58 
  59 lint:           lint_SRCS
  60