source: ada-examples/hello_world_ada/Makefile.erc32 @ 38b445a

ada-examples-4-10-branchada-examples-4-6-branchada-examples-4-7-branchada-examples-4-8-branchada-examples-4-9-branch
Last change on this file since 38b445a was a1affab, checked in by Joel Sherrill <joel.sherrill@…>, on 08/20/99 at 19:37:42

Miscelaneous changes.

  • Property mode set to 100644
File size: 740 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}/
10rtemsdir=${tooldir}/erc32
11
12# Tool names
13GCC=${tooldir}/bin/${target}-gcc
14GNATMAKE=${tooldir}/bin/${target}-gnatmake
15SIZE=${tooldir}/bin/${target}-size
16SIS=${tooldir}/bin/sparc-rtems-sis
17GDB=${tooldir}/bin/sparc-rtems-gdb
18
19CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=cypress
20
21all: init.o
22        $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \
23            -bargs -r \
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        $(SIS) $(MAIN) 
35
36gdb:
37        $(GDB) $(MAIN) 
38
39clean:
40        rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN)
Note: See TracBrowser for help on using the repository browser.