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