summaryrefslogtreecommitdiff
path: root/tests/poc_c/compil.sh
blob: d64cc67290fa9c0e4fc69623206593047bbc2a45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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