aboutsummaryrefslogtreecommitdiffstats
path: root/options.mk
blob: 34c66979c83cf2d64321554f2722d53fd8590d9e (plain)
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
# options.mk

# Locations of the data, players and games directories.
FICS_HOME ?= /home/chess/config

PREFIX ?= /home/chess

CC ?= cc
CFLAGS = -O2 -Wall -g -pipe -std=c11 \
	-Wsign-compare \
	-Wstrict-prototypes

CXX ?= c++
CXXFLAGS = -O2 -Wall -g -pipe -std=c++17

# C preprocessor flags
CPPFLAGS = -D_DEFAULT_SOURCE=1 -D_FORTIFY_SOURCE=3

LDFLAGS =
LDLIBS = -lbsd -lcrypt
RM ?= @rm -f

E = @echo
Q = @

# addplayer
AP_LDFLAGS =
AP_LDLIBS = -lbsd -lcrypt

# makerank
MR_LDFLAGS =
MR_LDLIBS = -lbsd