build: fix hard-coded usage of "gen_context"

The binary needs an extension on some platforms.
This commit is contained in:
Cory Fields 2015-07-31 13:33:58 -04:00
parent b8e39ac5e4
commit e4ce393683
1 changed files with 5 additions and 5 deletions

View File

@ -79,20 +79,20 @@ CPPFLAGS_FOR_BUILD +=-I$(top_srcdir)/
CFLAGS_FOR_BUILD += -Wall -Wextra -Wno-unused-function CFLAGS_FOR_BUILD += -Wall -Wextra -Wno-unused-function
gen_context_OBJECTS = gen_context.o gen_context_OBJECTS = gen_context.o
gen_context_BIN = gen_context$(BUILD_EXEEXT)
gen_%.o: src/gen_%.c gen_%.o: src/gen_%.c
$(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $< -o $@ $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $< -o $@
gen_context$(BUILD_EXEEXT): $(gen_context_OBJECTS) $(gen_context_BIN): $(gen_context_OBJECTS)
$(CC_FOR_BUILD) $^ -o $@ $(CC_FOR_BUILD) $^ -o $@
$(libsecp256k1_la_OBJECTS): src/ecmult_static_context.h $(libsecp256k1_la_OBJECTS): src/ecmult_static_context.h
$(tests_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_BIN)
./gen_context ./$(gen_context_BIN)
CLEANFILES = gen_context src/ecmult_static_context.h CLEANFILES = $(gen_context_BIN) src/ecmult_static_context.h
endif endif
EXTRA_DIST = autogen.sh src/gen_context.c src/basic-config.h EXTRA_DIST = autogen.sh src/gen_context.c src/basic-config.h