blob: bb500ac2e1c973a9576eb8a1ee529a6780d5e2ac (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# dwm version
VERSION = 6.5
# Customize below to fit your system
# paths
PREFIX = /usr
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}/Xft
FREETYPEINC = /usr/X11R6/include/freetype2
MANPREFIX = ${PREFIX}/man
# includes and libs
#INCS = -I${X11INC} -I${FREETYPEINC}
INCS = -I${X11INC} -I${FREETYPEINC} -I/usr/local/include
#LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} -lfontconfig -lXft -lXrender
#LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} -lfontconfig -lXft -lXrender -lImlib2
#LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} -lfontconfig -lXft -lXrender
#LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} -lfontconfig -lXft -lXrender -lImlib2
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} -lfontconfig -lXft -lXrender -L/usr/local/lib -lImlib2
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
#LDFLAGS = ${LIBS}
LDFLAGS = ${LIBS} -L/usr/lib
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}
# compiler and linker
CC = cc
|