forked from OpenCAPI/libocxl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.vars
More file actions
23 lines (19 loc) · 724 Bytes
/
Makefile.vars
File metadata and controls
23 lines (19 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Disable built-in rules
MAKEFLAGS += -rR
# change VERSION_MAJOR only if library breaks backward compatibility.
# refer to file symver.map
VERSION_MAJOR = 1
# Change VERSION_MINOR on new features
VERSION_MINOR = 2
# Change VERSION_PATCH on each tag
VERSION_PATCH = 1
AR = $(CROSS_COMPILE)ar
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
CC = $(CROSS_COMPILE)gcc
NM = $(CROSS_COMPILE)nm
OBJCOPY = $(CROSS_COMPILE)objcopy
CFLAGS ?= -g -Wall -Wextra -O2 -m64 -std=c11 -DLIBOCXL_SUPPRESS_INACCESSIBLE_WARNINGS
TESTCFLAGS += $(CFLAGS) -O0 -DTEST_ENVIRONMENT=1 -I src -I testobj -pthread
SAMPLECFLAGS += $(CFLAGS) -std=gnu11 -I src -I testobj -pthread
AFUTESTCFLAGS += $(CFLAGS) -std=gnu11 -I src -I testobj -pthread