
# now that AdaGnu 7.3.0 is the default "gnatmake"
# this uses it.

# Linux compile script
#########################################################
# this version attempts to use the latest
# system installation of GNU Ada [7.3.0]
#########################################################

gnatmake adagate -o adagate3 \
-O2 -gnat12 \
--subdirs=./obj \
-I./adautils \
-I./adabindings/gl \
-I./adabindings/sdl207ada \
-I./adabindings/AdaPngLib \
-I./adabindings/sfmlAudio \
-largs \
-lGL  -lz -lm -ldl -lpthread \
-Xlinker -rpath='$ORIGIN/libs/gnu' \
-L$PWD/libs/gnu \
-lsnd4ada \
-lSDL2-207 -lsfml-audio -lsfml-system \
-lopenal -lcrypto -logg -lvorbis -lvorbisenc -lvorbisfile -lFLAC

#NOTE:  final line above has libs that need not be explicitly
#       mentioned, yet are used and may be non-standard

#-lGL -lz -lm -lpthread -lstdc++ \

# use this line for shared SDL2:
#-lSDL2 -lsfml-audio -lsfml-system \

mv ./obj/adagate3 ./adagate_gnu_gnu


# -- Copyright (C) 2018  <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/>.



