A tiling window manager
at master 47 lines 934 B view raw
1VERSION= 1.7 2 3VERSION!= [ -d .git ] && \ 4 echo "git-`git rev-list --abbrev-commit --tags --max-count=1`" || \ 5 echo "${VERSION}" 6 7CC?= cc 8PREFIX?= /usr/local 9PKGLIBS= x11 xft xrandr xtst xres freetype2 10CFLAGS+= -O2 -Wall \ 11 -Wunused -Wmissing-prototypes -Wstrict-prototypes \ 12 `pkg-config --cflags ${PKGLIBS}` \ 13 -DVERSION=\"${VERSION}\" 14LDFLAGS+= `pkg-config --libs ${PKGLIBS}` 15 16# uncomment to enable debugging 17#CFLAGS+= -g -DDEBUG=1 18# and this for subsystem-specific debugging 19#CFLAGS+= -DINPUT_DEBUG=1 20#CFLAGS+= -DSENDCMD_DEBUG=1 21 22BINDIR= ${DESTDIR}$(PREFIX)/bin 23MANDIR?= ${DESTDIR}$(PREFIX)/man/man1 24 25SRC!= ls *.c 26OBJ= ${SRC:.c=.o} 27 28BIN= sdorfehs 29MAN= sdorfehs.1 30 31all: sdorfehs 32 33sdorfehs: $(OBJ) 34 $(CC) -o $@ $(OBJ) $(LDFLAGS) 35 36install: all 37 mkdir -p $(BINDIR) $(MANDIR) 38 install -s $(BIN) $(BINDIR) 39 install -m 644 $(MAN) $(MANDIR) 40 41regress: 42 scan-build $(MAKE) 43 44clean: 45 rm -f $(BIN) $(OBJ) 46 47.PHONY: all install clean