did things

This commit is contained in:
2017-07-06 10:32:04 +02:00
parent 9f8a51da6a
commit 96864a4b7c
7 changed files with 24 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ INCLUDEPATH = -Iinclude
target = project
LIBRARYPATH = -Lstartup -Ldsp
LIBRARIES = -larm_cortexM7lfsp_math
LIBRARIES = -larm_cortexM7lfsp_math -lm
DEFINES = -DSTM32F746xx -DSTM32F7XX -DARM_MATH_CM7
mapfile = memmap
@@ -40,15 +40,13 @@ ASOBJ = $(ASFILES:%.S=%.S.o)
default: $(target).elf
binary: $(target).bin $(target).hex
%.bin: %.elf
$(OBJCOPY) -O binary $^ $@
%.hex: %.elf
$(OBJCOPY) -O ihex $^ $@
#Linking
$(target).elf: $(OBJ) $(ASOBJ)
$(CC) $(LFLAGS) $(LIBRARYPATH) -o $@ $^ $(LIBRARIES)