#!/bin/sh

SOURCE=$1
TARGET=$2

current_path=`dirname $0`
current_path="$current_path/../"

# Enable also for MacOSX
DYLD_LIBRARY_PATH="$current_path/lib"
export DYLD_LIBRARY_PATH

LD_LIBRARY_PATH="$current_path/lib"
export LD_LIBRARY_PATH

mkdir -p `dirname $TARGET`
$current_path/bin/falcon -o $TARGET -c $SOURCE 
