ada-examples-4-10-branchada-examples-4-7-branchada-examples-4-8-branchada-examples-4-9-branch
Line | |
---|
1 | # |
---|
2 | # Makefile for hello world example |
---|
3 | # |
---|
4 | |
---|
5 | MAIN=hello |
---|
6 | |
---|
7 | # Tool paths |
---|
8 | target=sparc-rtems |
---|
9 | tooldir=/home/joel/gnat-to-test/${target}/ |
---|
10 | tooldir=/usr2/tools_install/gnat-3.12p//${target}/ |
---|
11 | rtemsdir=${tooldir}/erc32 |
---|
12 | |
---|
13 | # Tool names |
---|
14 | GCC=${tooldir}/bin/${target}-gcc |
---|
15 | GNATMAKE=${tooldir}/bin/${target}-gnatmake |
---|
16 | SIZE=${tooldir}/bin/${target}-size |
---|
17 | SIS=${tooldir}/bin/sparc-rtems-sis |
---|
18 | GDB=${tooldir}/bin/sparc-rtems-gdb |
---|
19 | |
---|
20 | CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=cypress |
---|
21 | |
---|
22 | # -bargs -r |
---|
23 | all: 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 | |
---|
32 | init.o: init.c |
---|
33 | $(GCC) -O4 -g -Wall -ansi -fasm $(CARGS) -c init.c |
---|
34 | |
---|
35 | run: |
---|
36 | $(SIS) $(MAIN) |
---|
37 | |
---|
38 | gdb: |
---|
39 | $(GDB) $(MAIN) |
---|
40 | |
---|
41 | clean: |
---|
42 | rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN) |
---|
Note: See
TracBrowser
for help on using the repository browser.