Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

53 lignes
1.6 KiB

  1. ##
  2. ## This file is part of the libopencm3 project.
  3. ##
  4. ## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
  5. ## Copyright (C) 2013 Alexandru Gagniuc <mr.nuke.me@gmail.com>
  6. ##
  7. ## This library is free software: you can redistribute it and/or modify
  8. ## it under the terms of the GNU Lesser General Public License as published by
  9. ## the Free Software Foundation, either version 3 of the License, or
  10. ## (at your option) any later version.
  11. ##
  12. ## This library is distributed in the hope that it will be useful,
  13. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ## GNU Lesser General Public License for more details.
  16. ##
  17. ## You should have received a copy of the GNU Lesser General Public License
  18. ## along with this library. If not, see <http://www.gnu.org/licenses/>.
  19. ##
  20. LIBNAME = libopencm3_lm4f
  21. SRCLIBDIR ?= ..
  22. FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
  23. CC = $(PREFIX)gcc
  24. AR = $(PREFIX)ar
  25. TGT_CFLAGS = -Os \
  26. -Wall -Wextra -Wimplicit-function-declaration \
  27. -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
  28. -Wundef -Wshadow \
  29. -I../../include -fno-common \
  30. -mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
  31. -ffunction-sections -fdata-sections -MD -DLM4F
  32. TGT_CFLAGS += $(DEBUG_FLAGS)
  33. TGT_CFLAGS += $(STANDARD_FLAGS)
  34. # ARFLAGS = rcsv
  35. ARFLAGS = rcs
  36. OBJS += assert.o
  37. OBJS += gpio.o
  38. OBJS += rcc.o
  39. OBJS += systemcontrol.o
  40. OBJS += uart.o
  41. OBJS += vector.o
  42. OBJS += usb.o usb_control.o usb_standard.o usb_msc.o
  43. OBJS += usb_hid.o
  44. OBJS += usb_lm4f.o
  45. VPATH += ../usb:../cm3
  46. include ../Makefile.include