This repository was archived by the owner on Oct 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathconfig.mk
More file actions
73 lines (53 loc) · 1.36 KB
/
config.mk
File metadata and controls
73 lines (53 loc) · 1.36 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# See LICENSE file for license and copyright information
# project
PROJECT = cache_template_attack
VERSION = 0.0.1
# arch
ARCH = x86
# version checks
# If you want to disable any of the checks, set *_VERSION_CHECK to 0.
LIBFLUSH_VERSION_CHECK ?= 1
LIBFLUSH_MIN_VERSION = 0.0.1
LIBFLUSH_PKG_CONFIG_NAME = libflush
# pkg-config binary
PKG_CONFIG ?= pkg-config
# paths
PREFIX ?= /usr
DEPENDDIR ?= .depend
BUILDDIR ?= build/${ARCH}
BUILDDIR_RELEASE ?= ${BUILDDIR}/release
BUILDDIR_DEBUG ?= ${BUILDDIR}/debug
BINDIR ?= bin
# libs
LIBFLUSH_INC ?= $(shell ${PKG_CONFIG} --cflags libflush)
LIBFLUSH_LIB ?= $(shell ${PKG_CONFIG} --libs libflush)
INCS = ${LIBFLUSH_INC}
LIBS = ${LIBFLUSH_LIB}
# compiler flags
CFLAGS += -std=c11 -pedantic -Wall -Wno-format-zero-length -Wextra -O3 $(INCS)
# debug
DFLAGS ?= -g
# linker flags
LDFLAGS += -rdynamic
# compiler
CC ?= gcc
# strip
SFLAGS ?= -s
# valgrind
VALGRIND = valgrind
VALGRIND_ARGUMENTS = --tool=memcheck --leak-check=yes --leak-resolution=high \
--show-reachable=yes --log-file=${PROJECT}-valgrind.log
VALGRIND_SUPPRESSION_FILE = ${PROJECT}.suppression
# set to something != 0 if you want verbose build output
VERBOSE ?= 0
# colors
COLOR ?= 1
# dist
TARFILE = ${PROJECT}-${VERSION}.tar.gz
TARDIR = ${PROJECT}-${VERSION}
# android
ANDROID_PLATFORM ?= android-21
# android device
WITH_ANDROID ?= 0
# thread support
WITH_THREADS ?= 0