comparison Makefile.in @ 1355:3fdd8c5a0195 fuzz

merge main to fuzz
author Matt Johnston <matt@ucc.asn.au>
date Thu, 18 May 2017 23:45:10 +0800
parents 66c1cfd5e100 5abbecdecba4
children 3677a510f545
comparison
equal deleted inserted replaced
1354:7618759e9327 1355:3fdd8c5a0195
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
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] $@
226 239
227 ## Fuzzing targets 240 ## Fuzzing targets
228 241
229 # list of fuzz targets 242 # list of fuzz targets
230 FUZZ_TARGETS=fuzzer-preauth 243 FUZZ_TARGETS=fuzzer-preauth
255 dropbearkey -t ecdsa -size 256 -f keye 268 dropbearkey -t ecdsa -size 256 -f keye
256 echo > hostkeys.c 269 echo > hostkeys.c
257 /usr/bin/xxd -i -a keyr >> hostkeys.c 270 /usr/bin/xxd -i -a keyr >> hostkeys.c
258 /usr/bin/xxd -i -a keye >> hostkeys.c 271 /usr/bin/xxd -i -a keye >> hostkeys.c
259 /usr/bin/xxd -i -a keyd >> hostkeys.c 272 /usr/bin/xxd -i -a keyd >> hostkeys.c
260