From: fennecdjay Date: Wed, 9 Oct 2019 21:43:20 +0000 (+0200) Subject: :wrench: Introduce gwion-config X-Git-Tag: nightly~2198^2~47 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=4c02bb9787b32edd5fedc4fd2ce27894838b4519;p=gwion.git :wrench: Introduce gwion-config --- diff --git a/scripts/gwion-config b/scripts/gwion-config new file mode 100755 index 00000000..b1f5eb8e --- /dev/null +++ b/scripts/gwion-config @@ -0,0 +1,33 @@ +#!/bin/bash + +usage() { + echo "Usage: + gwion-config --version - show installed script and Guile version + gwion-config --help - show usage info (this message) + gwion-config link - print libraries to link with + gwion-config compile - print C compiler flags to compile with" +} + +version() { + echo "N.A." +} + +link() { + echo "-std=c99 -fPIC -Wall -Wextra -O2" +} + +compile() { + echo "-fPIC -I PREFIX/gwion/util -I PREFIX/gwion/ast -I PREFIX/gwion" +} + +if [ $# = 0 ] +then usage +elif [ "$1" = "--version" ] +then version +elif [ "$1" = "--help" ] +then version +elif [ "$1" = "link" ] +then link +elif [ "$1" = "compile" ] +then compile +fi