summaryrefslogtreecommitdiff
path: root/config.mk
blob: b278d8d35034af92b587e361dda366980fa794e8 (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

LDLIBS = -lOpenCL -lraylib -lm

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

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