-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConfig
More file actions
73 lines (53 loc) · 1.76 KB
/
Config
File metadata and controls
73 lines (53 loc) · 1.76 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
# compiler executables --------------------------------------------------------
CC = gcc
CXX = g++
# language standard -----------------------------------------------------------
CXXSTD = -std=c++98
# CXXSTD = -std=c++11
# common compiler options -----------------------------------------------------
FLAGS = -pedantic -Wall -Wextra -O3 -fPIC -I../include
SOFLAGS =
# macOS compiler options (uncomment on macOS) ---------------------------------
# SOFLAGS += -undefined dynamic_lookup
# required compiler macros ----------------------------------------------------
# optional compiler macros ----------------------------------------------------
# GECKO_PART_FRAC = 4
# GECKO_CR_SWEEPS = 1
# GECKO_GS_SWEEPS = 1
# GECKO_WINDOW_MAX = 16
# GECKO_WITH_ADJLIST = 0
# GECKO_WITH_NONRECURSIVE = 0
# GECKO_WITH_DOUBLE_PRECISION = 0
# build targets ---------------------------------------------------------------
# default targets
BUILD_UTILITIES = 1
BUILD_TESTING = 1
BUILD_SHARED_LIBS = 0
# build all targets?
ifdef BUILD_ALL
ifneq ($(BUILD_ALL),0)
BUILD_UTILITIES = 1
BUILD_TESTING = 1
endif
endif
# build shared libraries?
ifneq ($(BUILD_SHARED_LIBS),0)
LIBRARY = shared
LIBFPZIP = libgecko.so
else
LIBRARY = static
LIBFPZIP = libgecko.a
endif
# conditionals ----------------------------------------------------------------
ifdef GECKO_WITH_ADJLIST
DEFS += -DGECKO_WITH_ADJLIST=$(GECKO_WITH_ADJLIST)
endif
ifdef GECKO_WITH_NONRECURSIVE
DEFS += -DGECKO_WITH_NONRECURSIVE=$(GECKO_WITH_NONRECURSIVE)
endif
ifdef GECKO_WITH_DOUBLE_PRECISION
DEFS += -DGECKO_WITH_DOUBLE_PRECISION=$(GECKO_WITH_DOUBLE_PRECISION)
endif
# compiler options ------------------------------------------------------------
CFLAGS = $(CSTD) $(FLAGS) $(DEFS)
CXXFLAGS = $(CXXSTD) $(FLAGS) $(DEFS)