mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-12 19:10:32 +03:00
Makefile fix by g1pete.
now not trying to build stmloader by arm-eabi-gcc. git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@139 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
703234b608
commit
14f87034c7
1 changed files with 13 additions and 17 deletions
28
Makefile
28
Makefile
|
@ -35,22 +35,18 @@ ASSEMBLER_FLAGS=-c $(OPT) -mcpu=cortex-m3 -mthumb -x assembler-with-cpp -Isrc -I
|
|||
COMPILER_FLAGS=-c -mcpu=cortex-m3 $(OPT) -Wall -ffunction-sections -fdata-sections -mthumb -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -Isrc -Ilib/STM32F10x_StdPeriph_Driver/inc -Ilib/CMSIS/CM3/CoreSupport -Ilib/CMSIS/CM3/DeviceSupport/ST/STM32F10x
|
||||
|
||||
# Define sources and objects
|
||||
SRC := $(wildcard */*/*/*/*/*/*/*.c) \
|
||||
$(wildcard */*/*/*/*/*/*.c) \
|
||||
$(wildcard */*/*/*/*/*.c) \
|
||||
$(wildcard */*/*/*/*.c) \
|
||||
$(wildcard */*/*/*.c) \
|
||||
$(wildcard */*/*.c) \
|
||||
$(wildcard */*.c)
|
||||
SRCSASM := $(wildcard */*/startup_stm32f10x_md_gcc.s) \
|
||||
#SRCSASM := $(wildcard */*/*/*/*/*/*/*/*.s) \
|
||||
# $(wildcard */*/*/*/*/*/*/*.s) \
|
||||
# $(wildcard */*/*/*/*/*/*.s) \
|
||||
# $(wildcard */*/*/*/*/*.s) \
|
||||
# $(wildcard */*/*/*/*.s) \
|
||||
# $(wildcard */*/*/*.s) \
|
||||
# $(wildcard */*/*.s) \
|
||||
# $(wildcard */*.s)
|
||||
#
|
||||
#condition more to eliminate support folder files to be included
|
||||
#fixes build error reported by nicodh in post#1697
|
||||
SRC := $(wildcard lib/*/*/*/*/*/*.c) \
|
||||
$(wildcard lib/*/*/*/*/*.c) \
|
||||
$(wildcard lib/*/*/*/*.c) \
|
||||
$(wildcard lib/*/*/*.c) \
|
||||
$(wildcard lib/*/*.c) \
|
||||
$(wildcard src/*.c)
|
||||
|
||||
SRCSASM := $(wildcard src/*/startup_stm32f10x_md_gcc.S)
|
||||
|
||||
OBJS := $(SRC:%.c=$(OBJECT_DIR)/%.o) $(SRCSASM:%.s=$(OBJECT_DIR)/%.o)
|
||||
OBJS := $(OBJS:%.S=$(OBJECT_DIR)/%.o)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue