4 TEST_PROGS
:= count_instructions l3_bank_test per_event_excludes
5 EXTRA_SOURCES
:= ..
/harness.c event.c lib.c
9 $(TEST_PROGS
): $(EXTRA_SOURCES
)
11 # loop.S can only be built 64-bit
12 count_instructions
: loop.S count_instructions.c
$(EXTRA_SOURCES
)
13 $(CC
) $(CFLAGS
) -m64
-o
$@
$^
17 DEFAULT_RUN_TESTS
:= $(RUN_TESTS
)
18 override define RUN_TESTS
20 $(MAKE
) -C ebb run_tests
23 DEFAULT_EMIT_TESTS
:= $(EMIT_TESTS
)
24 override define EMIT_TESTS
26 $(MAKE
) -s
-C ebb emit_tests
29 DEFAULT_INSTALL_RULE
:= $(INSTALL_RULE
)
30 override define INSTALL_RULE
31 $(DEFAULT_INSTALL_RULE
)
32 $(MAKE
) -C ebb
install
36 rm -f
$(TEST_PROGS
) loop.o
42 .PHONY
: all run_tests
clean ebb