1 # SPDX-License-Identifier: GPL-2.0-only << 2 PREFIX ?= /usr 1 PREFIX ?= /usr 3 SBINDIR ?= sbin 2 SBINDIR ?= sbin 4 INSTALL ?= install 3 INSTALL ?= install 5 CFLAGS += -D__EXPORTED_HEADERS__ -I../../inclu 4 CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include >> 5 CC = $(CROSS_COMPILE)gcc 6 6 7 TARGET = dell-smbios-example 7 TARGET = dell-smbios-example 8 8 9 all: $(TARGET) 9 all: $(TARGET) 10 10 11 %: %.c 11 %: %.c 12 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< 12 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< 13 13 14 clean: 14 clean: 15 $(RM) $(TARGET) 15 $(RM) $(TARGET) 16 16 17 install: dell-smbios-example 17 install: dell-smbios-example 18 $(INSTALL) -D -m 755 $(TARGET) $(DESTD 18 $(INSTALL) -D -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/$(SBINDIR)/$(TARGET)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.