Advertisement
doragasu

Common variable definitions for building CMSIS/examples

Nov 17th, 2012
816
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.04 KB | None | 0 0
  1. #*****************************************************************************#
  2. # Makefile.inc: Some variable definitions to build CMSIS DSPLib.              #
  3. #-----------------------------------------------------------------------------#
  4. # Jesús Alonso Fernández @doragasu, 2012                                      #
  5. #*****************************************************************************#
  6.  
  7. # PART: The chip used for the build
  8. # TODO: Make some conditional assignments to CFLAGS depending on PART
  9. PART ?= LM4F120H5QR
  10. # Prefix to the cross compiler
  11. PREFIX ?= arm-none-eabi-
  12. # Common stuff
  13. CC = gcc
  14. AR = ar
  15. RM = rm
  16. MKDIR = mkdir
  17. LD = ld
  18. OBJCOPY = objcopy
  19. # Some directories
  20. OBJDIR = $(ROOT)/obj
  21. INCDIR = $(ROOT)/Include
  22. LIB = $(ROOT)/Lib/libdsplib_lm4f.a
  23.  
  24. # Flags for building stuff
  25. CFLAGS =            \
  26.     -mthumb         \
  27.     -mcpu=cortex-m4     \
  28.     -mfpu=fpv4-sp-d16   \
  29.     -mfloat-abi=softfp  \
  30.     -Os         \
  31.     -ffunction-sections \
  32.     -fdata-sections     \
  33.     -std=c99        \
  34.     -Wall           \
  35.     -DPART_${PART}      \
  36.     -DARM_MATH_CM4      \
  37.     -D__FPU_PRESENT     \
  38.     -I$(INCDIR)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement