-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVars.mk
45 lines (35 loc) · 764 Bytes
/
Vars.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
34
35
36
37
38
39
40
41
42
43
44
45
# ----------------------------------------------------------------------
# This file is part of jnutils, made public 2023, (c) Jeff Nye.
# See LICENSE in the root directory.
# ----------------------------------------------------------------------
OS = $(shell lsb_release -si)
CC = gcc
CPP = g++
AR = ar
ifeq ($(OS),Ubuntu)
MAKE = make
else
MAKE = make
endif
OBJC = objcopy
#STD = -std=gnu++2a
#STD = -std=c++2a
ifeq ($(OS),Ubuntu)
STD = -std=c++17
else
STD = -std=c++2a
endif
CPPSTD = $(STD)
CSTD = -std=c99
VIS = -fvisibility=default
ARFLAGS = rcs
DEF = \
-DTRACE_EN=1 \
-DMFM_VIRTUAL=1 \
-DMFM_ASSERT_EN=1 \
-DMFM_EVENT_DEBUG=1 \
-DMFM_VFSB_DEBUG=1
#-DMFM_LIMIT_CHECKS=1
#-DCPP_BUILD
#OPT = -O3 -fPIC
OPT = -g -fPIC -no-pie