xbattmon

simple battery monitor for X
git clone git://git.2f30.org/xbattmon
Log | Files | Refs | README | LICENSE

commit 0835355bd8ac0e815dbfdad9f859c9c63b2f5eb2
parent 3ff02bce19f468f0497752b0bf8354a9bb9953c7
Author: Quentin Rameau <quinq@fifth.space>
Date:   Wed, 12 Sep 2018 18:36:08 +0200

Introduce global config.mk

Diffstat:
MMakefile | 5+++--
Aconfig.mk | 3+++
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,6 +3,7 @@ VERSION = 1.1 include config.os.mk +include config.mk OBJ = strtonum.o xbattmon.o BIN = xbattmon @@ -10,10 +11,10 @@ BIN = xbattmon all: $(BIN) $(BIN): $(OBJ) - $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS) + $(CC) $(LDFLAGS) -o $@ $(OBJ) $(_LDLIBS) .c.o: - $(CC) $(CFLAGS) $(CPPFLAGS) -c $< + $(CC) $(_CFLAGS) $(_CPPFLAGS) -c $< xbattmon.o: arg.h config.h diff --git a/config.mk b/config.mk @@ -0,0 +1,3 @@ +_CPPFLAGS = $(CPPFLAGS) +_CFLAGS = -Os $(CFLAGS) +_LDLIBS = $(LDLIBS)