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