1PREFIX ?= /usr 2SBINDIR ?= sbin 3INSTALL ?= install 4CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include 5 6TARGET = dell-smbios-example 7 8all: $(TARGET) 9 10%: %.c 11 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< 12 13clean: 14 $(RM) $(TARGET) 15 16install: dell-smbios-example 17 $(INSTALL) -D -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/$(SBINDIR)/$(TARGET) 18