diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-12-04 09:57:21 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-12-04 10:40:58 +0100 |
| commit | a5dff3123ce3bcb0d20b72f0797e6f2c9e3eb99d (patch) | |
| tree | 2aa202a743026a9c566f242db5e1d69546124f72 /src | |
| parent | dded798f1a038c8482fcc5d41824a9161d0a60c2 (diff) | |
| download | lilliput-ae-implem-a5dff3123ce3bcb0d20b72f0797e6f2c9e3eb99d.tar.xz | |
Réorganisation des tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/common.mk | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/common.mk b/src/common.mk deleted file mode 100644 index 54ab986..0000000 --- a/src/common.mk +++ /dev/null @@ -1,58 +0,0 @@ -nist_flags = -std=c99 -Wall -Wextra -Wshadow -fsanitize=address,undefined -O2 -CFLAGS += -Isrc -I. $(nist_flags) -Werror -LDFLAGS += $(nist_flags) - -# use "make VERBOSE=1" to have full commands printed out. -VERBOSE = 0 -ifeq ($(VERBOSE),1) -Q = -else -Q = @ -endif - - -.PHONY: clean test $(tests) - - -clean: - -rm -r results - -results: - @ mkdir -p $@ - -results/%.o: %.c - @ mkdir -p $(dir $@) - @ echo "CC $@" - $(Q) gcc -c $< $(CFLAGS) -o $@ - -results/test-%: results/test/test-%.o - @ echo "LD $@" - $(Q) gcc $^ $(LDFLAGS) -o $@ - -results/traces-%: results/test/traces-%.o - @ echo "LD $@" - $(Q) gcc $^ $(LDFLAGS) -o $@ - -test: $(tests) - -$(tests): %: results/% - @ echo "TEST $@" - $(Q) ./results/$@ - -traces: $(traces) -traces-%: results/traces-% - @ echo "TRACES $@" - $(Q) ./results/$@ - - -results/src/cipher.o: src/cipher.h src/tweakey.h src/constants.h src/parameters.h _parameters.h -results/src/constants.o: src/constants.h -results/src/lilliput-ae-i.o: src/lilliput-ae.h src/cipher.h src/constants.h src/parameters.h _parameters.h -results/src/tweakey.o: src/tweakey.h src/constants.h src/parameters.h _parameters.h -results/test-*.o: src/test-helpers.h src/parameters.h _parameters.h -results/traces-%.o: src/test-helpers.h src/parameters.h _parameters.h - -# TODO: should add order-only prerequisites to remove mkdirs inside recipes -# TODO: add valgrind, although it does not seem to play well with ASAN -# TODO: should use gcc -M... to generate .o -> .h dependencies -# TODO: auto-generate "tests" variable |
