3 # you may want to change these
4 OPTIONAL = xinerama xft
5 CDEFS = -DUSE_XINERAMA -DUSE_XFT -DUSE_STRCASESTR
7 # you may not want to change these
9 LIBS = `pkg-config --libs x11 ${OPTIONAL}`
11 CFLAGS = ${CDEFS} -DVERSION=\"$(VERSION)\" `pkg-config --cflags x11 ${OPTIONAL}`
13 .PHONY: all clean install debug no_xft no_xinerama no_xft_xinerama gnu
17 mymenu: mymenu.c mymenu.1.md
18 $(CC) $(CFLAGS) mymenu.c -o mymenu $(LIBS) ${OPTIM}
21 mandoc -T markdown mymenu.1 > mymenu.1.md
24 make CDEFS="-D_GNU_SOURCE ${CDEFS}"
27 make OPTIM="-g -O0 -Wall"
30 make OPTIONAL="xinerama" CDEFS="-DUSE_XINERAMA -DUSE_STRCASESTR"
33 make OPTIONAL="xft" CDEFS="-DUSE_XFT -DUSE_STRCASESTR"
35 no_xft_xinerama: mymenu.c
36 make OPTIONAL="" CDEFS="-DUSE_STRCASESTR"