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} -DVERSION=\"$(VERSION)\" `pkg-config --cflags x11 ${OPTIONAL}`
13 .PHONY: all clean install debug no_xft no_xinerama no_xft_xinerama gnu
15 all: mymenu
17 mymenu: mymenu.c
18 $(CC) $(CFLAGS) mymenu.c -o mymenu $(LIBS) ${OPTIM}
20 gnu: mymenu.c
21 make CDEFS="-D_GNU_SOURCE ${CDEFS}"
23 debug:
24 make OPTIM="-g -O0 -Wall"
26 no_xft: mymenu.c
27 make OPTIONAL="xinerama" CDEFS="-DUSE_XINERAMA -DUSE_STRCASESTR"
29 no_xinerama: mymenu.c
30 make OPTIONAL="xft" CDEFS="-DUSE_XFT -DUSE_STRCASESTR"
32 no_xft_xinerama: mymenu.c
33 make OPTIONAL="" CDEFS="-DUSE_STRCASESTR"
35 clean:
36 rm -f mymenu
38 install: mymenu
39 cp mymenu ~/bin