source: ada-examples/hello_world_ada/Makefile.jmr3904 @ 63e8156

ada-examples-4-10-branchada-examples-4-7-branchada-examples-4-8-branchada-examples-4-9-branch
Last change on this file since 63e8156 was 3ea7406, checked in by Joel Sherrill <joel.sherrill@…>, on 01/29/03 at 14:04:21

2003-01-29 Joel Sherrill <joel@…>

  • hello_world_ada/README.ERC32, hello_world_ada/README.PSIM: Now include CVS Ids.
  • hello_world_ada/Makefile.jmr3904: New file.
  • Property mode set to 100644
File size: 758 bytes
Line 
1#
2#  Makefile for hello world example
3#
4
5MAIN=hello
6
7# Tool paths
8target=mips-rtems
9tooldir=/opt/rtems/
10rtemsdir=${tooldir}/$(target)/jmr3904
11
12# Tool names
13GCC=${tooldir}/bin/${target}-gcc
14GNATMAKE=${tooldir}/bin/${target}-gnatmake
15SIZE=${tooldir}/bin/${target}-size
16RUN=${tooldir}/bin/mipstx39-rtems-run
17GDB=${tooldir}/bin/mipstx39-rtems-gdb
18
19CARGS=-B$(rtemsdir)/lib/ -specs bsp_specs -qrtems -march=r3900 -G0
20
21# -bargs -r
22all: init.o
23        $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \
24            -bargs -Mgnat_main \
25            -cargs $(CARGS) \
26            -largs $(CARGS) init.o
27        $(SIZE) $(MAIN)
28
29
30
31init.o: init.c
32        $(GCC) -O4 -g  -Wall -ansi -fasm $(CARGS) -c init.c
33
34run:
35        $(RUN) $(MAIN) 
36
37gdb:
38        $(GDB) $(MAIN) 
39
40clean:
41        rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN)
Note: See TracBrowser for help on using the repository browser.