source: ada-examples/hello_world_ada/Makefile.score603e @ 4ad07d0

ada-examples-4-10-branchada-examples-4-8-branchada-examples-4-9-branch
Last change on this file since 4ad07d0 was 4ad07d0, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 17, 2007 at 7:12:31 PM

2007-07-17 Joel Sherrill <joel.sherrill@…>

  • hello_world_ada/Makefile.anybsp, hello_world_ada/Makefile.pc386, hello_world_ada/Makefile.score603e, hello_world_ada/init.c: Clean up GNAT_MAIN_STACKSIZE.
  • Property mode set to 100644
File size: 743 bytes
Line 
1#
2#  Makefile for hello world example
3#
4
5MAIN=hello
6
7# Tool paths
8tooldir=/avenger/afcc_ada/tools/powerpc-rtems-gnat-3.10p/
9rtemsdir=${tooldir}/rtems/score603e
10
11# Tool names
12GCC=${tooldir}/bin/powerpc-rtems-gcc
13GNATMAKE=${tooldir}/bin/powerpc-rtems-gnatmake
14SIZE=${tooldir}/bin/powerpc-rtems-size
15
16CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=603
17CARGS+=-DGNAT_MAIN_STACKSPACE=100
18
19all: init.o
20        $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \
21            -bargs -r \
22            -cargs $(CARGS) \
23            -largs $(CARGS) init.o
24        $(SIZE) $(MAIN)
25
26
27
28init.o: init.c
29        $(GCC) -O4 -g  -Wall -ansi -fasm $(CARGS) -c init.c
30
31run:
32        @ echo Must run on the real target
33
34gdb:
35        @ echo No real target
36
37clean:
38        rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN)
Note: See TracBrowser for help on using the repository browser.