-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.def
99 lines (83 loc) · 2.68 KB
/
makefile.def
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Global root definitions
# History of changes:
#
# 27 Mar 2023 creation
# 28 Mar 2023 data structure vector introduced
# 28 Mar 2023 TESTPREFIX for test binaries
# Get root path
GLOBALROOTDIR := $(shell dirname\
$(realpath $(lastword $(MAKEFILE_LIST)))\
)/
#
# Build configurations
#
X64DEBUG := x64dbg
X64REL := x64rel
#
# Compilers and tools
#
CD := cd
MV := mv
MKDIR := mkdir -p
RMDIR := rm -Rf
AR := ar
GC := gcc
STRIP := strip
TOUCH := touch
ECHO := echo
VALGRIND := valgrind
#
# Compiler tool parameters
#
# Compiler flags
GCCSTD98 := -std=c++98
GCCSTD11 := -std=c++11
GCCSTD14 := -std=c++14
GCCSTD17 := -std=c++17
GCCPIC := -fPIC
GCCWARNALL := -Wall
GCCNOFORMATWRN := -Wformat=0
GCCX32 := -m32
GCCX64 := -m64
GCCDEBUG := -g
GCCCOMPILEONLY := -c
GCCOUTFILE := -o
GCCLIB := -l
GCCINCDIR := -I
GCCLIBDIR := -L
# Valgrind
VALGRINDOPTFULL := --leak-check=full --track-origins=yes \
--track-fds=yes
#
# All projects
#
# Top level folders - type of files inside folder
TOPLIB := lib
TOPBIN := bin
TOPOBJ := obj
TOPSRC := src
TOPINC := inc
# Top level categories
# Top Level Folder followed by name of project category
# Dev tools provide generic sofware development assists (DVT).
# Data structure provides accessibility to in memory storage algorithms (DAT).
LIBCAT_DEVTOOLS := devtools
LIBCAT_DATASTRUCT := datastruct
# All projects (first six chars are top level folders/categories)
LIBDVT_LOGGER := logger
LIBDVT_TESTFAZE := testfaze
LIBDAT_CONTMEMLIST := contmemlist
LIBDAT_VECTOR := vector
#
# Additional paths
#
# Full paths at top level
TOPLIBDIR := $(GLOBALROOTDIR)$(TOPLIB)/
TOPBINDIR := $(GLOBALROOTDIR)$(TOPBIN)/
TOPOBJDIR := $(GLOBALROOTDIR)$(TOPOBJ)/
TOPSRCDIR := $(GLOBALROOTDIR)$(TOPSRC)/
TOPINCDIR := $(GLOBALROOTDIR)$(TOPINC)/
#
# Filename specifics
#
TESTPREFIX := _test.