summaryrefslogtreecommitdiff
path: root/hello_world_ada/Makefile.jmr3904
diff options
context:
space:
mode:
Diffstat (limited to 'hello_world_ada/Makefile.jmr3904')
-rw-r--r--hello_world_ada/Makefile.jmr390441
1 files changed, 41 insertions, 0 deletions
diff --git a/hello_world_ada/Makefile.jmr3904 b/hello_world_ada/Makefile.jmr3904
new file mode 100644
index 0000000..8fc1420
--- /dev/null
+++ b/hello_world_ada/Makefile.jmr3904
@@ -0,0 +1,41 @@
+#
+# Makefile for hello world example
+#
+
+MAIN=hello
+
+# Tool paths
+target=mips-rtems
+tooldir=/opt/rtems/
+rtemsdir=${tooldir}/$(target)/jmr3904
+
+# Tool names
+GCC=${tooldir}/bin/${target}-gcc
+GNATMAKE=${tooldir}/bin/${target}-gnatmake
+SIZE=${tooldir}/bin/${target}-size
+RUN=${tooldir}/bin/mipstx39-rtems-run
+GDB=${tooldir}/bin/mipstx39-rtems-gdb
+
+CARGS=-B$(rtemsdir)/lib/ -specs bsp_specs -qrtems -march=r3900 -G0
+
+# -bargs -r
+all: init.o
+ $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \
+ -bargs -Mgnat_main \
+ -cargs $(CARGS) \
+ -largs $(CARGS) init.o
+ $(SIZE) $(MAIN)
+
+
+
+init.o: init.c
+ $(GCC) -O4 -g -Wall -ansi -fasm $(CARGS) -c init.c
+
+run:
+ $(RUN) $(MAIN)
+
+gdb:
+ $(GDB) $(MAIN)
+
+clean:
+ rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN)