1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-26 09:21:28 +00:00

Use $(CC) instead of gcc

This commit is contained in:
Thom Wiggers 2019-01-23 12:36:23 +01:00
parent 07ca665f0b
commit 879b804da5
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363

View File

@ -35,7 +35,7 @@ run-valgrind: bin/functest_$(subst /,_,$(SCHEME))
ifeq ($(shell uname -s),Linux) ifeq ($(shell uname -s),Linux)
valgrind --leak-check=full --error-exitcode=1 $< valgrind --leak-check=full --error-exitcode=1 $<
else else
echo "Valgrind not supported on this platform." @echo "Valgrind not supported on this platform."
endif endif
bin/sanitizer_$(subst /,_,$(SCHEME)): test/$(dir $(SCHEME))functest.c $(wildcard $(SCHEME)/clean/*.c) $(wildcard $(SCHEME)/clean/*.h) | require_scheme bin/sanitizer_$(subst /,_,$(SCHEME)): test/$(dir $(SCHEME))functest.c $(wildcard $(SCHEME)/clean/*.c) $(wildcard $(SCHEME)/clean/*.h) | require_scheme
@ -68,7 +68,7 @@ testvectors: bin/testvectors_$(subst /,_,$(SCHEME))
bin/shared_$(subst /,_,$(SCHEME))_clean.so: $(wildcard $(SCHEME)/clean/*.c) | require_scheme bin/shared_$(subst /,_,$(SCHEME))_clean.so: $(wildcard $(SCHEME)/clean/*.c) | require_scheme
mkdir -p bin mkdir -p bin
gcc $(CFLAGS) \ $(CC) $(CFLAGS) \
-DPQCLEAN_NAMESPACE=$(shell echo PQCLEAN_$(subst -,,$(notdir $(SCHEME))) | tr a-z A-Z) \ -DPQCLEAN_NAMESPACE=$(shell echo PQCLEAN_$(subst -,,$(notdir $(SCHEME))) | tr a-z A-Z) \
-nostdlib \ -nostdlib \
-shared \ -shared \
@ -163,7 +163,7 @@ run-symbol-namespace: test/check_symbol_namespace.py | require_scheme
.PHONY: run-testvectors-all .PHONY: run-testvectors-all
run-testvectors-all: test/check_testvectors.py run-testvectors-all: test/check_testvectors.py
for scheme in $(ALL_SCHEMES); do \ @for scheme in $(ALL_SCHEMES); do \
python3 test/check_testvectors.py $$scheme || exit 1; \ python3 test/check_testvectors.py $$scheme || exit 1; \
done done