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 | ||||
Mario Limonciello | 9d64fc0 | 2017-11-01 14:25:37 -0500 | [diff] [blame] | 5 | |
6 | TARGET = dell-smbios-example | ||||
7 | |||||
8 | all: $(TARGET) | ||||
9 | |||||
10 | %: %.c | ||||
11 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< | ||||
12 | |||||
13 | clean: | ||||
14 | $(RM) $(TARGET) | ||||
15 | |||||
16 | install: dell-smbios-example | ||||
17 | $(INSTALL) -D -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/$(SBINDIR)/$(TARGET) |