Kyle Swenson | 8d8f654 | 2021-03-15 11:02:55 -0600 | [diff] [blame^] | 1 | PREFIX ?= /usr |
2 | SBINDIR ?= sbin | ||||
3 | INSTALL ?= install | ||||
4 | CC = $(CROSS_COMPILE)gcc | ||||
5 | |||||
6 | TARGET = freefall | ||||
7 | |||||
8 | all: $(TARGET) | ||||
9 | |||||
10 | %: %.c | ||||
11 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< | ||||
12 | |||||
13 | clean: | ||||
14 | $(RM) $(TARGET) | ||||
15 | |||||
16 | install: freefall | ||||
17 | $(INSTALL) -D -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/$(SBINDIR)/$(TARGET) |