summaryrefslogtreecommitdiff
path: root/hello_world_ada/Makefile.erc32
diff options
context:
space:
mode:
Diffstat (limited to 'hello_world_ada/Makefile.erc32')
-rw-r--r--hello_world_ada/Makefile.erc3240
1 files changed, 40 insertions, 0 deletions
diff --git a/hello_world_ada/Makefile.erc32 b/hello_world_ada/Makefile.erc32
new file mode 100644
index 0000000..fe2db50
--- /dev/null
+++ b/hello_world_ada/Makefile.erc32
@@ -0,0 +1,40 @@
+#
+# Makefile for hello world example
+#
+
+MAIN=hello
+
+# Tool paths
+target=sparc-rtems
+tooldir=/home/joel/gnat-3.10b/${target}/
+rtemsdir=${tooldir}/rtems/erc32
+
+# Tool names
+GCC=${tooldir}/bin/${target}-gcc
+GNATMAKE=${tooldir}/bin/${target}-gnatmake
+SIZE=${tooldir}/bin/${target}-size
+SIS=${tooldir}/bin/sis
+GDB=${tooldir}/bin/sis-gdb
+
+CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems -mcypress
+
+all: init.o
+ $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \
+ -bargs -r \
+ -cargs $(CARGS) \
+ -largs $(CARGS) init.o
+ $(SIZE) $(MAIN)
+
+
+
+init.o: init.c
+ $(GCC) -O4 -g -Wall -ansi -fasm $(CARGS) -c init.c
+
+run:
+ $(SIS) $(MAIN)
+
+gdb:
+ $(GDB) $(MAIN)
+
+clean:
+ rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN)