blob: 69656f9d21f298def86996d43ce49318eefd9665 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
VERSION = 0.1
PREFIX = /usr/local
CC = gcc
LIBS = -lOpenCL
CFLAGS = -std=c89 -pedantic -Wall -Wextra -O2 -pipe \
-DCL_TARGET_OPENCL_VERSION=210 -D_POSIX_C_SOURCE=200809L
LDFLAGS = -Wl,-O1,--sort-common,--as-needed ${LIBS}
CLFLAGS = -target spir64 -emit-llvm -Xclang -finclude-default-header -O3 \
-cl-std=CL1.2 -Wall -Wextra
OBJFLAGS = -I binary -O elf64-x86-64 -B i386:x86-64 \
--rename-section .data=.rodata,alloc,load,readonly,data,contents \
--add-section ".note.GNU-stack"=/dev/null \
--set-section-flags ".note.GNU-stack"=contents,readonly
|