-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.lm4.inc
31 lines (21 loc) · 1.01 KB
/
Makefile.lm4.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PREFIX=arm-none-eabi
SUPPORT = ~/Dropbox/EDA/repo/lib/LM4F
LDSCRIPT = $(SUPPORT)/LM4F.ld
-include ~/Dropbox/EDA/Makefile.common.inc
CPUFLAGS += -mcpu=cortex-m4 -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16
SRC += $(SUPPORT)/LM4F_startup.c
LDEXTRA += --entry=rst_handler
CFLAGS += -Dgcc #Flag used in driverlib for compiler specific flags
CFLAGS += -DPART_LM4F120H5QR #Flag used in driverlib for specifying the silicon version.
CFLAGS += -DTARGET_IS_BLIZZARD_RA1 #Used in driverlib to determine what is loaded in rom.
CXXFLAGS += -Dgcc #Flag used in driverlib for compiler specific flags
CXXFLAGS += -DPART_LM4F120H5QR #Flag used in driverlib for specifying the silicon version.
CXXFLAGS += -DTARGET_IS_BLIZZARD_RA1 #Used in driverlib to determine what is loaded in rom.
upload: flash
flash: $(TARGET).elf
openocd ~/Dropbox/EDA/repo/openocd/LM4F.cfg
$(GDB) #connect "prog $(TARGET).elf"
clean:
rm -fr $(OBJ) $(TARGET).elf $(LST)
.PHONY: all upload flash clean
.PRECIOUS: .elf