# # sample Makefile for C with OpenCL (AMD implementation) # # usage examples: # "make hello" to compile "hello.c" to "hello" CC=gcc CSTD = -std=c99 OPT = -O3 CFLAGS = $(OPT) -Wall -pedantic $(CSTD) -Wno-deprecated-declarations LDFLAGS = -L/opt/amdgpu-pro/lib64 LDLIBS = -lOpenCL -lm -lrt