2011-10-31 04:24:47 +00:00
|
|
|
##
|
|
|
|
## This file is part of the libopencm3 project.
|
|
|
|
##
|
|
|
|
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
|
2013-06-10 16:42:21 +00:00
|
|
|
## Copyright (C) 2013 Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
2011-10-31 04:24:47 +00:00
|
|
|
##
|
2012-03-02 23:29:23 +00:00
|
|
|
## This library is free software: you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU Lesser General Public License as published by
|
2011-10-31 04:24:47 +00:00
|
|
|
## the Free Software Foundation, either version 3 of the License, or
|
|
|
|
## (at your option) any later version.
|
|
|
|
##
|
2012-03-02 23:29:23 +00:00
|
|
|
## This library is distributed in the hope that it will be useful,
|
2011-10-31 04:24:47 +00:00
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2012-03-02 23:29:23 +00:00
|
|
|
## GNU Lesser General Public License for more details.
|
2011-10-31 04:24:47 +00:00
|
|
|
##
|
2012-03-02 23:29:23 +00:00
|
|
|
## You should have received a copy of the GNU Lesser General Public License
|
|
|
|
## along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2011-10-31 04:24:47 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
LIBNAME = libopencm3_stm32f4
|
2014-02-06 00:34:38 +00:00
|
|
|
SRCLIBDIR ?= ../..
|
2011-10-31 04:24:47 +00:00
|
|
|
|
2013-06-10 16:42:21 +00:00
|
|
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
2013-03-09 04:09:01 +00:00
|
|
|
PREFIX ?= arm-none-eabi
|
2013-06-10 16:42:21 +00:00
|
|
|
|
2011-10-31 04:24:47 +00:00
|
|
|
CC = $(PREFIX)-gcc
|
|
|
|
AR = $(PREFIX)-ar
|
2015-10-06 06:04:14 +00:00
|
|
|
TGT_CFLAGS = -Os \
|
2013-02-27 00:42:20 +00:00
|
|
|
-Wall -Wextra -Wimplicit-function-declaration \
|
|
|
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
|
|
|
-Wundef -Wshadow \
|
|
|
|
-I../../../include -fno-common \
|
2013-06-10 16:42:21 +00:00
|
|
|
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) \
|
2012-08-22 04:05:09 +00:00
|
|
|
-Wstrict-prototypes \
|
2011-10-31 04:24:47 +00:00
|
|
|
-ffunction-sections -fdata-sections -MD -DSTM32F4
|
2015-10-06 06:04:14 +00:00
|
|
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
2017-04-24 21:42:01 +00:00
|
|
|
TGT_CFLAGS += $(STANDARD_FLAGS)
|
2011-10-31 04:24:47 +00:00
|
|
|
# ARFLAGS = rcsv
|
|
|
|
ARFLAGS = rcs
|
2013-03-09 04:09:01 +00:00
|
|
|
|
2019-05-10 22:40:55 +00:00
|
|
|
OBJS = adc_common_v1.o adc_common_v1_multi.o adc_common_f47.o
|
2019-05-09 12:00:40 +00:00
|
|
|
OBJS += can.o
|
|
|
|
OBJS += crc_common_all.o
|
|
|
|
OBJS += crypto_common_f24.o crypto.o
|
|
|
|
OBJS += dac_common_all.o
|
|
|
|
OBJS += desig.o
|
|
|
|
OBJS += dma_common_f24.o
|
|
|
|
OBJS += exti_common_all.o
|
2018-08-14 11:19:58 +00:00
|
|
|
OBJS += flash.o flash_common_all.o flash_common_f.o flash_common_f24.o
|
2018-07-17 15:34:53 +00:00
|
|
|
OBJS += flash_common_idcache.o
|
2019-03-31 22:52:30 +00:00
|
|
|
OBJS += fmc_common_f47.o
|
2019-05-09 12:00:40 +00:00
|
|
|
OBJS += gpio_common_all.o gpio_common_f0234.o gpio.o
|
|
|
|
OBJS += hash_common_f24.o
|
|
|
|
OBJS += i2c_common_v1.o
|
|
|
|
OBJS += iwdg_common_all.o
|
|
|
|
OBJS += ltdc.o
|
|
|
|
OBJS += pwr_common_v1.o pwr.o
|
|
|
|
OBJS += rcc_common_all.o rcc.o
|
2017-01-12 22:23:31 +00:00
|
|
|
OBJS += rng_common_v1.o
|
2019-05-09 12:00:40 +00:00
|
|
|
OBJS += rtc_common_l1f024.o rtc.o
|
2018-04-04 14:27:59 +00:00
|
|
|
OBJS += spi_common_all.o spi_common_v1.o spi_common_v1_frf.o
|
2019-05-09 12:00:40 +00:00
|
|
|
OBJS += timer_common_all.o timer_common_f0234.o timer_common_f24.o
|
|
|
|
OBJS += usart_common_all.o usart_common_f124.o
|
|
|
|
|
2018-02-12 21:33:03 +00:00
|
|
|
OBJS += usb.o usb_standard.o usb_control.o usb_dwc_common.o \
|
2013-06-26 23:03:50 +00:00
|
|
|
usb_f107.o usb_f207.o usb_msc.o
|
2011-10-31 04:24:47 +00:00
|
|
|
|
2019-05-09 12:00:40 +00:00
|
|
|
OBJS += mac.o phy.o mac_stm32fxx7.o phy_ksz80x1.o
|
2014-12-05 18:50:21 +00:00
|
|
|
|
2012-11-03 05:26:35 +00:00
|
|
|
VPATH += ../../usb:../:../../cm3:../common
|
2013-08-31 17:02:36 +00:00
|
|
|
VPATH += ../../ethernet
|
2011-10-31 04:24:47 +00:00
|
|
|
|
2012-08-13 21:37:07 +00:00
|
|
|
include ../../Makefile.include
|