From a4473fca971350ea28cebe2b5cee6484797ba3ea Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 28 Oct 2015 00:08:17 -0400 Subject: [PATCH] added N-Rage MinGW compile script --- Source/Script/MinGW/nrage.cmd | 61 +++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Source/Script/MinGW/nrage.cmd diff --git a/Source/Script/MinGW/nrage.cmd b/Source/Script/MinGW/nrage.cmd new file mode 100644 index 000000000..5dcb9f59a --- /dev/null +++ b/Source/Script/MinGW/nrage.cmd @@ -0,0 +1,61 @@ +@ECHO OFF +TITLE MinGW Compiler Suite Invocation + +set src=%CD%\..\..\nragev20 +set obj=%CD%\N-Rage + +if not exist %obj% ( +mkdir %obj% +) + + set MinGW=C:\MinGW +REM set MinGW=C:\msys64\mingw64\x86_64-w64-mingw32\.. + +set FLAGS_x86=^ + -I"%src%\..\3rd Party\directx\include"^ + -Wno-write-strings^ + -S^ + -masm=intel^ + -march=native^ + -Os + +set C_FLAGS=%FLAGS_x86% + +cd %MinGW%\bin +set CC=%MinGW%\bin\g++.exe +set AS=%MinGW%\bin\as.exe + +ECHO Compiling N-Rage plugin sources... +%CC% -o %obj%\NRagePluginV2.asm %src%\NRagePluginV2.cpp %C_FLAGS% +%CC% -o %obj%\Interface.asm %src%\Interface.cpp %C_FLAGS% +%CC% -o %obj%\FileAccess.asm %src%\FileAccess.cpp %C_FLAGS% +%CC% -o %obj%\PakIO.asm %src%\PakIO.cpp %C_FLAGS% +%CC% -o %obj%\GBCart.asm %src%\GBCart.cpp %C_FLAGS% +%CC% -o %obj%\International.asm %src%\International.cpp %C_FLAGS% +%CC% -o %obj%\DirectInput.asm %src%\DirectInput.cpp %C_FLAGS% +%CC% -o %obj%\XInputController.asm %src%\XInputController.cpp %C_FLAGS% + +ECHO Assembling N-Rage sources... +%AS% -o %obj%\NRagePluginV2.o %obj%\NRagePluginV2.asm +%AS% -o %obj%\Interface.o %obj%\Interface.asm +%AS% -o %obj%\FileAccess.o %obj%\FileAccess.asm +%AS% -o %obj%\PakIO.o %obj%\PakIO.asm +%AS% -o %obj%\GBCart.o %obj%\GBCart.asm +%AS% -o %obj%\International.o %obj%\International.asm +%AS% -o %obj%\DirectInput.o %obj%\DirectInput.asm +%AS% -o %obj%\XInputController.o %obj%\XInputController.asm +ECHO. + +set OBJ_LIST=^ + %obj%\XInputController.o^ + %obj%\DirectInput.o^ + %obj%\International.o^ + %obj%\GBCart.o^ + %obj%\PakIO.o^ + %obj%\FileAccess.o^ + %obj%\Interface.o^ + %obj%\NRagePluginV2.o + +ECHO Linking N-Rage objects... +%MinGW%\bin\g++.exe -o %obj%\PJ64_NRage.dll %OBJ_LIST% -shared -shared-libgcc +PAUSE