#!/bin/sh
[ -z "$MESA_SRC" ] && echo "Must set MESA_SRC=..." && exit
export export C_INCLUDE_PATH="$MESA_SRC/src/:$MESA_SRC/src/glx/"
gcc -Wall -lGL -std=c11 -Wall -fPIC -shared -o riftmesahack.so riftmesahack.c
