From bd0cc4e2389a5e89f422302aa66b9e635ede8f41 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 18 Oct 2001 20:48:10 +0000 Subject: 2001-10-18 Charles Phillips * Makefile.score603e: Updated and tested. --- hello_world_ada/Makefile.score603e | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/hello_world_ada/Makefile.score603e b/hello_world_ada/Makefile.score603e index e87873f..308aa6f 100644 --- a/hello_world_ada/Makefile.score603e +++ b/hello_world_ada/Makefile.score603e @@ -5,22 +5,27 @@ MAIN=hello # Tool paths -tooldir=/avenger/afcc_ada/tools/powerpc-rtems-gnat-3.10p/ -rtemsdir=${tooldir}/rtems/score603e +tooldir=/opt/gnatrtems +rtemsdir=${tooldir}/powerpc-rtems/score603e # Tool names GCC=${tooldir}/bin/powerpc-rtems-gcc GNATMAKE=${tooldir}/bin/powerpc-rtems-gnatmake SIZE=${tooldir}/bin/powerpc-rtems-size +OBJCOPY=${tooldir}/bin/powerpc-rtems-objcopy +PACKHEX=${tooldir}/bin/packhex CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=603 all: init.o $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \ - -bargs -r \ + -bargs -Mgnat_main \ -cargs $(CARGS) \ -largs $(CARGS) init.o $(SIZE) $(MAIN) + $(OBJCOPY) -O srec $(MAIN) $(MAIN).s1 + sed -e 's/.$$//' $(MAIN).s1 | $(PACKHEX) > $(MAIN).exe + rm -f $(MAIN).s1 @@ -34,4 +39,4 @@ gdb: @ echo No real target clean: - rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN) + rm -f b~* *.o *.ali $(MAIN) $(MAIN).exe $(MAIN).s1 $(MAIN).num -- cgit v1.2.3