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