2011-09-15 08:18:26 +00:00
|
|
|
##
|
|
|
|
## This file is part of the libopencm3 project.
|
|
|
|
##
|
|
|
|
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
|
|
|
|
##
|
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-09-15 08:18:26 +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-09-15 08:18:26 +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-09-15 08:18:26 +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-09-15 08:18:26 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
LIBNAME = libopencm3_stm32f2
|
2014-02-06 00:34:38 +00:00
|
|
|
SRCLIBDIR ?= ../..
|
2011-09-15 08:18:26 +00:00
|
|
|
|
2013-06-10 16:42:21 +00:00
|
|
|
PREFIX ?= arm-none-eabi
|
|
|
|
|
2011-09-15 08:18:26 +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-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
2011-09-15 08:18:26 +00:00
|
|
|
-ffunction-sections -fdata-sections -MD -DSTM32F2
|
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-09-15 08:18:26 +00:00
|
|
|
# ARFLAGS = rcsv
|
|
|
|
ARFLAGS = rcs
|
2013-03-09 04:09:01 +00:00
|
|
|
|
2015-01-16 14:50:04 +00:00
|
|
|
OBJS = gpio.o rcc.o desig.o
|
2013-03-09 04:09:01 +00:00
|
|
|
|
|
|
|
OBJS += crc_common_all.o dac_common_all.o dma_common_f24.o \
|
2016-12-01 19:52:09 +00:00
|
|
|
gpio_common_all.o gpio_common_f0234.o i2c_common_v1.o \
|
2013-07-10 12:06:53 +00:00
|
|
|
iwdg_common_all.o rtc_common_l1f024.o spi_common_all.o \
|
2014-11-14 23:05:01 +00:00
|
|
|
spi_common_l1f124.o timer_common_all.o timer_common_f0234.o \
|
2013-07-05 02:03:43 +00:00
|
|
|
timer_common_f24.o usart_common_all.o usart_common_f124.o \
|
|
|
|
flash_common_f234.o flash_common_f24.o hash_common_f24.o \
|
2013-07-02 18:04:51 +00:00
|
|
|
crypto_common_f24.o exti_common_all.o rcc_common_all.o
|
2017-01-12 22:23:31 +00:00
|
|
|
OBJS += rng_common_v1.o
|
2011-09-15 08:18:26 +00:00
|
|
|
|
2013-06-26 17:56:00 +00:00
|
|
|
OBJS += usb.o usb_standard.o usb_control.o usb_fx07_common.o \
|
2013-06-26 23:03:50 +00:00
|
|
|
usb_f107.o usb_f207.o usb_msc.o
|
2013-06-26 17:56:00 +00:00
|
|
|
|
2012-11-03 05:26:35 +00:00
|
|
|
VPATH += ../../usb:../:../../cm3:../common
|
2011-09-15 08:18:26 +00:00
|
|
|
|
2012-08-13 21:37:07 +00:00
|
|
|
include ../../Makefile.include
|