mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-09 05:14:01 +02:00
build without eclipse :)
This commit is contained in:
parent
c3ff2207cd
commit
8b871d5d47
50 changed files with 143 additions and 2514 deletions
19
firmware/Makefile
Normal file
19
firmware/Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
CFLAGS = -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC13xx -Iinc -O0 -g3 -Wall -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb
|
||||
LDFLAGS = -nostdlib -Xlinker -Map=obj/edubrm.map --gc-sections -mcpu=cortex-m3 -mthumb -T obj/debug.ld
|
||||
LIST = $(shell cd src/ ; ls *.c)
|
||||
OBJS = $(addprefix obj/,$(LIST:.c=.o))
|
||||
SRCS = $(addprefix src/,$(LIST))
|
||||
|
||||
obj/%.o: src/%.c
|
||||
arm-none-eabi-gcc $(CFLAGS) -c $< -o $@
|
||||
|
||||
obj/edubrm.axf: $(OBJS)
|
||||
arm-none-eabi-gcc $(LDFLAGS) -o obj/edubrm.axf $(OBJS)
|
||||
|
||||
obj/edubrm.bin: obj/edubrm.axf
|
||||
arm-none-eabi-size obj/edubrm.axf
|
||||
arm-none-eabi-objcopy -O binary obj/edubrm.axf obj/edubrm.bin
|
||||
checksum -v obj/edubrm.bin
|
||||
|
||||
clean:
|
||||
rm -f obj/*.o obj/edubrm.{axf,bin,map}
|
Loading…
Add table
Add a link
Reference in a new issue