Makefile 295 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# The loops are all 64-bit code
CFLAGS += -m64
CFLAGS += -I$(CURDIR)

PROGS := memcmp
EXTRA_SOURCES := memcmp_64.S ../harness.c

all: $(PROGS)

$(PROGS): $(EXTRA_SOURCES)

run_tests: all
	@-for PROG in $(PROGS); do \
		./$$PROG; \
	done;

clean:
	rm -f $(PROGS) *.o

.PHONY: all run_tests clean