diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2015-06-06 15:42:28 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2015-06-08 16:42:07 -0600 |
commit | b3fd7368f8f60bc9a7ffc2a5311db5f4dbd42180 (patch) | |
tree | 703c811d105751cf3215fd92cf31e02bdff25bfe /tools/laptop/freefall/Makefile | |
parent | a28ab162bdf04d0e5d814478340ba32999233e7e (diff) |
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/Makefile | 17 |
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) |