Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMPILER_PATH = /home/max/Downloads/ARM\ toolchain/toolchain-gccarmnoneeabi-linux_x86_64-1.50401.0/bin
- COMPILER_PATH2 = /home/max/.platformio/packages/[email protected]/bin
- OUTPUTFILE = "fw1.elf"
- OUTPUTFILE2 = "fw2.elf"
- C_FLAGS = -Os -fno-exceptions -std=gnu11 -ffunction-sections -fdata-sections -Wall -mthumb -mcpu=cortex-m0plus -nostdlib -specs=nosys.specs --specs=nano.specs --param max-inline-insns-single=500
- make:
- echo "Building with gcc 6"
- $(COMPILER_PATH)/arm-none-eabi-gcc -o $(OUTPUTFILE) $(C_FLAGS) main.c
- echo "Building with gcc 4"
- $(COMPILER_PATH2)/arm-none-eabi-gcc -o $(OUTPUTFILE2) $(C_FLAGS) main.c
- clean:
- rm -rf $(OUTPUTFILE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement