summaryrefslogtreecommitdiffhomepage
path: root/Makefile.in
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2016-05-04 15:33:40 +0200
committerMatt Johnston <matt@ucc.asn.au>2016-05-04 15:33:40 +0200
commit32a28d0d9cf7c567671366d6ec71df87627e2c49 (patch)
treeeed0f72ed707d62a28b4cb1d8da05c5d1b3f23c3 /Makefile.in
parentd6daad29fcfc20295473bf7e6a96f3016282e9e6 (diff)
Convert #ifdef to #if, other build changes
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in19
1 files changed, 16 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index d9bfdfa..f7655fc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -24,6 +24,10 @@ CFLAGS+=-I$(srcdir)/libtomcrypt/src/headers/
LIBTOM_LIBS=$(STATIC_LTC) $(STATIC_LTM)
endif
+ifneq ($(wildcard localoptions.h),)
+CFLAGS+=-DLOCALOPTIONS_H_EXISTS
+endif
+
COMMONOBJS=dbutil.o buffer.o dbhelpers.o \
dss.o bignum.o \
signkey.o rsa.o dbrandom.o \
@@ -76,6 +80,8 @@ bindir=@bindir@
sbindir=@sbindir@
mandir=@mandir@
+.DELETE_ON_ERROR:
+
CC=@CC@
AR=@AR@
RANLIB=@RANLIB@
@@ -194,12 +200,14 @@ link%:
-rm -f $*$(EXEEXT)
-ln -s dropbearmulti$(EXEEXT) $*$(EXEEXT)
-$(STATIC_LTC): options.h
+$(STATIC_LTC): options.h default_options.h
cd libtomcrypt && $(MAKE)
-$(STATIC_LTM): options.h
+$(STATIC_LTM): options.h default_options.h
cd libtommath && $(MAKE)
+%.o: default_options.h
+
.PHONY : clean sizes thisclean distclean tidy ltc-clean ltm-clean
ltc-clean:
@@ -215,7 +223,7 @@ clean: ltc-clean ltm-clean thisclean
thisclean:
-rm -f dropbear dbclient dropbearkey dropbearconvert scp scp-progress \
- dropbearmulti *.o *.da *.bb *.bbg *.prof
+ dropbearmulti *.o *.da *.bb *.bbg *.prof default_options.h
distclean: clean tidy
-rm -f config.h
@@ -223,3 +231,8 @@ distclean: clean tidy
tidy:
-rm -f *~ *.gcov */*~
+
+default_options.h: default_options.h.in
+ echo "# > > > Generated from $^, edit that file instead !" > $@
+ echo >> $@
+ $(srcdir)/ifndef_wrapper.sh < $^ > $@