xref: /linux/tools/wmi/Makefile (revision c79c3c34f75d72a066e292b10aa50fc758c97c89)
1# SPDX-License-Identifier: GPL-2.0-only
2PREFIX ?= /usr
3SBINDIR ?= sbin
4INSTALL ?= install
5CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include
6
7TARGET = dell-smbios-example
8
9all: $(TARGET)
10
11%: %.c
12	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
13
14clean:
15	$(RM) $(TARGET)
16
17install: dell-smbios-example
18	$(INSTALL) -D -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/$(SBINDIR)/$(TARGET)
19