Add a define to Makefile

This commit is contained in:
phl0 2017-04-12 21:57:32 +02:00
parent 07b7801821
commit 59a9b3018f
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A
2 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,8 @@ AR:=$(ADIR)/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-e
#all these values are hard coded and should maybe be configured somehow else,
#like olikraus does in his makefile.
DEFINES:=-Dprintf=iprintf -DF_CPU=84000000 -DARDUINO=10611 -D__SAM3X8E__ -DUSB_PID=0x003e -DUSB_VID=0x2341 -DUSBCON \
-DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"'
-DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' \
-DMADEBYMAKEFILE
INCLUDES:=-I$(SAM)/system/libsam -I$(SAM)/system/CMSIS/CMSIS/Include/ \
-I$(SAM)/system/CMSIS/Device/ATMEL/ -I$(SAM)/cores/arduino \
@ -105,6 +106,7 @@ default:
#This rule is good to just make sure stuff compiles, without having to wait
#for bossac.
compile: GitVersion.h
compile: $(TMPDIR)/$(PROJNAME).elf
#This is a make rule template to create object files from the source files.

View File

@ -22,7 +22,7 @@
#include "Config.h"
#include "Globals.h"
#if defined(STM32F4XX) || defined(STM32F4)
#if defined(MADEBYMAKEFILE)
#include "GitVersion.h"
#endif