From 3fddf1c59fd7a8fcd260bb9e05c611bef3dd141b Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 5 Nov 2014 05:11:00 +0100 Subject: Move files and dirs from translate/ --- dist/mcode/windows/compile.bat | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 dist/mcode/windows/compile.bat (limited to 'dist/mcode/windows/compile.bat') diff --git a/dist/mcode/windows/compile.bat b/dist/mcode/windows/compile.bat new file mode 100644 index 000000000..c668ef0e2 --- /dev/null +++ b/dist/mcode/windows/compile.bat @@ -0,0 +1,24 @@ +mkdir build +cd build + +rem Do the compilation +set CFLAGS=-O -g +gcc -c %CFLAGS% ../../grt/grt-cbinding.c +gcc -c %CFLAGS% ../../grt/grt-cvpi.c +gcc -c %CFLAGS% ../../grt/config/clock.c +gcc -c %CFLAGS% ../../../ortho/mcode/memsegs_c.c +gcc -c %CFLAGS% -DWITH_GNAT_RUN_TIME ../../grt/config/win32.c +gnatmake %CFLAGS% -gnatn -aI../windows -aI../../.. -aI../.. -aI../../ghdldrv -aI../../../psl -aI../../grt -aI../../../ortho/mcode ghdl_mcode -aI../../../ortho -o ghdl.exe -largs grt-cbinding.o clock.o grt-cvpi.o memsegs_c.o win32.o -largs -Wl,--stack,8404992 + +if errorlevel 1 goto failed + +strip ghdl.exe + +cd .. +exit /b 0 + +:failed +echo "Compilation failed" +cd .. +exit /b 1 + -- cgit v1.2.3