xref: /linux/tools/laptop/freefall/Makefile (revision ae22a94997b8a03dcb3c922857c203246711f9d4)
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