diff options
author | Matt Turner <mattst88@gmail.com> | 2016-05-23 18:10:11 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2016-05-23 18:10:11 -0700 |
commit | d106235f5eebe280f4f820fc29bb5d8708e2f54d (patch) | |
tree | fb6ec824690da6ac63b127f7c2d194907b852c1d /Makefile |
Initial import
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..73a9d66 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +CFLAGS ?= -g -O2 -mcpu=ev67 -pipe -std=gnu99 + +all: ev5 ev6 ev6-no-prefetch ev7 clear_page ev6-prefetch_m + +ev5: test.o ev5-clear_page.S + $(CC) $^ -o $@ + +ev6: test.o ev6-clear_page.S + $(CC) -DWH64="wh64" $^ -o $@ + +ev6-no-prefetch: test.o ev6-clear_page.S + $(CC) -DWH64="nop #" $^ -o $@ + +ev7: test.o ev6-clear_page.S + $(CC) -DWH64="wh64en" $^ -o $@ + +clear_page: test.o clear_page.c + $(CC) $(CFLAGS) $^ -o $@ + +ev6-prefetch_m: test.o ev6-clear_page-prefetch_m.S + $(CC) $(CFLAGS) $^ -o $@ + +clean: + rm -f *.o ev5 ev6 ev6-no-prefetch ev7 clear_page ev6-prefetch_m |