noarg:$(MAKE)-C../
PROGS:=count_instructions
EXTRA_SOURCES:=../harness.cevent.c
all:$(PROGS)$(PROGS):$(EXTRA_SOURCES)# loop.S can only be built 64-bitcount_instructions:loop.Scount_instructions.c$(EXTRA_SOURCES)$(CC)$(CFLAGS)-m64-o$@$^
run_tests:all@-forPROGin$(PROGS);do\./$$PROG;\done;clean:rm-f$(PROGS)loop.o
.PHONY:allrun_testsclean