mirror of https://github.com/FOME-Tech/fome-fw.git
dead code: THUMB really does not apply here
This commit is contained in:
parent
c978e947de
commit
901a180774
|
@ -19,17 +19,11 @@ ifeq ($(USE_LINK_GC),yes)
|
||||||
OPT += -ffunction-sections -fdata-sections -fno-common
|
OPT += -ffunction-sections -fdata-sections -fno-common
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Source files groups and paths
|
ACSRC += $(CSRC)
|
||||||
ifeq ($(USE_THUMB),yes)
|
ACPPSRC += $(CPPSRC)
|
||||||
TCSRC += $(CSRC)
|
|
||||||
TCPPSRC += $(CPPSRC)
|
|
||||||
else
|
|
||||||
ACSRC += $(CSRC)
|
|
||||||
ACPPSRC += $(CPPSRC)
|
|
||||||
endif
|
|
||||||
ASRC = $(ACSRC)$(ACPPSRC)
|
ASRC = $(ACSRC)$(ACPPSRC)
|
||||||
TSRC = $(TCSRC)$(TCPPSRC)
|
SRCPATHS = $(sort $(dir $(ASMXSRC)) $(dir $(ASMSRC)) $(dir $(ASRC)))
|
||||||
SRCPATHS = $(sort $(dir $(ASMXSRC)) $(dir $(ASMSRC)) $(dir $(ASRC)) $(dir $(TSRC)))
|
|
||||||
|
|
||||||
# Various directories
|
# Various directories
|
||||||
OBJDIR = $(BUILDDIR)/obj
|
OBJDIR = $(BUILDDIR)/obj
|
||||||
|
@ -38,11 +32,9 @@ LSTDIR = $(BUILDDIR)/lst
|
||||||
# Object files groups
|
# Object files groups
|
||||||
ACOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ACSRC:.c=.o)))
|
ACOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ACSRC:.c=.o)))
|
||||||
ACPPOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ACPPSRC:.cpp=.o)))
|
ACPPOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ACPPSRC:.cpp=.o)))
|
||||||
TCOBJS = $(addprefix $(OBJDIR)/, $(notdir $(TCSRC:.c=.o)))
|
|
||||||
TCPPOBJS = $(addprefix $(OBJDIR)/, $(notdir $(TCPPSRC:.cpp=.o)))
|
|
||||||
ASMOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ASMSRC:.s=.o)))
|
ASMOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ASMSRC:.s=.o)))
|
||||||
ASMXOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ASMXSRC:.S=.o)))
|
ASMXOBJS = $(addprefix $(OBJDIR)/, $(notdir $(ASMXSRC:.S=.o)))
|
||||||
OBJS = $(ASMXOBJS) $(ASMOBJS) $(ACOBJS) $(TCOBJS) $(ACPPOBJS) $(TCPPOBJS)
|
OBJS = $(ASMXOBJS) $(ASMOBJS) $(ACOBJS) $(ACPPOBJS)
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
IINCDIR = $(patsubst %,-I%,$(INCDIR) $(DINCDIR) $(UINCDIR))
|
IINCDIR = $(patsubst %,-I%,$(INCDIR) $(DINCDIR) $(UINCDIR))
|
||||||
|
@ -112,15 +104,6 @@ else
|
||||||
@$(CPPC) -c $(CPPFLAGS) $(AOPT) -I. $(IINCDIR) $< -o $@
|
@$(CPPC) -c $(CPPFLAGS) $(AOPT) -I. $(IINCDIR) $< -o $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(TCPPOBJS) : $(OBJDIR)/%.o : %.cpp Makefile
|
|
||||||
ifeq ($(USE_VERBOSE_COMPILE),yes)
|
|
||||||
@echo
|
|
||||||
$(CPPC) -c $(CPPFLAGS) $(TOPT) -I. $(IINCDIR) $< -o $@
|
|
||||||
else
|
|
||||||
@echo Compiling $(<F)
|
|
||||||
@$(CPPC) -c $(CPPFLAGS) $(TOPT) -I. $(IINCDIR) $< -o $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(ACOBJS) : $(OBJDIR)/%.o : %.c Makefile
|
$(ACOBJS) : $(OBJDIR)/%.o : %.c Makefile
|
||||||
ifeq ($(USE_VERBOSE_COMPILE),yes)
|
ifeq ($(USE_VERBOSE_COMPILE),yes)
|
||||||
@echo
|
@echo
|
||||||
|
@ -130,15 +113,6 @@ else
|
||||||
@$(CC) -c $(CFLAGS) $(AOPT) -I. $(IINCDIR) $< -o $@
|
@$(CC) -c $(CFLAGS) $(AOPT) -I. $(IINCDIR) $< -o $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(TCOBJS) : $(OBJDIR)/%.o : %.c Makefile
|
|
||||||
ifeq ($(USE_VERBOSE_COMPILE),yes)
|
|
||||||
@echo
|
|
||||||
$(CC) -c $(CFLAGS) $(TOPT) -I. $(IINCDIR) $< -o $@
|
|
||||||
else
|
|
||||||
@echo Compiling $(<F)
|
|
||||||
@$(CC) -c $(CFLAGS) $(TOPT) -I. $(IINCDIR) $< -o $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(ASMOBJS) : $(OBJDIR)/%.o : %.s Makefile
|
$(ASMOBJS) : $(OBJDIR)/%.o : %.s Makefile
|
||||||
ifeq ($(USE_VERBOSE_COMPILE),yes)
|
ifeq ($(USE_VERBOSE_COMPILE),yes)
|
||||||
@echo
|
@echo
|
||||||
|
|
|
@ -83,11 +83,6 @@ ifeq ($(USE_LINK_GC),)
|
||||||
USE_LINK_GC = yes
|
USE_LINK_GC = yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If enabled, this option allows to compile the application in THUMB mode.
|
|
||||||
ifeq ($(USE_THUMB),)
|
|
||||||
USE_THUMB = no
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Enable this if you want to see the full log while compiling.
|
# Enable this if you want to see the full log while compiling.
|
||||||
ifeq ($(USE_VERBOSE_COMPILE),)
|
ifeq ($(USE_VERBOSE_COMPILE),)
|
||||||
USE_VERBOSE_COMPILE = no
|
USE_VERBOSE_COMPILE = no
|
||||||
|
@ -99,12 +94,6 @@ ACSRC =
|
||||||
# C++ sources to be compiled in ARM mode regardless of the global setting.
|
# C++ sources to be compiled in ARM mode regardless of the global setting.
|
||||||
ACPPSRC =
|
ACPPSRC =
|
||||||
|
|
||||||
# C sources to be compiled in THUMB mode regardless of the global setting.
|
|
||||||
TCSRC =
|
|
||||||
|
|
||||||
# C sources to be compiled in THUMB mode regardless of the global setting.
|
|
||||||
TCPPSRC =
|
|
||||||
|
|
||||||
# List ASM source files here
|
# List ASM source files here
|
||||||
ASMSRC =
|
ASMSRC =
|
||||||
|
|
||||||
|
@ -146,9 +135,6 @@ BIN = $(CP) -O binary
|
||||||
# ARM-specific options here
|
# ARM-specific options here
|
||||||
AOPT =
|
AOPT =
|
||||||
|
|
||||||
# THUMB-specific options here
|
|
||||||
TOPT = -mthumb -DTHUMB
|
|
||||||
|
|
||||||
# Define C warning options here
|
# Define C warning options here
|
||||||
CWARN = -Wall -Wextra -Wstrict-prototypes -pedantic -Wmissing-prototypes -Wold-style-definition
|
CWARN = -Wall -Wextra -Wstrict-prototypes -pedantic -Wmissing-prototypes -Wold-style-definition
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue