summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6e50856
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+PREFIX := /usr/local/bin
+
+CC := $(CROSS_COMPILE)gcc
+
+CFLAGS += -O2 -g -Wall
+
+BINS := \
+ cpuburn-a7 \
+ cpuburn-a8 \
+ cpuburn-a9
+
+all: $(BINS)
+
+$(BINS): %: %.S
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
+
+install:
+ mkdir -p $(DESTDIR)$(PREFIX)
+ install -m 755 $(BINS) $(DESTDIR)$(PREFIX)
+
+clean:
+ rm -rf $(BINS)
+
+.PHONY: install clean