Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 1 | # ifdtool - dump Intel Firmware Descriptor information |
2 | # | ||||
Patrick Georgi | 7333a11 | 2020-05-08 20:48:04 +0200 | [diff] [blame] | 3 | # SPDX-License-Identifier: GPL-2.0-only |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 4 | |
Patrick Georgi | 3909908 | 2020-06-02 19:50:47 +0200 | [diff] [blame] | 5 | CC ?= gcc |
Yegor Timoshenko | c2e4941 | 2018-10-07 01:58:27 +0000 | [diff] [blame] | 6 | INSTALL = /usr/bin/env install |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 7 | PREFIX = /usr/local |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 8 | |
Patrick Georgi | 8422740 | 2021-11-25 12:25:47 +0100 | [diff] [blame] | 9 | HOSTCC ?= $(CC) |
10 | HOSTCFLAGS ?= $(CFLAGS) | ||||
11 | top := ../.. | ||||
12 | objutil := .. | ||||
13 | include Makefile.inc | ||||
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 14 | |
Patrick Georgi | 8422740 | 2021-11-25 12:25:47 +0100 | [diff] [blame] | 15 | PROGRAM=$(objutil)/ifdtool/ifdtool |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 16 | |
Patrick Georgi | 8422740 | 2021-11-25 12:25:47 +0100 | [diff] [blame] | 17 | all: $(PROGRAM) |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 18 | |
19 | clean: | ||||
Werner Zeh | d5f91e4 | 2018-05-28 08:41:39 +0200 | [diff] [blame] | 20 | rm -f $(PROGRAM) *.o *~ .dependencies |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 21 | distclean: clean |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 22 | |
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 23 | install: $(PROGRAM) |
24 | mkdir -p $(DESTDIR)$(PREFIX)/bin | ||||
25 | $(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin | ||||
Stefan Reinauer | 1c795ad1 | 2011-10-14 12:49:41 -0700 | [diff] [blame] | 26 | |
Patrick Georgi | 8422740 | 2021-11-25 12:25:47 +0100 | [diff] [blame] | 27 | .PHONY: all clean distclean install |