Advertisement
Guest User

Untitled

a guest
Dec 19th, 2017
845
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. COMPILER_PATH = /home/max/Downloads/ARM\ toolchain/toolchain-gccarmnoneeabi-linux_x86_64-1.50401.0/bin
  2. COMPILER_PATH2 = /home/max/.platformio/packages/toolchain-gccarmnoneeabi@1.40804.0/bin
  3. OUTPUTFILE = "fw1.elf"
  4. OUTPUTFILE2 = "fw2.elf"
  5. 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
  6.  
  7. make:
  8. echo "Building with gcc 6"
  9. $(COMPILER_PATH)/arm-none-eabi-gcc -o $(OUTPUTFILE) $(C_FLAGS) main.c
  10. echo "Building with gcc 4"
  11. $(COMPILER_PATH2)/arm-none-eabi-gcc -o $(OUTPUTFILE2) $(C_FLAGS) main.c
  12. clean:
  13. rm -rf $(OUTPUTFILE)
Advertisement
RAW Paste Data Copied
Advertisement