source: ada-examples/hello_world_ada/Makefile.psim @ 162291d

rtems-4-5-branch
Last change on this file since 162291d was 162291d, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 31, 2001 at 7:21:15 PM

2001-08-30 Joel Sherrill <joel@…>

  • gdb.psim: Removed.
  • Makefile.erc32, Makefile.psim: Updated.
  • Property mode set to 100644
File size: 887 bytes
Line 
1#
2#  Makefile for hello world example
3#
4
5MAIN=hello
6
7# Tool paths
8target=powerpc-rtems
9tooldir=/opt/gnatrtems
10rtemsdir=${tooldir}/${target}/psim
11
12# Tool names
13GCC=${tooldir}/bin/${target}-gcc
14GNATMAKE=${tooldir}/bin/${target}-gnatmake
15SIZE=${tooldir}/bin/${target}-size
16PSIM=${tooldir}/bin/powerpc-rtems-run
17GDB=${tooldir}/bin/powerpc-rtems-gdb
18
19CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=603
20
21all: init.o
22        $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \
23            -bargs -Mgnat_main \
24            -cargs $(CARGS) \
25            -largs $(CARGS) init.o
26        $(SIZE) $(MAIN)
27
28
29
30init.o: init.c
31        $(GCC) -O4 -g  -Wall -ansi -fasm $(CARGS) -c init.c
32
33run:
34        -$(PSIM) -o "/#address-cells 2" \
35           -o "/openprom/options/oea-memory-size 8388608" $(MAIN)
36        @echo Ignore the return code.  It is meaningless.
37
38gdb:
39        $(GDB) -x gdb.psim $(MAIN)
40
41clean:
42        rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN)
Note: See TracBrowser for help on using the repository browser.