
rem -- Copyright (C) 2022  <fastrgv@gmail.com>
rem --
rem -- This program is free software: you can redistribute it and/or modify
rem -- it under the terms of the GNU General Public License as published by
rem -- the Free Software Foundation, either version 3 of the License, or
rem -- (at your option) any later version.
rem --
rem -- This program is distributed in the hope that it will be useful,
rem -- but WITHOUT ANY WARRANTY; without even the implied warranty of
rem -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
rem -- GNU General Public License for more details.
rem --
rem -- You may read the full text of the GNU General Public License
rem -- at <http://www.gnu.org/licenses/>.


del obj\*

rem As of Sep2022 I am using a W64 build to provide
rem maximum memory space for the embedded autosolvers.

rem GNU Ada 64-bit build script
rem use setpath64



rem first, create oal.o:
g++ src\adabindings\adaOpenAL\OalBinding\oal.cpp -c ^
-D obj -Isrc\adabindings\adaOpenAL\OalBinding ^
-Isrc\adabindings\adaOpenAL\OalBinding\incoal




gnatmake.exe sokerban ^
 -O3 -gnat12 -m64 ^
 -D obj ^
 -Isrc ^
 -Isrc\adautils ^
 -Isrc\adabindings\gl ^
 -Isrc\adabindings\glfwada ^
 -Isrc\adabindings\AdaPngLib ^
 -Isrc\adabindings\adaOpenAL ^
 -Isrc\adabindings\adaOpenAL\OalBinding ^
 -largs ^
 oal.o ^
 -lOpenGL32 -lGdi32 -lwinmm ^
 	binw64\glext.lib ^
	binw64\openal32.dll ^
 	binw64\libstdc++-6.dll ^
	binw64\zlib1.dll ^
	-Llibs\w64 ^
	-lglfw3dll



move sokerban.exe .\binw64\

rem ccc.bat puller
rem ccc.bat ibox

rem removed binw64\glfw3.dll ^
