2014-10-15 15:05:19 +00:00
|
|
|
##
|
|
|
|
## This file is part of the libopencm3 project.
|
|
|
|
##
|
|
|
|
## Copyright (C) 2013 Frantisek Burian <BuFran@seznam.cz>
|
|
|
|
##
|
|
|
|
## 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
|
|
|
|
## the Free Software Foundation, either version 3 of the License, or
|
|
|
|
## (at your option) any later version.
|
|
|
|
##
|
|
|
|
## This library is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU Lesser General Public License for more details.
|
|
|
|
##
|
|
|
|
## 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/>.
|
|
|
|
##
|
|
|
|
|
|
|
|
LIBNAME = libopencm3_stm32l0
|
|
|
|
SRCLIBDIR ?= ../..
|
|
|
|
|
2019-06-07 21:25:46 +00:00
|
|
|
CC = $(PREFIX)gcc
|
|
|
|
AR = $(PREFIX)ar
|
2015-10-06 06:04:14 +00:00
|
|
|
TGT_CFLAGS = -Os \
|
2014-10-15 15:05:19 +00:00
|
|
|
-Wall -Wextra -Wimplicit-function-declaration \
|
|
|
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
|
|
|
-Wundef -Wshadow \
|
|
|
|
-I../../../include -fno-common \
|
2014-11-18 21:47:36 +00:00
|
|
|
-mcpu=cortex-m0plus $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
2014-10-15 15:05:19 +00:00
|
|
|
-ffunction-sections -fdata-sections -MD -DSTM32L0
|
2015-10-06 06:04:14 +00:00
|
|
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
2017-04-24 21:42:01 +00:00
|
|
|
TGT_CFLAGS += $(STANDARD_FLAGS)
|
2014-10-15 15:05:19 +00:00
|
|
|
|
|
|
|
ARFLAGS = rcs
|
|
|
|
|
2019-05-21 22:32:30 +00:00
|
|
|
OBJS = rcc.o desig.o
|
2017-03-12 20:25:33 +00:00
|
|
|
OBJS += pwr_common_v1.o pwr_common_v2.o
|
2015-11-18 22:51:50 +00:00
|
|
|
OBJS += timer_common_all.o
|
2018-04-04 14:27:59 +00:00
|
|
|
OBJS += spi_common_all.o spi_common_v1.o spi_common_v1_frf.o
|
2014-10-15 15:05:19 +00:00
|
|
|
|
2014-11-17 22:41:57 +00:00
|
|
|
OBJS += gpio_common_all.o gpio_common_f0234.o rcc_common_all.o
|
2015-10-16 22:42:00 +00:00
|
|
|
OBJS += adc_common_v2.o
|
2015-10-03 18:14:50 +00:00
|
|
|
OBJS += crs_common_all.o
|
2018-04-29 15:25:20 +00:00
|
|
|
OBJS += dma_common_l1f013.o
|
2017-02-16 22:14:05 +00:00
|
|
|
OBJS += exti_common_all.o
|
2019-05-21 23:41:21 +00:00
|
|
|
OBJS += flash_common_all.o flash_common_l01.o
|
2016-12-01 19:59:19 +00:00
|
|
|
OBJS += i2c_common_v2.o
|
2017-01-12 22:56:46 +00:00
|
|
|
OBJS += rng_common_v1.o
|
2017-10-25 23:26:08 +00:00
|
|
|
OBJS += usart_common_all.o usart_common_v2.o
|
2018-03-27 16:30:36 +00:00
|
|
|
OBJS += iwdg_common_all.o
|
2018-06-20 22:21:22 +00:00
|
|
|
OBJS += rtc_common_l1f024.o
|
2014-10-15 15:05:19 +00:00
|
|
|
|
2018-06-07 12:09:11 +00:00
|
|
|
OBJS += usb.o usb_control.o usb_standard.o usb_msc.o
|
2015-10-03 18:01:37 +00:00
|
|
|
OBJS += st_usbfs_core.o st_usbfs_v2.o
|
|
|
|
|
2014-10-15 15:05:19 +00:00
|
|
|
VPATH += ../../usb:../:../../cm3:../common
|
|
|
|
|
|
|
|
include ../../Makefile.include
|
|
|
|
|