source: ada-examples/hello_world_ada/Makefile.erc32 @ 26af17f

ada-examples-4-10-branchada-examples-4-7-branchada-examples-4-8-branchada-examples-4-9-branch
Last change on this file since 26af17f was 8c02d47, checked in by Joel Sherrill <joel.sherrill@…>, on 02/11/00 at 14:41:47

Changed to reflect 3.12p.

  • 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.