3 # you may want to change these
4 OPTIONAL = xinerama xft
5 CDEFS = -DUSE_XINERAMA -DUSE_XFT -DUSE_STRCASESTR
7 # decomment if you're using OpenBSD to add pledge(2) support
8 #CDEFS += -DHAVE_PLEDGE
10 # you may not want to change these
12 LIBS = `pkg-config --libs x11 $(OPTIONAL)`
14 CFLAGS = $(CDEFS) -DVERSION=\"$(VERSION)\" `pkg-config --cflags x11 $(OPTIONAL)`
16 .PHONY: all clean install debug no_xft no_xinerama no_xft_xinerama gnu manpage
21 $(CC) $(CFLAGS) mymenu.c -o mymenu $(LIBS) $(OPTIM)
26 mandoc -T markdown mymenu.1 > mymenu.1.md
29 make CDEFS="-D_GNU_SOURCE $(CDEFS)"
32 make OPTIM="-g -O0 -Wall"
35 make OPTIONAL="xinerama" CDEFS="-DUSE_XINERAMA -DUSE_STRCASESTR"
38 make OPTIONAL="xft" CDEFS="-DUSE_XFT -DUSE_STRCASESTR"
40 no_xft_xinerama: mymenu.c
41 make OPTIONAL="" CDEFS="-DUSE_STRCASESTR"