-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.mk
33 lines (25 loc) · 991 Bytes
/
default.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# compiler names
CC = $(PREFIX)gcc
LD = $(PREFIX)gcc
# optimize for speed
SPEED=1
# replace default MSVCRT.dll default malloc/calloc/realloc/free
# other related functions
NEW_ALLOC=1
# use program default heap instead of creating new ones
DEFAULT_HEAP=1
# allign malloced return memory to specific allign (must be power of 2)
# 8 is highly recomended, 16 you can use directly with SSE, 32 for AVX
#MEM_ALIGN=16
# allow enable faster realloc copy, or calloc zeroing accelerated
# by SSE, if your OS/HW allows it, enable in runtime by crt_enable_sse2()
# function.
# TIP: You can call crt_sse2_is_safe() and check if SSE2 is safe
#MEM_COPY_SSE2=1
# disable Windows 98/Me code for TryEnterCriticalSection and call TryEnterCritical instead
#CS_NATIVE_ONLY=1
# disable static TLS remove if it break something important
#NO_STATIC_TLS_REMOVE=1
# Pass exta CFLAGS, please don't use -march= for old mingw, SSE runtime
# is broken here!
#TUNE=-march=core2