summaryrefslogtreecommitdiff
path: root/translate/mcode/windows/compile.bat
diff options
context:
space:
mode:
Diffstat (limited to 'translate/mcode/windows/compile.bat')
-rw-r--r--translate/mcode/windows/compile.bat13
1 files changed, 13 insertions, 0 deletions
diff --git a/translate/mcode/windows/compile.bat b/translate/mcode/windows/compile.bat
new file mode 100644
index 0000000..fafbb25
--- /dev/null
+++ b/translate/mcode/windows/compile.bat
@@ -0,0 +1,13 @@
+mkdir build
+cd build
+
+rem Do the compilation
+gcc -c -O ../grt/grt-cbinding.c
+gcc -c -O ../grt/grt-cvpi.c
+gcc -c -O ../grt/config/clock.c
+gcc -c -O ../ortho/memsegs_c.c
+gcc -c -O -DWITH_GNAT_RUN_TIME ../grt/config/win32.c
+gnatmake -O -gnatn -aI../windows -aI../ghdl -aI../ghdldrv -aI../grt -aI../ortho ghdl_mcode -o ghdl.exe -largs grt-cbinding.o clock.o grt-cvpi.o memsegs_c.o win32.o
+strip ghdl.exe
+
+cd ..