Mario Limonciello | 9d64fc0 | 2017-11-01 14:25:37 -0500 | [diff] [blame] | 1 | PREFIX ?= /usr |
2 | SBINDIR ?= sbin | ||||
3 | INSTALL ?= install | ||||
4 | CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include | ||||
5 | CC = $(CROSS_COMPILE)gcc | ||||
6 | |||||
7 | TARGET = dell-smbios-example | ||||
8 | |||||
9 | all: $(TARGET) | ||||
10 | |||||
11 | %: %.c | ||||
12 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< | ||||
13 | |||||
14 | clean: | ||||
15 | $(RM) $(TARGET) | ||||
16 | |||||
17 | install: dell-smbios-example | ||||
18 | $(INSTALL) -D -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/$(SBINDIR)/$(TARGET) |