fix: refacto architecture
Signed-off-by: Nicolas Robert <nicolas.robert@epita.fr>
This commit is contained in:
parent
a43b77cb62
commit
609322eb36
@ -1,7 +1,8 @@
|
|||||||
CC=arm-none-eabi-gcc
|
CC=arm-none-eabi-gcc
|
||||||
OBJCOPY=arm-none-eabi-objcopy
|
OBJCOPY=arm-none-eabi-objcopy
|
||||||
|
|
||||||
LDS=test.lds
|
SRC=src/test.c
|
||||||
|
LDS=src/test.lds
|
||||||
|
|
||||||
OPTI=-O0
|
OPTI=-O0
|
||||||
CFLAGS= $(OPTI) -g -gdwarf-2 -mthumb -fno-builtin -mcpu=cortex-m4 -Wall -std=c99 -ffunction-sections -fdata-sections -mabi=aapcs -fno-unroll-loops -ffast-math -ftree-vectorize -fverbose-asm
|
CFLAGS= $(OPTI) -g -gdwarf-2 -mthumb -fno-builtin -mcpu=cortex-m4 -Wall -std=c99 -ffunction-sections -fdata-sections -mabi=aapcs -fno-unroll-loops -ffast-math -ftree-vectorize -fverbose-asm
|
||||||
@ -9,10 +10,10 @@ LDFLAGS=-nostartfiles -Wl,-gc-sections -T$(LDS) -L. --specs=nano.specs
|
|||||||
|
|
||||||
all: test.bin
|
all: test.bin
|
||||||
|
|
||||||
test.o: test.c
|
test.o: $(SRC)
|
||||||
$(CC) $(CFLAGS) -c test.o test.c
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
test.elf: test.o test.lds
|
test.elf: test.o $(LDS)
|
||||||
$(CC) $(LDFLAGS) test.o -o test.elf
|
$(CC) $(LDFLAGS) test.o -o test.elf
|
||||||
|
|
||||||
test.bin: test.elf
|
test.bin: test.elf
|
Loading…
Reference in New Issue
Block a user