2 files changed, 19 insertions(+), 0 deletions(-)

A => Makefile
A => empty.adb
A => Makefile +13 -0
@@ 0,0 1,13 @@ 
+RTS=$(HOME)/work/arm-gnat-build/rts-base
+
+default: empty.elf
+
+empty.o: empty.adb
+	arm-none-eabi-gcc -c --RTS=$(RTS) -gnatec=$(RTS)/gnat.adc -gnatwp -gnatwu -gnatn -gnatp -gnatVn -Os -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -I- -gnatA empty.adb
+
+empty.elf: empty.o
+	arm-gnatbind --RTS=$(RTS) -I- -I$(RTS)/adainclude -I. -x $(PWD)/empty.ali
+	arm-gnatlink -v $(PWD)/empty.ali -Wl,--gc-sections -Wl,--relax "--GCC=arm-none-eabi-gcc -v -Os -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 --RTS=$(RTS) -I$(RTS)/adainclude -gnatp -fdata-sections -ffunction-sections" "--LINK=arm-none-eabi-gcc" -Wl,-Map=../main.map,--cref -o empty.elf -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16
+
+clean:
+	rm -f empty.o b~*.o b~*.ad? b~*.ali empty.elf empty.ali

          
A => empty.adb +6 -0
@@ 0,0 1,6 @@ 
+with Interfaces;
+
+procedure Empty is
+begin
+   null;
+end Empty;