1 # SPDX-License-Identifier: BSD-3-Clause
3 top ?
= $(abspath ..
/..
)
10 TARGETS
= amdfwread amdfwtool
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
$@
$<
27 @
rm -f
$(TARGETS
) $(amdfwreadobj
) $(amdfwtoolobj
)
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