xref: /openbmc/linux/tools/wmi/Makefile (revision e4624435)
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