tsst
[skippy-xd] / Makefile
1 PREFIX = /usr/
2 BINDIR = ${PREFIX}/sbin
3
4 X11PREFIX = /usr/X11R6
5
6 CFLAGS += -I${X11PREFIX}/include `imlib2-config --cflags` `pkg-config xft xrender xcomposite xdamage xfixes --cflags` -g -pedantic -Wall
7 LDFLAGS += -L${X11PREFIX}/lib -lX11 -lm `imlib2-config --libs` `pkg-config xft xrender xcomposite xdamage xfixes --libs`
8
9 # Disable post-processing effects
10 #CFLAGS += -DNOEFFECTS
11
12 # Comment these out to disable Xinerama support
13 #CFLAGS += -DXINERAMA
14 #LDFLAGS += -lXext -lXinerama
15
16 # Uncomment this for Xinerama debugging
17 #CFLAGS += -DDEBUG
18
19 EXESUFFIX =
20
21 SOURCES = skippy.c wm.c dlist.c mainwin.c clientwin.c layout.c focus.c config.c tooltip.c
22 HEADERS = skippy.h wm.h dlist.h mainwin.h clientwin.h layout.h focus.h config.h tooltip.h
23
24 all: skippy-xd${EXESUFFIX}
25
26 skippy-xd${EXESUFFIX}: Makefile ${SOURCES} ${HEADERS}
27         gcc ${CFLAGS} -o skippy-xd${EXESUFFIX} ${SOURCES} ${LDFLAGS}
28
29 clean:
30         rm -f skippy-xd${EXESUFFIX}
31
32 install:
33         install -d ${DESTDIR}${BINDIR}
34         install -m 755 skippy-xd$(EXESUFFIX) ${DESTDIR}${BINDIR}/skippy-xd${EXESUFFIX}