3rdparty/blobs: Update submodule to upstream main
[coreboot.git] / util / amdfwtool / Makefile
blobb45178d53545fdbbb88d510c3d5c0cade8294b04
1 # SPDX-License-Identifier: BSD-3-Clause
3 top ?= $(abspath ../..)
4 ifneq ($(CC),)
5 HOSTCC ?= $(CC)
6 else
7 HOSTCC ?= cc
8 endif
10 TARGETS = amdfwread amdfwtool
12 all: $(TARGETS)
14 BUILD_ALL_TOOLS = 1
15 include ./Makefile.mk
17 amdfwread: $(amdfwreadobj)
18 $(HOSTCC) $(amdfwreadobj) $(LDFLAGS) -o $@
20 amdfwtool: $(amdfwtoolobj)
21 $(HOSTCC) $(amdfwtoolobj) $(LDFLAGS) -o $@
23 %.o: %.c $(amdfwheader)
24 $(HOSTCC) $(AMDFWTOOLCFLAGS) -c -o $@ $<
26 clean:
27 @rm -f $(TARGETS) $(amdfwreadobj) $(amdfwtoolobj)
29 distclean: clean
31 help:
32 @echo "${TARGETS}: Tools to create and read from AMD firmware combinations"
33 @echo "Targets: all, clean, distclean, help"
34 @echo "To disable warnings as errors, run make as:"
35 @echo " make all WERROR=\"\""
37 .PHONY: all clean distclean help