[make] define and undefine some make variables

Based on building with --warn-undefined-variables, find a few places in
the build system where undefined variables were used incorrectly, or
never set due to unused code.
This commit is contained in:
Travis Geiselbrecht
2022-07-22 23:45:42 -07:00
parent 8372f46055
commit cd96c43006
4 changed files with 10 additions and 7 deletions

View File

@@ -88,12 +88,14 @@ ARCH_CFLAGS :=
ARCH_CPPFLAGS :=
ARCH_ASMFLAGS :=
ARCH_LDFLAGS :=
ARCH_OBJDUMP_FLAGS :=
THUMBCFLAGS := # optional compile switches set by arm architecture when compiling in thumb mode
# top level rule
all:: $(OUTBIN) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).sym.sorted $(OUTELF).size $(OUTELF).dump $(BUILDDIR)/srcfiles.txt $(BUILDDIR)/include_paths.txt
# master module object list
ALLOBJS_MODULE :=
ALLMODULE_OBJS :=
# master object list (for dep generation)
ALLOBJS :=
@@ -201,7 +203,6 @@ GLOBAL_DEFINES += $(EXTERNAL_DEFINES)
$(info EXTERNAL_DEFINES = $(EXTERNAL_DEFINES))
endif
# prefix all of the paths in GLOBAL_INCLUDES with -I
GLOBAL_INCLUDES := $(addprefix -I,$(GLOBAL_INCLUDES))