58 loginrec.o \
59 servconf.o \
60 serverloop.o \
61 session.o \
62 sshlogin.o \
63 sshpty.o
64
65 EXTOBJS = sftp-server.o
66
67 SRCS = $(OBJS:.o=.c) ../sftp-server/sftp-server.c
68
69 include ../../Makefile.cmd
70 include ../Makefile.ssh-common
71
72 LDLIBS += $(SSH_COMMON_LDLIBS) -lsocket \
73 -lnsl \
74 -lz \
75 -lpam \
76 -lbsm \
77 -lwrap \
78 -lcrypto \
79 -lgss \
80 -lcontract
81 MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
82 LDFLAGS += $(MAPFILES:%=-M%)
83
84 POFILE_DIR= ..
85
86 .KEEP_STATE:
87
88 .PARALLEL: $(OBJS)
89
90 all: $(PROG)
91
92 $(PROG): $(OBJS) $(EXTOBJS) $(MAPFILES) ../libssh/$(MACH)/libssh.a \
93 ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
94 $(LINK.c) $(OBJS) $(EXTOBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
95 $(POST_PROCESS)
96
97 %.o : ../sftp-server/%.c
98 $(COMPILE.c) -o $@ $<
99 $(POST_PROCESS_O)
100
101 install: all $(DIRS) $(ROOTLIBSSHPROG) $(ROOTLIBSSH)
102
|
58 loginrec.o \
59 servconf.o \
60 serverloop.o \
61 session.o \
62 sshlogin.o \
63 sshpty.o
64
65 EXTOBJS = sftp-server.o
66
67 SRCS = $(OBJS:.o=.c) ../sftp-server/sftp-server.c
68
69 include ../../Makefile.cmd
70 include ../Makefile.ssh-common
71
72 LDLIBS += $(SSH_COMMON_LDLIBS) -lsocket \
73 -lnsl \
74 -lz \
75 -lpam \
76 -lbsm \
77 -lwrap \
78 -lgss \
79 -lcontract
80 MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
81 LDFLAGS += $(MAPFILES:%=-M%)
82
83 # libcrypto has no lint library, so we can only use it when building
84 $(PROG) := LDLIBS += -lcrypto
85
86 POFILE_DIR= ..
87
88 .KEEP_STATE:
89
90 .PARALLEL: $(OBJS)
91
92 all: $(PROG)
93
94 $(PROG): $(OBJS) $(EXTOBJS) $(MAPFILES) ../libssh/$(MACH)/libssh.a \
95 ../libopenbsd-compat/$(MACH)/libopenbsd-compat.a
96 $(LINK.c) $(OBJS) $(EXTOBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
97 $(POST_PROCESS)
98
99 %.o : ../sftp-server/%.c
100 $(COMPILE.c) -o $@ $<
101 $(POST_PROCESS_O)
102
103 install: all $(DIRS) $(ROOTLIBSSHPROG) $(ROOTLIBSSH)
104
|