summaryrefslogtreecommitdiff
path: root/util/ifdtool/Makefile
blob: 72a4dabe5c139e553bf423f2bd9e0b8ca2428668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ifdtool - dump Intel Firmware Descriptor information
#
# SPDX-License-Identifier: GPL-2.0-only

CC      ?= gcc
INSTALL ?= /usr/bin/env install
PREFIX  ?= /usr/local

HOSTCC ?= $(CC)
HOSTCFLAGS ?= $(CFLAGS)
top := ../..
objutil := ..
include Makefile.mk

PROGRAM=$(objutil)/ifdtool/ifdtool

all: $(PROGRAM)

clean:
	rm -f $(PROGRAM) *.o *~ .dependencies
distclean: clean

install: $(PROGRAM)
	$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
	$(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin

.PHONY: all clean distclean install