summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-18 20:48:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-18 20:48:10 +0000
commitbd0cc4e2389a5e89f422302aa66b9e635ede8f41 (patch)
tree489c3f5984d2f3e1763fc7f2482d8be5ea91604f
parent2001-08-30 Joel Sherrill <joel@OARcorp.com> (diff)
downloadada-examples-rtems-4-5-branch.tar.bz2
2001-10-18 Charles Phillips <charles@OARcorp.com>rtems-4-5-branch
* Makefile.score603e: Updated and tested.
-rw-r--r--hello_world_ada/Makefile.score603e13
1 files 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