did things
This commit is contained in:
6
Makefile
6
Makefile
@@ -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)
|
||||
|
Reference in New Issue
Block a user