comparison Makefile.in @ 890:d50c17fe57d7

Fix linking -lcrypt for systems without libcrypt in /usr/lib
author Nicolas Boos <nicolas.boos@wanadoo.fr>
date Fri, 07 Feb 2014 07:57:45 +0800
parents 3899ca4b65fd
children 4f1988cb79ce
comparison
equal deleted inserted replaced
889:3899ca4b65fd 890:d50c17fe57d7
56 debug.h channel.h chansession.h config.h queue.h sshpty.h \ 56 debug.h channel.h chansession.h config.h queue.h sshpty.h \
57 termcodes.h gendss.h genrsa.h runopts.h includes.h \ 57 termcodes.h gendss.h genrsa.h runopts.h includes.h \
58 loginrec.h atomicio.h x11fwd.h agentfwd.h tcpfwd.h compat.h \ 58 loginrec.h atomicio.h x11fwd.h agentfwd.h tcpfwd.h compat.h \
59 listener.h fake-rfc2553.h ecc.h ecdsa.h 59 listener.h fake-rfc2553.h ecc.h ecdsa.h
60 60
61 dropbearobjs=$(COMMONOBJS) $(CLISVROBJS) $(SVROBJS) @CRYPTLIB@ 61 dropbearobjs=$(COMMONOBJS) $(CLISVROBJS) $(SVROBJS)
62 dbclientobjs=$(COMMONOBJS) $(CLISVROBJS) $(CLIOBJS) 62 dbclientobjs=$(COMMONOBJS) $(CLISVROBJS) $(CLIOBJS)
63 dropbearkeyobjs=$(COMMONOBJS) $(KEYOBJS) 63 dropbearkeyobjs=$(COMMONOBJS) $(KEYOBJS)
64 dropbearconvertobjs=$(COMMONOBJS) $(CONVERTOBJS) 64 dropbearconvertobjs=$(COMMONOBJS) $(CONVERTOBJS)
65 scpobjs=$(SCPOBJS) 65 scpobjs=$(SCPOBJS)
66 66
158 dropbear: $(dropbearobjs) 158 dropbear: $(dropbearobjs)
159 dbclient: $(dbclientobjs) 159 dbclient: $(dbclientobjs)
160 dropbearkey: $(dropbearkeyobjs) 160 dropbearkey: $(dropbearkeyobjs)
161 dropbearconvert: $(dropbearconvertobjs) 161 dropbearconvert: $(dropbearconvertobjs)
162 162
163 dropbear dbclient: $(HEADERS) $(LIBTOM_DEPS) Makefile 163 dropbear: $(HEADERS) $(LIBTOM_DEPS) Makefile
164 $(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBTOM_LIBS) $(LIBS) @CRYPTLIB@
165
166 dbclient: $(HEADERS) $(LIBTOM_DEPS) Makefile
164 $(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBTOM_LIBS) $(LIBS) 167 $(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBTOM_LIBS) $(LIBS)
165 168
166 dropbearkey dropbearconvert: $(HEADERS) $(LIBTOM_DEPS) Makefile 169 dropbearkey dropbearconvert: $(HEADERS) $(LIBTOM_DEPS) Makefile
167 $(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBTOM_LIBS) 170 $(CC) $(LDFLAGS) -o $@$(EXEEXT) $($@objs) $(LIBTOM_LIBS)
168 171
172 175
173 176
174 # multi-binary compilation. 177 # multi-binary compilation.
175 MULTIOBJS= 178 MULTIOBJS=
176 ifeq ($(MULTI),1) 179 ifeq ($(MULTI),1)
177 MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs))) @CRYPTLIB@ 180 MULTIOBJS=dbmulti.o $(sort $(foreach prog, $(PROGRAMS), $($(prog)objs)))
178 CFLAGS+=$(addprefix -DDBMULTI_, $(PROGRAMS)) -DDROPBEAR_MULTI 181 CFLAGS+=$(addprefix -DDBMULTI_, $(PROGRAMS)) -DDROPBEAR_MULTI
179 endif 182 endif
180 183
181 dropbearmulti$(EXEEXT): $(HEADERS) $(MULTIOBJS) $(LIBTOM_DEPS) Makefile 184 dropbearmulti$(EXEEXT): $(HEADERS) $(MULTIOBJS) $(LIBTOM_DEPS) Makefile
182 $(CC) $(LDFLAGS) -o $@ $(MULTIOBJS) $(LIBTOM_LIBS) $(LIBS)$ 185 $(CC) $(LDFLAGS) -o $@ $(MULTIOBJS) $(LIBTOM_LIBS) $(LIBS) @CRYPTLIB@
183 186
184 multibinary: dropbearmulti$(EXEEXT) 187 multibinary: dropbearmulti$(EXEEXT)
185 188
186 multilink: multibinary $(addprefix link, $(PROGRAMS)) 189 multilink: multibinary $(addprefix link, $(PROGRAMS))
187 190