summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-06-25 15:59:26 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-06-25 15:59:26 +0200
commit13b40ef43026bd1665c993e4bb21a7305b34da9e (patch)
tree73359f02d57480cc7cf8d609609ef4a53522e807
parent547c229284f3fa0e5e8ef4640a4a83eabe75cd52 (diff)
downloadcpuburn-arm-13b40ef43026bd1665c993e4bb21a7305b34da9e.tar.gz
cpuburn-arm-13b40ef43026bd1665c993e4bb21a7305b34da9e.tar.xz
Makefile: addHEADmaster
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-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