-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.mk
58 lines (42 loc) · 1.22 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
# dwm version
VERSION = 6.0
# Customize below to fit your system
# paths
PREFIX = /usr/home/allie
MANPREFIX = ${PREFIX}/.share/man
BINDIR=.bin
#X11INC = /usr/X11R6/include
#X11LIB = /usr/X11R6/lib
X11INC = /usr/local/include
X11LIB = /usr/local/lib
#X11INC = /usr/include/X11
#X11LIB = /usr/lib/X11
# Xinerama
XINERAMALIBS = -L${X11LIB} -lXinerama
XINERAMAFLAGS = -DXINERAMA
# enable transparency.
DEFINES = -DWITH_OPACITY
DEFINES += -DVERSION=\"${VERSION}\"
DEFINES += -DWITH_PANGO
# Xft
#XFTINCS = -I${X11INC}/freetype2 -I/usr/include/freetype2
#XFTLIBS = -L${X11LIB} -lXft
XFTINCS = `pkg-config --cflags xft`
XFTLIBS = `pkg-config --libs xft`
# pango libs
PANGOINCS = `pkg-config --cflags pango pangoxft`
PANGOLIBS = `pkg-config --libs pango pangoxft`
#includes and libs
INCS = -I. -I/usr/include -I${X11INC} ${XFTINCS} ${PANGOINCS}
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} ${XFTLIBS} ${PANGOLIBS}
# flags
CPPFLAGS = ${DEFINES} ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
#LDFLAGS = -g ${LIBS}
LDFLAGS = -s ${LIBS}
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}
# compiler and linker
CC ?= cc