comparison Makefile.in @ 1318:10e2a7727253 coverity

merge coverity
author Matt Johnston <matt@ucc.asn.au>
date Fri, 22 Jul 2016 00:08:02 +0800
parents 5abbecdecba4
children 3fdd8c5a0195 b8764eee6bdb
comparison
equal deleted inserted replaced
1286:7d02b83c61fd 1318:10e2a7727253
22 LIBTOM_DEPS=$(STATIC_LTC) $(STATIC_LTM) 22 LIBTOM_DEPS=$(STATIC_LTC) $(STATIC_LTM)
23 CFLAGS+=-I$(srcdir)/libtomcrypt/src/headers/ 23 CFLAGS+=-I$(srcdir)/libtomcrypt/src/headers/
24 LIBTOM_LIBS=$(STATIC_LTC) $(STATIC_LTM) 24 LIBTOM_LIBS=$(STATIC_LTC) $(STATIC_LTM)
25 endif 25 endif
26 26
27 ifneq ($(wildcard localoptions.h),)
28 CFLAGS+=-DLOCALOPTIONS_H_EXISTS
29 endif
30
27 COMMONOBJS=dbutil.o buffer.o dbhelpers.o \ 31 COMMONOBJS=dbutil.o buffer.o dbhelpers.o \
28 dss.o bignum.o \ 32 dss.o bignum.o \
29 signkey.o rsa.o dbrandom.o \ 33 signkey.o rsa.o dbrandom.o \
30 queue.o \ 34 queue.o \
31 atomicio.o compat.o fake-rfc2553.o \ 35 atomicio.o compat.o fake-rfc2553.o \
73 exec_prefix=@exec_prefix@ 77 exec_prefix=@exec_prefix@
74 datarootdir = @datarootdir@ 78 datarootdir = @datarootdir@
75 bindir=@bindir@ 79 bindir=@bindir@
76 sbindir=@sbindir@ 80 sbindir=@sbindir@
77 mandir=@mandir@ 81 mandir=@mandir@
82
83 .DELETE_ON_ERROR:
78 84
79 CC=@CC@ 85 CC=@CC@
80 AR=@AR@ 86 AR=@AR@
81 RANLIB=@RANLIB@ 87 RANLIB=@RANLIB@
82 STRIP=@STRIP@ 88 STRIP=@STRIP@
153 $(INSTALL) -d $(DESTDIR)$(mandir)/man1 159 $(INSTALL) -d $(DESTDIR)$(mandir)/man1
154 if test -e $*.1; then $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi 160 if test -e $*.1; then $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi
155 161
156 inst_dropbearmulti: $(addprefix insmulti, $(PROGRAMS)) 162 inst_dropbearmulti: $(addprefix insmulti, $(PROGRAMS))
157 163
158
159 # for some reason the rule further down doesn't like $($@objs) as a prereq. 164 # for some reason the rule further down doesn't like $($@objs) as a prereq.
160 dropbear: $(dropbearobjs) 165 dropbear: $(dropbearobjs)
161 dbclient: $(dbclientobjs) 166 dbclient: $(dbclientobjs)
162 dropbearkey: $(dropbearkeyobjs) 167 dropbearkey: $(dropbearkeyobjs)
163 dropbearconvert: $(dropbearconvertobjs) 168 dropbearconvert: $(dropbearconvertobjs)
193 link%: 198 link%:
194 -rm -f $*$(EXEEXT) 199 -rm -f $*$(EXEEXT)
195 -ln -s dropbearmulti$(EXEEXT) $*$(EXEEXT) 200 -ln -s dropbearmulti$(EXEEXT) $*$(EXEEXT)
196 201
197 $(STATIC_LTC): options.h 202 $(STATIC_LTC): options.h
198 cd libtomcrypt && $(MAKE) 203 $(MAKE) -C libtomcrypt
199 204
200 $(STATIC_LTM): options.h 205 $(STATIC_LTM): options.h
201 cd libtommath && $(MAKE) 206 $(MAKE) -C libtommath
202 207
203 .PHONY : clean sizes thisclean distclean tidy ltc-clean ltm-clean 208 .PHONY : clean sizes thisclean distclean tidy ltc-clean ltm-clean
204 209
205 ltc-clean: 210 ltc-clean:
206 cd libtomcrypt && $(MAKE) clean 211 $(MAKE) -C libtomcrypt clean
207 212
208 ltm-clean: 213 ltm-clean:
209 cd libtommath && $(MAKE) clean 214 $(MAKE) -C libtommath clean
210 215
211 sizes: dropbear 216 sizes: dropbear
212 objdump -t dropbear|grep ".text"|cut -d "." -f 2|sort -rn 217 objdump -t dropbear|grep ".text"|cut -d "." -f 2|sort -rn
213 218
214 clean: ltc-clean ltm-clean thisclean 219 clean: ltc-clean ltm-clean thisclean
215 220
216 thisclean: 221 thisclean:
217 -rm -f dropbear dbclient dropbearkey dropbearconvert scp scp-progress \ 222 -rm -f dropbear dbclient dropbearkey dropbearconvert scp scp-progress \
218 dropbearmulti *.o *.da *.bb *.bbg *.prof 223 dropbearmulti *.o *.da *.bb *.bbg *.prof
219 224
220 distclean: clean tidy 225 distclean: clean tidy
221 -rm -f config.h 226 -rm -f config.h
222 -rm -f Makefile 227 -rm -f Makefile
223 228
224 tidy: 229 tidy:
225 -rm -f *~ *.gcov */*~ 230 -rm -f *~ *.gcov */*~
231
232 # default_options.h is stored in version control, could not find a workaround
233 # for parallel "make -j" and dependency rules.
234 default_options.h: default_options.h.in
235 echo "# > > > Generated from $^, edit that file instead !" > [email protected]
236 echo >> [email protected]
237 $(srcdir)/ifndef_wrapper.sh < $^ > [email protected]
238 mv [email protected] $@