diff options
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..69656f9 --- /dev/null +++ b/config.mk @@ -0,0 +1,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 |