build: don't use BUILT_SOURCES for the static context header

BUILT_SOURCES simply forces the header to be built first.

Use real dependencies instead. This fixes builds with dependency tracking
disabled where a real target is specified.

As a bonus, this also fixes the issue of gen_context and the header not being
rebuilt when gen_context.c is touched.
This commit is contained in:
Cory Fields 2015-07-31 13:24:39 -04:00
parent ae4f0c6eec
commit b8e39ac5e4
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ gen_%.o: src/gen_%.c
gen_context$(BUILD_EXEEXT): $(gen_context_OBJECTS) gen_context$(BUILD_EXEEXT): $(gen_context_OBJECTS)
$(CC_FOR_BUILD) $^ -o $@ $(CC_FOR_BUILD) $^ -o $@
BUILT_SOURCES = src/ecmult_static_context.h $(libsecp256k1_la_OBJECTS): src/ecmult_static_context.h
$(tests_OBJECTS): src/ecmult_static_context.h
src/ecmult_static_context.h: gen_context src/ecmult_static_context.h: gen_context
./gen_context ./gen_context