ARM application development SDK for MNT ZZ9000 graphics and coprocessor card for classic Amiga computers.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-conway.sh 813B

123456789101112131415161718192021
  1. COMPILE="arm-none-eabi-gcc -std=gnu99 -nostdlib -O2 -c -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard -I../lib -I../include"
  2. LINK="arm-none-eabi-gcc -T ../link.ld -std=gnu99 -nostdlib -O2 -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard"
  3. NAME=conway
  4. mkdir -p build
  5. cppcheck --template='{file}:{line}:{severity}:{message}' --enable=all -I. -I../lib -I../include $NAME.c
  6. $COMPILE -I. -o build/$NAME.o $NAME.c
  7. $COMPILE -o build/idiv.o ../lib/div/idiv.S
  8. $COMPILE -o build/idivmod.o ../lib/div/idivmod.S
  9. $COMPILE -o build/ldivmod.o ../lib/div/ldivmod.S
  10. $COMPILE -o build/memcpy.o ../lib/memory/memcpy.c
  11. $COMPILE -o build/printf.o ../lib/printf/printf.c
  12. $LINK -o $NAME build/conway.o build/memcpy.o build/printf.o build/*div*.o -L.
  13. arm-none-eabi-objcopy -O binary $NAME $NAME.bin
  14. rm $NAME.lha
  15. lha a0 $NAME.lha $NAME.bin