-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.ninja
50 lines (39 loc) · 1.37 KB
/
config.ninja
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
# The current sei version which is generally in sync with the current dwm
# version
VERSION = 6.4
# Paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
# X11
X11INC = /usr/include/X11
X11LIB = /usr/lib/X11
# libXinerama
XINERAMALIBS = -lXinerama
XINERAMAFLAGS = -DXINERAMA
# FreeType2
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/include/freetype2
# OpenBSD
# MANPREFIX = ${PREFIX}/man
# FREETYPEINC = ${X11INC}/freetype2
# GNU FriBidi
BDLIBS = -lfribidi
BDINC = /usr/include/fribidi
INCS = -I${X11INC} -I${FREETYPEINC} -I${BDINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lX11-xcb -lxcb -lxcb-res -lXext ${BDLIBS} -lXrender -lImlib2
# Flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L $
-DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -O3 $
-march=native -flto=auto -ffunction-sections -fdata-sections $
-fomit-frame-pointer -fno-exceptions $
-fno-asynchronous-unwind-tables -fno-unwind-tables ${INCS} $
${CPPFLAGS}
LDFLAGS = ${LIBS}
# Solaris
# CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
# LDFLAGS = ${LIBS}
# Compiler
CC = $${CC:-cc}
# clang-tidy
CLANG_TIDY_CHECKS='-*,bugprone-*,clang-analyzer-*,concurrency-*,cppcoreguildelines-*,llvm-*,misc-*,modernize-*,performance-*,portability-*,readability-*'