source: ada-examples/hello_world_ada/Makefile.erc32 @ 0dabaeb

rtems-4-5-branch
Last change on this file since 0dabaeb was 0dabaeb, checked in by cvs2git <rtems-devel@…>, on 02/11/00 at 14:41:48

This commit was manufactured by cvs2svn to create branch 'rtems-4-5-branch'.

Sprout from OAR 1999-04-20 13:05:42 UTC Joel Sherrill <joel.sherrill@…> 'base GNAT/RTEMS examples'
Cherrypick from master 2000-02-11 14:41:47 UTC Joel Sherrill <joel.sherrill@…> 'Changed to reflect 3.12p.':

VERSION
hello_world_ada/Makefile.erc32
hello_world_ada/init.c

  • Property mode set to 100644
File size: 812 bytes
Line 
1#
2#  Makefile for hello world example
3#
4
5MAIN=hello
6
7# Tool paths
8target=sparc-rtems
9tooldir=/home/joel/gnat-to-test/${target}/
10tooldir=/usr2/tools_install/gnat-3.12p//${target}/
11rtemsdir=${tooldir}/erc32
12
13# Tool names
14GCC=${tooldir}/bin/${target}-gcc
15GNATMAKE=${tooldir}/bin/${target}-gnatmake
16SIZE=${tooldir}/bin/${target}-size
17SIS=${tooldir}/bin/sparc-rtems-sis
18GDB=${tooldir}/bin/sparc-rtems-gdb
19
20CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=cypress
21
22# -bargs -r
23all: init.o
24        $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \
25            -bargs -Mgnat_main \
26            -cargs $(CARGS) \
27            -largs $(CARGS) init.o
28        $(SIZE) $(MAIN)
29
30
31
32init.o: init.c
33        $(GCC) -O4 -g  -Wall -ansi -fasm $(CARGS) -c init.c
34
35run:
36        $(SIS) $(MAIN) 
37
38gdb:
39        $(GDB) $(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.