OARada-examples-4-10-branchada-examples-4-6-branchada-examples-4-7-branchada-examples-4-8-branchada-examples-4-9-branchrtems-4-5-branch
ADA-EXAMPLES-BASE
Rev | Line | |
---|
[7efcefa] | 1 | # |
---|
| 2 | # Makefile for hello world example |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | MAIN=hello |
---|
| 6 | |
---|
| 7 | # Tool paths |
---|
| 8 | tooldir=/avenger/afcc_ada/tools/powerpc-rtems-gnat-3.10p/ |
---|
| 9 | rtemsdir=${tooldir}/rtems/score603e |
---|
| 10 | |
---|
| 11 | # Tool names |
---|
| 12 | GCC=${tooldir}/bin/powerpc-rtems-gcc |
---|
| 13 | GNATMAKE=${tooldir}/bin/powerpc-rtems-gnatmake |
---|
| 14 | SIZE=${tooldir}/bin/powerpc-rtems-size |
---|
| 15 | |
---|
| 16 | CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=603 |
---|
| 17 | |
---|
| 18 | all: init.o |
---|
| 19 | $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \ |
---|
| 20 | -bargs -r \ |
---|
| 21 | -cargs $(CARGS) \ |
---|
| 22 | -largs $(CARGS) init.o |
---|
| 23 | $(SIZE) $(MAIN) |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | init.o: init.c |
---|
| 28 | $(GCC) -O4 -g -Wall -ansi -fasm $(CARGS) -c init.c |
---|
| 29 | |
---|
| 30 | run: |
---|
| 31 | @ echo Must run on the real target |
---|
| 32 | |
---|
| 33 | gdb: |
---|
| 34 | @ echo No real target |
---|
| 35 | |
---|
| 36 | clean: |
---|
| 37 | rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN) |
---|
Note: See
TracBrowser
for help on using the repository browser.