summaryrefslogtreecommitdiffstats
path: root/hello_world_ada
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-29 14:01:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-29 14:01:39 +0000
commit0310abc2e3f9bd819e574be4b509e1bca20ee253 (patch)
tree136e257b3f85540c241a7b0c8bf364c6f783b4f6 /hello_world_ada
parentChanged to reflect 3.12p. (diff)
downloadada-examples-0310abc2e3f9bd819e574be4b509e1bca20ee253.tar.bz2
2003-01-29 Joel Sherrill <joel@OARcorp.com>
* hello_world_ada/Makefile.pc386: Updated to work with gnat in gcc 3.2.1.
Diffstat (limited to 'hello_world_ada')
-rw-r--r--hello_world_ada/Makefile.pc38610
1 files changed, 5 insertions, 5 deletions
diff --git a/hello_world_ada/Makefile.pc386 b/hello_world_ada/Makefile.pc386
index 1aac9df..f82cc1c 100644
--- a/hello_world_ada/Makefile.pc386
+++ b/hello_world_ada/Makefile.pc386
@@ -6,8 +6,8 @@ MAIN=hello
# Tool paths
target=i386-rtems
-tooldir=/home/joel/gnat-3.10p/${target}/
-rtemsdir=${tooldir}/rtems/pc386
+tooldir=/opt/rtems/
+rtemsdir=${tooldir}/$(target)/pc386
# Tool names
GCC=${tooldir}/bin/${target}-gcc
@@ -22,7 +22,7 @@ START16ADDR=0x00097C00
RELOCADDR=0x00100000
CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems \
- -Wl,-Ttext,$(RELOCADDR) -Wl,--oformat,elf32-i386
+ -Wl,-Ttext,$(RELOCADDR)
all: init.o $(MAIN)
@@ -31,12 +31,12 @@ $(MAIN): $(MAIN).exe
$(MAIN).exe: init.o
$(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g -o $(MAIN).obj \
- -bargs -r \
+ -bargs -Mgnat_main \
-cargs $(CARGS) \
-largs $(CARGS) init.o
$(SIZE) $(MAIN).obj
$(NM) -g -n $(MAIN).obj >$(MAIN).num
- $(OBJCOPY) -O a.out-i386 \
+ $(OBJCOPY) -O elf32-i386 \
--remove-section=.rodata \
--remove-section=.comment \
--remove-section=.note \