Blob


1 VERSION = 0.1
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
8 CC ?= cc
9 LIBS = `pkg-config --libs x11 $(OPTIONAL)`
10 OPTIM = -O3
11 CFLAGS = $(CDEFS) -std=c89 -DVERSION=\"$(VERSION)\" `pkg-config --cflags x11 $(OPTIONAL)`
13 .PHONY: all clean install debug no_xft no_xinerama no_xft_xinerama gnu manpage
15 all: mymenu
17 mymenu: mymenu.c
18 $(CC) $(CFLAGS) mymenu.c -o mymenu $(LIBS) $(OPTIM)
20 manpage: mymenu.1.md
22 mymenu.1.md: mymenu.1
23 mandoc -T markdown mymenu.1 > mymenu.1.md
25 gnu: mymenu.c
26 make CDEFS="-D_GNU_SOURCE $(CDEFS)"
28 debug:
29 make OPTIM="-g -O0 -Wall"
31 no_xft: mymenu.c
32 make OPTIONAL="xinerama" CDEFS="-DUSE_XINERAMA -DUSE_STRCASESTR"
34 no_xinerama: mymenu.c
35 make OPTIONAL="xft" CDEFS="-DUSE_XFT -DUSE_STRCASESTR"
37 no_xft_xinerama: mymenu.c
38 make OPTIONAL="" CDEFS="-DUSE_STRCASESTR"
40 clean:
41 rm -f mymenu
43 install: mymenu
44 cp mymenu ~/bin