macaw/x86/x86_tests/Makefile

25 lines
453 B
Makefile
Raw Normal View History

2019-04-04 19:42:11 +03:00
tests = btx_test.exe ucomis_test.exe pop_test.exe ret_test.exe
2019-04-03 18:24:57 +03:00
2019-04-04 19:42:11 +03:00
run : $(tests)
set -e; for v in $(tests); do echo "Running $$v"; ./$$v; done
2019-04-03 18:24:57 +03:00
%.o : %.s
clang -c -o $@ $<
2019-04-03 18:24:57 +03:00
%.o : %.c
clang -c -Wall -Werror -std=c11 -o $@ $<
expect_segfault.o : utils.h expect_segfault.h
%_test.exe : %_test.o %_run.o utils.h
clang -o $@ $(filter %.o,$^)
# ($^:%.o=%.o)
fsgs_test.exe : expect_segfault.o
2019-04-04 02:43:42 +03:00
2019-04-03 18:24:57 +03:00
clean :
2019-04-04 19:42:11 +03:00
rm -rf $(tests)
2019-04-03 18:24:57 +03:00
.PHONY : run clean
.PRECIOUS : %.o