From 22eb197d6cbfbf9f71b2f64aede89080af82ae7f Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 11 Feb 2018 10:53:59 +0800 Subject: [PATCH] Fix building default_options.h --- Makefile.in | 5 ++--- default_options.h.in | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile.in b/Makefile.in index 5c4e106..1ffb2d9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -234,7 +234,6 @@ tidy: # default_options.h is stored in version control, could not find a workaround # for parallel "make -j" and dependency rules. default_options.h: default_options.h.in - echo "# > > > Generated from $^, edit that file instead !" > $@.tmp - echo >> $@.tmp - $(srcdir)/ifndef_wrapper.sh < $^ > $@.tmp + echo "/*\n > > > Do not edit this file (default_options.h) < < <\nGenerated from "$^"\nLocal customisation goes in localoptions.h\n*/\n\n" > $@.tmp + $(srcdir)/ifndef_wrapper.sh < $^ >> $@.tmp mv $@.tmp $@ diff --git a/default_options.h.in b/default_options.h.in index c44fb97..b0641e4 100644 --- a/default_options.h.in +++ b/default_options.h.in @@ -3,12 +3,11 @@ /* > > > Read This < < < -default_options.h.in (this file) documents compile-time options, and provides -default values. +default_options.h.in documents compile-time options, and provides default values. Local customisation should be added to localoptions.h which is used if it exists. Options defined there will override any options in this -file (#ifndef guards added by ifndef_wrapper.sh). +file. Options can also be defined with -DDROPBEAR_XXX in Makefile CFLAGS