summaryrefslogtreecommitdiff
path: root/util/amdfwtool/Makefile.inc
blob: 2180fac361e1ce0307661b0fd7ecb3668fd46148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# SPDX-License-Identifier: BSD-3-Clause

amdfwtoolobj = amdfwtool.o

AMDFWTOOLCFLAGS=-O2 -Wall -Wextra -Wshadow

$(objutil)/amdfwtool/%.o: $(top)/util/amdfwtool/%.c # $(HEADER)
	$(HOSTCC) $(AMDFWTOOLCFLAGS) $(HOSTCFLAGS) -DCONFIG_ROM_SIZE=$(CONFIG_ROM_SIZE) -c -o $@ $<

$(objutil)/amdfwtool/amdfwtool: $(addprefix $(objutil)/amdfwtool/,$(amdfwtoolobj))
	printf "   AMDFWTOOL\n"
	$(HOSTCC) $(addprefix $(objutil)/amdfwtool/,$(amdfwtoolobj)) -o $@