Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #*****************************************************************************#
- # Makefile.inc: Some variable definitions to build CMSIS DSPLib. #
- #-----------------------------------------------------------------------------#
- # Jesús Alonso Fernández @doragasu, 2012 #
- #*****************************************************************************#
- # PART: The chip used for the build
- # TODO: Make some conditional assignments to CFLAGS depending on PART
- PART ?= LM4F120H5QR
- # Prefix to the cross compiler
- PREFIX ?= arm-none-eabi-
- # Common stuff
- CC = gcc
- AR = ar
- RM = rm
- MKDIR = mkdir
- LD = ld
- OBJCOPY = objcopy
- # Some directories
- OBJDIR = $(ROOT)/obj
- INCDIR = $(ROOT)/Include
- LIB = $(ROOT)/Lib/libdsplib_lm4f.a
- # Flags for building stuff
- CFLAGS = \
- -mthumb \
- -mcpu=cortex-m4 \
- -mfpu=fpv4-sp-d16 \
- -mfloat-abi=softfp \
- -Os \
- -ffunction-sections \
- -fdata-sections \
- -std=c99 \
- -Wall \
- -DPART_${PART} \
- -DARM_MATH_CM4 \
- -D__FPU_PRESENT \
- -I$(INCDIR)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement