summaryrefslogtreecommitdiff
path: root/powerpc/stringloops/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'powerpc/stringloops/Makefile')
-rw-r--r--powerpc/stringloops/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/powerpc/stringloops/Makefile b/powerpc/stringloops/Makefile
new file mode 100644
index 0000000..506d773
--- /dev/null
+++ b/powerpc/stringloops/Makefile
@@ -0,0 +1,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