2010-12-30 01:24:40 +00:00
|
|
|
##
|
2010-12-30 02:45:00 +00:00
|
|
|
## This file is part of the libopencm3 project.
|
2010-12-30 01:24:40 +00:00
|
|
|
##
|
|
|
|
## 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
|
2010-12-30 01:24:40 +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,
|
2010-12-30 01:24:40 +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.
|
2010-12-30 01:24:40 +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/>.
|
2010-12-30 01:24:40 +00:00
|
|
|
##
|
|
|
|
|
2011-09-15 07:06:35 +00:00
|
|
|
LIBNAME = libopencm3_stm32f1
|
2014-02-06 00:34:38 +00:00
|
|
|
SRCLIBDIR ?= ../..
|
2010-12-30 01:24:40 +00:00
|
|
|
|
2011-10-04 20:06:56 +00:00
|
|
|
PREFIX ?= arm-none-eabi
|
2013-06-10 16:42:21 +00:00
|
|
|
|
2010-12-30 01:24:40 +00:00
|
|
|
CC = $(PREFIX)-gcc
|
|
|
|
AR = $(PREFIX)-ar
|
2013-02-27 00:42:20 +00:00
|
|
|
CFLAGS = -Os -g \
|
|
|
|
-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 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
2011-09-15 08:18:26 +00:00
|
|
|
-ffunction-sections -fdata-sections -MD -DSTM32F1
|
2010-12-30 01:24:40 +00:00
|
|
|
# ARFLAGS = rcsv
|
|
|
|
ARFLAGS = rcs
|
2013-03-09 04:09:01 +00:00
|
|
|
|
2014-01-04 10:58:44 +00:00
|
|
|
OBJS = adc.o adc_common_v1.o can.o desig.o ethernet.o flash.o gpio.o \
|
2013-06-04 16:44:19 +00:00
|
|
|
rcc.o rtc.o timer.o
|
2013-03-09 04:09:01 +00:00
|
|
|
|
2013-07-09 22:40:11 +00:00
|
|
|
OBJS += crc_common_all.o dac_common_all.o dma_common_l1f013.o \
|
2013-03-09 04:09:01 +00:00
|
|
|
gpio_common_all.o i2c_common_all.o iwdg_common_all.o \
|
2013-09-14 17:30:34 +00:00
|
|
|
pwr_common_all.o spi_common_all.o spi_common_l1f124.o \
|
2013-07-10 16:15:59 +00:00
|
|
|
timer_common_all.o usart_common_all.o usart_common_f124.o \
|
2014-01-24 05:46:53 +00:00
|
|
|
rcc_common_all.o exti_common_all.o \
|
|
|
|
flash_common_f01.o
|
2013-03-09 04:09:01 +00:00
|
|
|
|
|
|
|
OBJS += usb.o usb_control.o usb_standard.o usb_f103.o usb_f107.o \
|
|
|
|
usb_fx07_common.o
|
2010-12-30 01:24:40 +00:00
|
|
|
|
2012-11-03 05:26:35 +00:00
|
|
|
VPATH += ../../usb:../:../../cm3:../common
|
2010-12-30 01:24:40 +00:00
|
|
|
|
2012-08-13 21:37:07 +00:00
|
|
|
include ../../Makefile.include
|
2011-03-14 03:45:17 +00:00
|
|
|
|