comparison Makefile.in @ 1295:750ec4ec4cbe

Convert #ifdef to #if, other build changes
author Matt Johnston <matt@ucc.asn.au>
date Wed, 04 May 2016 15:33:40 +0200
parents 3017bc7d6238
children 5abbecdecba4
comparison
equal deleted inserted replaced
1294:56aba7dedbea 1295:750ec4ec4cbe
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@
192 198
193 link%: 199 link%:
194 -rm -f $*$(EXEEXT) 200 -rm -f $*$(EXEEXT)
195 -ln -s dropbearmulti$(EXEEXT) $*$(EXEEXT) 201 -ln -s dropbearmulti$(EXEEXT) $*$(EXEEXT)
196 202
197 $(STATIC_LTC): options.h 203 $(STATIC_LTC): options.h default_options.h
198 cd libtomcrypt && $(MAKE) 204 cd libtomcrypt && $(MAKE)
199 205
200 $(STATIC_LTM): options.h 206 $(STATIC_LTM): options.h default_options.h
201 cd libtommath && $(MAKE) 207 cd libtommath && $(MAKE)
208
209 %.o: default_options.h
202 210
203 .PHONY : clean sizes thisclean distclean tidy ltc-clean ltm-clean 211 .PHONY : clean sizes thisclean distclean tidy ltc-clean ltm-clean
204 212
205 ltc-clean: 213 ltc-clean:
206 cd libtomcrypt && $(MAKE) clean 214 cd libtomcrypt && $(MAKE) clean
213 221
214 clean: ltc-clean ltm-clean thisclean 222 clean: ltc-clean ltm-clean thisclean
215 223
216 thisclean: 224 thisclean:
217 -rm -f dropbear dbclient dropbearkey dropbearconvert scp scp-progress \ 225 -rm -f dropbear dbclient dropbearkey dropbearconvert scp scp-progress \
218 dropbearmulti *.o *.da *.bb *.bbg *.prof 226 dropbearmulti *.o *.da *.bb *.bbg *.prof default_options.h
219 227
220 distclean: clean tidy 228 distclean: clean tidy
221 -rm -f config.h 229 -rm -f config.h
222 -rm -f Makefile 230 -rm -f Makefile
223 231
224 tidy: 232 tidy:
225 -rm -f *~ *.gcov */*~ 233 -rm -f *~ *.gcov */*~
234
235 default_options.h: default_options.h.in
236 echo "# > > > Generated from $^, edit that file instead !" > $@
237 echo >> $@
238 $(srcdir)/ifndef_wrapper.sh < $^ > $@