1# echinus wm version
2VERSION = 0.4.9
3
4# Customize below to fit your system
5
6# paths
7PREFIX?= /usr/local
8BINPREFIX?= ${PREFIX}/bin
9MANPREFIX?= ${PREFIX}/share/man
10CONFPREFIX?= ${PREFIX}/etc/echinus/
11DOCPREFIX?= ${PREFIX}/share/doc
12CONF?= ${CONFPREFIX}
13
14X11INC = /usr/local/include
15X11LIB = /usr/local/lib
16
17# includes and libs
18INCS = -I. -I/usr/include -I${X11INC} `pkg-config --cflags xft`
19LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `pkg-config --libs xft`
20
21DEFS = -DVERSION=\"${VERSION}\" -DSYSCONFPATH=\"${CONF}\"
22
23# flags
24CFLAGS = -pipe -O2 -fno-strict-aliasing  ${INCS} ${DEFS}
25LDFLAGS = -s ${LIBS}
26# debug flags
27#CFLAGS = -g3 -ggdb3 -std=c99 -pedantic -O0 ${INCS} -DDEBUG ${DEFS}
28#LDFLAGS = -g3 -ggdb3 ${LIBS}
29
30# DEBUG: Show warnings (if any). Comment out to disable.
31#CFLAGS += -Wall -Wpadded
32# mostly useless warnings
33#CFLAGS += -W -Wcast-qual -Wshadow -Wwrite-strings
34#CFLAGS += -Werror        # Treat warnings as errors.
35#CFLAGS += -save-temps    # Keep precompiler output (great for debugging).
36
37# XRandr (multihead support). Comment out to disable.
38CFLAGS += -DXRANDR=1
39LIBS += -lXrandr
40
41# Solaris
42#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
43#LDFLAGS = ${LIBS}
44#CFLAGS += -xtarget=ultra
45
46# compiler and linker
47CC?= cc
48