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 # decomment if you're using OpenBSD to add pledge(2) support
8 #CDEFS += -DHAVE_PLEDGE
10 # you may not want to change these
11 CC ?= cc
12 LIBS = `pkg-config --libs x11 $(OPTIONAL)`
13 OPTIM = -O3
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
18 all: mymenu
20 mymenu: mymenu.c
21 $(CC) $(CFLAGS) mymenu.c -o mymenu $(LIBS) $(OPTIM)
23 manpage: mymenu.1.md
25 mymenu.1.md: mymenu.1
26 mandoc -T markdown mymenu.1 > mymenu.1.md
28 gnu: mymenu.c
29 make CDEFS="-D_GNU_SOURCE $(CDEFS)"
31 debug:
32 make OPTIM="-g -O0 -Wall"
34 no_xft: mymenu.c
35 make OPTIONAL="xinerama" CDEFS="-DUSE_XINERAMA -DUSE_STRCASESTR"
37 no_xinerama: mymenu.c
38 make OPTIONAL="xft" CDEFS="-DUSE_XFT -DUSE_STRCASESTR"
40 no_xft_xinerama: mymenu.c
41 make OPTIONAL="" CDEFS="-DUSE_STRCASESTR"
43 clean:
44 rm -f mymenu
46 install: mymenu
47 cp mymenu ~/bin