xref: /linux/tools/laptop/freefall/Makefile (revision bd628c1bed7902ec1f24ba0fe70758949146abbe)
1# SPDX-License-Identifier: GPL-2.0
2PREFIX ?= /usr
3SBINDIR ?= sbin
4INSTALL ?= install
5
6TARGET = freefall
7
8all: $(TARGET)
9
10%: %.c
11	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
12
13clean:
14	$(RM) $(TARGET)
15
16install: freefall
17	$(INSTALL) -D -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/$(SBINDIR)/$(TARGET)
18