summaryrefslogtreecommitdiffstats
path: root/tools/laptop/freefall/Makefile
diff options
context:
space:
mode:
authorPali Rohár2015-06-06 15:42:28 +0200
committerJonathan Corbet2015-06-09 00:42:07 +0200
commitb3fd7368f8f60bc9a7ffc2a5311db5f4dbd42180 (patch)
tree703c811d105751cf3215fd92cf31e02bdff25bfe /tools/laptop/freefall/Makefile
parentDocumentation: ARM: EXYNOS: Describe boot loaders interface (diff)
downloadkernel-qcow2-linux-b3fd7368f8f60bc9a7ffc2a5311db5f4dbd42180.tar.gz
kernel-qcow2-linux-b3fd7368f8f60bc9a7ffc2a5311db5f4dbd42180.tar.xz
kernel-qcow2-linux-b3fd7368f8f60bc9a7ffc2a5311db5f4dbd42180.zip
Move freefall program from Documentation/ to tools/
Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'tools/laptop/freefall/Makefile')
-rw-r--r--tools/laptop/freefall/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/laptop/freefall/Makefile b/tools/laptop/freefall/Makefile
new file mode 100644
index 000000000000..48c6c9328419
--- /dev/null
+++ b/tools/laptop/freefall/Makefile
@@ -0,0 +1,17 @@
+PREFIX ?= /usr
+SBINDIR ?= sbin
+INSTALL ?= install
+CC = $(CROSS_COMPILE)gcc
+
+TARGET = freefall
+
+all: $(TARGET)
+
+%: %.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+clean:
+ $(RM) $(TARGET)
+
+install: freefall
+ $(INSTALL) -D -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/$(SBINDIR)/$(TARGET)