sxhkd-rc

[fork] simple X hotkey daemon (but for the rc shell)
Log | Files | Refs | README | LICENSE

commit 91807f2b03c7af749427082418bcb56d44900990
parent 31501de6188d753a5ff1b5342383f20f8e9a3eca
Author: Bastien Dejean <nihilhill@gmail.com>
Date:   Fri, 18 Dec 2015 22:38:23 +0100

Simplify Makefile

Diffstat:
MMakefile | 25+++++++++----------------
AVERSION | 2++
2 files changed, 11 insertions(+), 16 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,36 +1,29 @@ NAME = sxhkd -VERSION = 0.5.5 +VERSION = $(shell git describe || cat VERSION) -CC ?= gcc -LIBS = -lm -lxcb -lxcb-keysyms -CFLAGS += -std=c99 -pedantic -Wall -Wextra -I$(PREFIX)/include -CFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\" -LDFLAGS += -L$(PREFIX)/lib +CPPFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\" +CFLAGS += -std=c99 -pedantic -Wall -Wextra +LDLIBS = -lxcb -lxcb-keysyms PREFIX ?= /usr/local -BINPREFIX = $(PREFIX)/bin -MANPREFIX = $(PREFIX)/share/man -DOCPREFIX = $(PREFIX)/share/doc/$(NAME) +BINPREFIX ?= $(PREFIX)/bin +MANPREFIX ?= $(PREFIX)/share/man +DOCPREFIX ?= $(PREFIX)/share/doc/$(NAME) SRC = $(wildcard *.c) OBJ = $(SRC:.c=.o) -all: CFLAGS += -Os -all: LDFLAGS += -s all: $(NAME) -debug: CFLAGS += -O0 -g -DDEBUG +debug: CFLAGS += -O0 -g +debug: CPPFLAGS += -DDEBUG debug: $(NAME) include Sourcedeps $(OBJ): Makefile -.c.o: - $(CC) $(CFLAGS) $(OPTFLAGS) -c -o $@ $< - $(NAME): $(OBJ) - $(CC) -o $@ $(OBJ) $(LDFLAGS) $(LIBS) install: mkdir -p "$(DESTDIR)$(BINPREFIX)" diff --git a/VERSION b/VERSION @@ -0,0 +1 @@ +0.5.5 +\ No newline at end of file