historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/roms/skiboot/hw/test/Makefile.check
2024-01-16 11:20:27 -06:00

29 lines
704 B
Makefile

# -*-Makefile-*-
SUBDIRS += hw/test/
HW_TEST := hw/test/phys-map-test hw/test/run-port80h
.PHONY : hw-check
hw-check: $(HW_TEST:%=%-check)
.PHONY : hw-coverage
hw-coverage: $(HW_TEST:%=%-gcov-run)
check: hw-check
coverage: hw-coverage
$(HW_TEST:%=%-gcov-run) : %-run: %
$(call QTEST, TEST-COVERAGE ,$< , $<)
$(HW_TEST:%=%-check) : %-check: %
$(call Q, RUN-TEST ,$(VALGRIND) $<, $<)
$(HW_TEST) : % : %.c hw/phys-map.o
$(call Q, HOSTCC ,$(HOSTCC) $(HOSTCFLAGS) -O0 -g -I include -I . -o $@ $<, $<)
$(HW_TEST:%=%-gcov): %-gcov : %.c %
$(call Q, HOSTCC ,$(HOSTCC) $(HOSTCFLAGS) $(HOSTGCOVCFLAGS) -I include -I . -lgcov -o $@ $<, $<)
clean: hw-clean
hw-clean:
$(RM) -f hw/test/*.[od] $(HW_TEST)