Fix building default_options.h

This commit is contained in:
Matt Johnston 2018-02-11 10:53:59 +08:00
parent 3953018c2d
commit 22eb197d6c
2 changed files with 4 additions and 6 deletions

View File

@ -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 $@

View File

@ -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