--- hatari/tests/debugger/makefile 2019/04/09 08:53:52 1.1.1.3 +++ hatari/tests/debugger/makefile 2019/04/09 08:55:01 1.1.1.4 @@ -9,11 +9,14 @@ # "make valgrind": # - run tests under valgrind # -# "make clean; make MUDFLAP=1 mudflap": -# - run tests with GCC mudflap checks +# "make clean; make CC=gcc- MUDFLAP=1 mudflap": +# - run tests with older GCC version mudflap checks +# (MudFlap was removed/replaced in GCC 4.9 with AddressSanitizer) +# +# TODO: support AddressSanitizer # Set the C compiler (e.g. gcc) -CC = gcc +CC ?= gcc # Directory given for 'cmake' i.e. where CMake created the config.h. # Could also be simply "../.." or "../../build". @@ -96,10 +99,10 @@ test: $(TESTS) for test in $^; do ./$$test; echo "Press "; read proceed; done # all the real & dummy deps -SOURCEDEPS = test-dummies.c ../../src/debug/breakcond.c \ +SOURCEDEPS = ../../src/debug/breakcond.c \ ../../src/debug/debugcpu.c ../../src/debug/history.c \ ../../src/debug/evaluate.c ../../src/debug/symbols.c \ - ../../src/str.c + ../../src/str.c test-dummies.c test-symbols: test-symbols.c $(SOURCEDEPS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)