summaryrefslogtreecommitdiff
path: root/util/amdfwtool/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/amdfwtool/Makefile')
-rw-r--r--util/amdfwtool/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/util/amdfwtool/Makefile b/util/amdfwtool/Makefile
index 2fd128d895..7b7793535a 100644
--- a/util/amdfwtool/Makefile
+++ b/util/amdfwtool/Makefile
@@ -5,7 +5,8 @@ HOSTCC ?= cc
SRC = amdfwtool.c data_parse.c
OBJ = $(SRC:%.c=%.o)
TARGET = amdfwtool
-CFLAGS=-O2 -Wall -Wextra -Wshadow -Werror
+WERROR=-Werror
+CFLAGS=-O2 -Wall -Wextra -Wshadow ${WERROR}
all: $(TARGET)
@@ -19,3 +20,11 @@ clean:
@rm -f $(TARGET) $(OBJ)
distclean: clean
+
+help:
+ @echo "${TARGET}: Create AMD Firmware combination"
+ @echo "Targets: all, clean, distclean, help"
+ @echo "To disable warnings as errors, run make as:"
+ @echo " make all WERROR=\"\""
+
+.PHONY: all clean distclean help