summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
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