sync code-style patch from libsl
[dmenu.git] / config.mk
blobb0bd24692f132a9ce61d13700063216e7868d606
1 # dmenu version
2 VERSION = 5.1
4 # paths
5 PREFIX = /usr/local
6 MANPREFIX = $(PREFIX)/share/man
8 X11INC = /usr/X11R6/include
9 X11LIB = /usr/X11R6/lib
11 # Xinerama, comment if you don't want it
12 XINERAMALIBS = -lXinerama
13 XINERAMAFLAGS = -DXINERAMA
15 # freetype
16 FREETYPELIBS = -lfontconfig -lXft
17 FREETYPEINC = /usr/include/freetype2
18 # OpenBSD (uncomment)
19 #FREETYPEINC = $(X11INC)/freetype2
20 #MANPREFIX = ${PREFIX}/man
22 # includes and libs
23 INCS = -I$(X11INC) -I$(FREETYPEINC)
24 LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS)
26 # flags
27 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
28 CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
29 LDFLAGS = $(LIBS)
31 # compiler and linker
32 CC = cc