blob: 48c6c93284194ad5b780a8f5d716c96c7fe350b8 [file] [log] [blame]
Pali Rohárb3fd7362015-06-06 15:42:28 +02001PREFIX ?= /usr
2SBINDIR ?= sbin
3INSTALL ?= install
4CC = $(CROSS_COMPILE)gcc
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)