
# This script is designed for the Ada compiler
# from GNU, along with the libgnatcoll
# library, that properly handles all the keyboard
# functions, similar to ncurses. Note, however,
# that ncurses is NOT needed.

# EXEs produced by this script are fairly
# portable among linux distros.



# set priority path to GNU Ada compiler...
export PATH=$HOME/opt/gnat-x86_64-linux-12.2.0-1/bin:$PATH




gnatmake $1 \
-O3 -gnat12 \
-D obj \
-I../src \
-I../src/adautils \
-I../src/adautils/fakeTime \
-I../src/adabindings/fake00 \
-I../src/adabindings/adaOpenAL \
-I../src/adabindings/adaOpenAL/OalBinding \
-largs \
obj/terminals.o \
obj/oal.o \
-lopenal -lpthread -lstdc++ -lz -lm


#-L../libs/gnu -lgnatcoll


mv $1 ../bin/gnu/



# Note that 9 (standard) libraries must be found on
# target system in order to build & execute on linux:
#
#	(explicit:)
# libopenal.so.1
# libpthread.so.0
# libstdc++.so.6
# libz.so.1
# libm.so.6
#
#	(implicit:)
# libdl.so.2
# librt.so.1 
# libc.so.6
# libgcc_s.so.1
#
# libsndio.so.7.0
# libasound.so.2
# libbsd.so.0



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

