#!/bin/bash -e AMDAPP_PATH=/opt/AMDAPP CFLAGS="-Wall -g" LDFLAGS="-Wall -g" CFLAGS="$CFLAGS $(pkg-config --cflags gtkglextmm-1.2) -I$AMDAPP_PATH/include" LIBS="$(pkg-config --libs gtkglextmm-1.2) -lGLEW -lOpenCL -L$AMDAPP_PATH/lib/x86_64" echo "Compiling..." gcc $CFLAGS -c main.c -o main.o echo "Linking..." gcc $LDFLAGS -o main main.o $LIBS