-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.mk
58 lines (43 loc) · 1.51 KB
/
config.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
46
47
48
49
50
51
52
53
54
55
56
57
58
# Customize below to fit your system
# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
XINERAMAFLAGS = -DXINERAMA
# freetype
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = ${X11INC}/freetype2
#kvm to swallow on bsd
#KVMLIB = -lkvm
# debug
#DEBUG = -DDEBUG
# Icons, comment if you don't want it
ICONS = -DICONS
# Tag previews, comment if you don't want it
#TAG_PREVIEW = -DTAG_PREVIEW
# imlib2, dependency of ICONS and TAG_PREVIEW
IMLIB2LIBS = -lImlib2
# Systray, comment if you don't want it
SYSTRAY = -DSYSTRAY
# XCB libs, required by swallow
XCBLIBS = -lX11-xcb -lxcb -lxcb-res
# includes and libs
INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lXrender ${XCBLIBS} ${KVMLIB} ${IMLIB2LIBS}
# flags
O_BASIC = -march=native -Ofast -flto=auto
CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${SRCVERSION}\" ${XINERAMAFLAGS} ${ICONS} ${SYSTRAY} ${TAG_PREVIEW} ${TAGNUM} ${DEBUG}
CFLAGS = -std=c99 -pedantic -Wall -Wno-unused-function -Wno-unused-variable ${O_BASIC} ${INCS} ${CPPFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -Wextra -Wno-unused-function -Og ${INCS} ${CPPFLAGS} -flto -fsanitize=address,undefined,leak
LDFLAGS = ${LIBS}
#LDFLAGS = -g ${LIBS} ${CFLAGS}
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}
# compiler and linker
CC = cc