rtems-4-5-branch
Last change
on this file since 162291d was
162291d,
checked in by Joel Sherrill <joel.sherrill@…>, on 08/31/01 at 19:21:15
|
2001-08-30 Joel Sherrill <joel@…>
- gdb.psim: Removed.
- Makefile.erc32, Makefile.psim: Updated.
|
-
Property mode set to
100644
|
File size:
805 bytes
|
Rev | Line | |
---|
[7efcefa] | 1 | # |
---|
| 2 | # Makefile for hello world example |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | MAIN=hello |
---|
| 6 | |
---|
| 7 | # Tool paths |
---|
| 8 | target=sparc-rtems |
---|
[162291d] | 9 | tooldir=/opt/gnatrtems |
---|
| 10 | #tooldir=/usr2/tools_install/gnat-3.12p//${target}/ |
---|
| 11 | rtemsdir=${tooldir}/sparc-rtems/erc32 |
---|
[7efcefa] | 12 | |
---|
| 13 | # Tool names |
---|
| 14 | GCC=${tooldir}/bin/${target}-gcc |
---|
| 15 | GNATMAKE=${tooldir}/bin/${target}-gnatmake |
---|
| 16 | SIZE=${tooldir}/bin/${target}-size |
---|
[0dabaeb] | 17 | SIS=${tooldir}/bin/sparc-rtems-sis |
---|
| 18 | GDB=${tooldir}/bin/sparc-rtems-gdb |
---|
[7efcefa] | 19 | |
---|
[0dabaeb] | 20 | CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcpu=cypress |
---|
[7efcefa] | 21 | |
---|
[0dabaeb] | 22 | # -bargs -r |
---|
[7efcefa] | 23 | all: init.o |
---|
| 24 | $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \ |
---|
[0dabaeb] | 25 | -bargs -Mgnat_main \ |
---|
[7efcefa] | 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.