You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.4 KiB
45 lines
1.4 KiB
12 years ago
|
##
|
||
|
## This file is part of the libopencm3 project.
|
||
|
##
|
||
|
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
|
||
|
## Copyright (C) 2012 chrysn <chrysn@fsfe.org>
|
||
|
##
|
||
|
## 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_efm32g
|
||
11 years ago
|
SRCLIBDIR ?= ../..
|
||
12 years ago
|
FAMILY = EFM32G
|
||
|
|
||
|
PREFIX ?= arm-none-eabi
|
||
|
#PREFIX ?= arm-elf
|
||
|
CC = $(PREFIX)-gcc
|
||
|
AR = $(PREFIX)-ar
|
||
9 years ago
|
TGT_CFLAGS = -Os \
|
||
12 years ago
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||
|
-Wundef -Wshadow \
|
||
|
-I../../../include -fno-common \
|
||
12 years ago
|
-mcpu=cortex-m3 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||
12 years ago
|
-ffunction-sections -fdata-sections -MD -D$(FAMILY)
|
||
9 years ago
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||
12 years ago
|
# ARFLAGS = rcsv
|
||
|
ARFLAGS = rcs
|
||
12 years ago
|
OBJS =
|
||
12 years ago
|
|
||
|
VPATH += ../:../../cm3
|
||
|
|
||
|
include ../../Makefile.include
|
||
|
|