all:
	rsdk-elf-gcc -c -EL -G0 -gdwarf-2 -march=5181 -o rlx_remote_boot.o rlx_remote_boot.S
	rsdk-elf-gcc -c -EL  -G0 -gdwarf-2 -march=5181  -o rlx_remote_flash.o rlx_remote_flash.c
	rsdk-elf-gcc -c  -EL -G0 -gdwarf-2 -march=5181 -o rlx_spi_flash_driver.o rlx_spi_flash_driver.S
	rsdk-elf-gcc -G0  -EL -g rlx_remote_boot.o rlx_remote_flash.o rlx_spi_flash_driver.o -lc -L. -lrlxel -g -Trlx_remote_flash.ld -march=5181 -o rlx_remote_flash.elf

clean:
	rm -f *.o
	rm -f *.elf
