clean makefiles

This commit is contained in:
Nicolas Reinecke
2016-01-10 20:38:31 +01:00
parent 20ac468a2c
commit e55f92bc7a
3 changed files with 47 additions and 46 deletions
+17 -17
View File
@@ -1,6 +1,6 @@
# Optimization level, can be [0, 1, 2, 3, s].
# Optimization level, can be [0, 1, 2, 3, s].
# 0 = turn off optimization. s = optimize for size.
#
#
OPT = -O1 -flto
# OPT = -O1 # for debugging
@@ -53,20 +53,22 @@ SOURCES += src/ub_lib/usb_cdc_lolevel/usbd_usr.c
CPPFLAGS += -DUSE_STDPERIPH_DRIVER
#CPPFLAGS += -DUSE_FULL_ASSERT
INCDIRS += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/inc
PERIPH_DRV_DIR = lib/STM32F4xx_StdPeriph_Driver-V1.6.0
INCDIRS += $(PERIPH_DRV_DIR)/inc
INCDIRS += lib/CMSIS/Include
INCDIRS += lib/CMSIS/Device/ST/STM32F4xx/Include
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_adc.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_crc.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_dma.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_flash.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_gpio.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_pwr.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_rcc.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_tim.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_usart.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/misc.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_adc.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_crc.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_dma.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_flash.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_gpio.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_pwr.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_rcc.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_tim.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_usart.c
SOURCES += $(PERIPH_DRV_DIR)/src/misc.c
SOURCES += lib/CMSIS/Device/ST/STM32F4xx/Source/startup_stm32f40_41xxx.s
@@ -197,19 +199,17 @@ hv_firmware.o: hv
# Display compiler version information
#
gccversion:
gccversion:
@$(CC) --version
# Show the final program size
#
showsize: build
@echo
@$(SIZE) $(TARGET).elf 2>/dev/null
# Flash the device
# Flash the device
#
btburn: build showsize
#change this to your device
printf "bootloader\r" > `ls /dev/cu.usbmodem*` || true
+14 -13
View File
@@ -1,6 +1,6 @@
# Optimization level, can be [0, 1, 2, 3, s].
# Optimization level, can be [0, 1, 2, 3, s].
# 0 = turn off optimization. s = optimize for size.
#
#
OPT = -O1 -flto
# OPT = -O1 # for debugging
@@ -26,17 +26,19 @@ SOURCES += bootloader/src/system_stm32f4xx.c
CPPFLAGS += -DUSE_STDPERIPH_DRIVER
#CPPFLAGS += -DUSE_FULL_ASSERT
INCDIRS += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/inc
PERIPH_DRV_DIR = lib/STM32F4xx_StdPeriph_Driver-V1.6.0
INCDIRS += $(PERIPH_DRV_DIR)/inc
INCDIRS += lib/CMSIS/Include
INCDIRS += lib/CMSIS/Device/ST/STM32F4xx/Include
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_flash.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_crc.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_gpio.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_pwr.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_rcc.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/stm32f4xx_usart.c
SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/misc.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_flash.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_crc.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_gpio.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_pwr.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_rcc.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f4xx_usart.c
SOURCES += $(PERIPH_DRV_DIR)/src/misc.c
SOURCES += lib/CMSIS/Device/ST/STM32F4xx/Source/startup_stm32f40_41xxx.s
@@ -145,7 +147,7 @@ sym: $(TARGET).sym
# Display compiler version information
#
gccversion:
gccversion:
@$(CC) --version
# Show the final program size
@@ -154,9 +156,8 @@ showsize: build
@echo
@$(SIZE) $(TARGET).elf 2>/dev/null
# Flash the device
# Flash the device
#
btflash: build showsize
#change this to your device
printf "bootloader\r" > `ls /dev/cu.usbmodem*` || true
+16 -16
View File
@@ -1,6 +1,6 @@
# Optimization level, can be [0, 1, 2, 3, s].
# Optimization level, can be [0, 1, 2, 3, s].
# 0 = turn off optimization. s = optimize for size.
#
#
OPT = -O1 -flto
# OPT = -O1 # for debugging
@@ -23,18 +23,20 @@ SOURCES += shared/common.c
CPPFLAGS += -DUSE_STDPERIPH_DRIVER
#CPPFLAGS += -DUSE_FULL_ASSERT
PERIPH_DRV_DIR = lib/STM32F10x_StdPeriph_Driver-V3.6.1
INCDIRS += $(PERIPH_DRV_DIR)/inc
INCDIRS += lib/CMSIS/Include
INCDIRS += lib/STM32F10x_StdPeriph_Driver-V3.6.1/inc
INCDIRS += lib/CMSIS/Device/ST/STM32F10x/Include
SOURCES += lib/STM32F10x_StdPeriph_Driver-V3.6.1/src/misc.c
SOURCES += lib/STM32F10x_StdPeriph_Driver-V3.6.1/src/stm32f10x_rcc.c
SOURCES += lib/STM32F10x_StdPeriph_Driver-V3.6.1/src/stm32f10x_adc.c
SOURCES += lib/STM32F10x_StdPeriph_Driver-V3.6.1/src/stm32f10x_dma.c
SOURCES += lib/STM32F10x_StdPeriph_Driver-V3.6.1/src/stm32f10x_gpio.c
SOURCES += lib/STM32F10x_StdPeriph_Driver-V3.6.1/src/stm32f10x_tim.c
SOURCES += lib/STM32F10x_StdPeriph_Driver-V3.6.1/src/stm32f10x_flash.c
SOURCES += lib/STM32F10x_StdPeriph_Driver-V3.6.1/src/stm32f10x_usart.c
SOURCES += $(PERIPH_DRV_DIR)/src/misc.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f10x_rcc.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f10x_adc.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f10x_dma.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f10x_gpio.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f10x_tim.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f10x_flash.c
SOURCES += $(PERIPH_DRV_DIR)/src/stm32f10x_usart.c
SOURCES += lib/CMSIS/Device/ST/STM32F10x/Source/system_stm32f10x.c
SOURCES += lib/CMSIS/Device/ST/STM32F10x/Source/startup_stm32f10x_ld.s
@@ -115,7 +117,7 @@ OBJDUMP = $(TOOLCHAIN)objdump
SIZE = $(TOOLCHAIN)size
NM = $(TOOLCHAIN)nm
MKDIR = mkdir
#POSTLD = Tools/add_version_info.py # -q
#POSTLD = tools/add_version_info.py # -q
POSTLD = cp
# Compiler flags to generate dependency files
#
@@ -145,19 +147,17 @@ sym: $(TARGET).sym
# Display compiler version information
#
gccversion:
gccversion:
@$(CC) --version
# Show the final program size
#
showsize: build
@echo
@$(SIZE) $(TARGET).elf 2>/dev/null
# Flash the device
# Flash the device
#
flash: build
st-flash --reset write $(TARGET).bin 0x8000000