Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Mario Limonciello | 9d64fc0 | 2017-11-01 14:25:37 -0500 | [diff] [blame] | 2 | PREFIX ?= /usr |
| 3 | SBINDIR ?= sbin |
| 4 | INSTALL ?= install |
| 5 | CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include |
Mario Limonciello | 9d64fc0 | 2017-11-01 14:25:37 -0500 | [diff] [blame] | 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) |