1PREFIX ?= /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)
18