From 4c02bb9787b32edd5fedc4fd2ce27894838b4519 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 9 Oct 2019 23:43:20 +0200 Subject: [PATCH] :wrench: Introduce gwion-config --- scripts/gwion-config | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 scripts/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 -- 2.43.0