xbattmon

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

commit cdb7cdd850c98c487e0aa3cd415fac99af7d2d64
parent 0c5b62f46a2508a5893169f0737d2beb3186bb96
Author: lostd <lostd@2f30.org>
Date:   Thu,  6 Nov 2014 01:38:58 +0200

Use implicit make rules

Diffstat:
MMakefile | 6+-----
Mconfig.bsd | 5+++--
Mconfig.linux | 1-
3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,13 +1,9 @@ include config.mk -OBJ = xbattmon.o BIN = xbattmon all: $(BIN) -$(BIN): $(OBJ) - $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS) - xbattmon.o: arg.h config.h install: all @@ -21,7 +17,7 @@ uninstall: rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1 clean: - rm -f $(BIN) $(OBJ) + rm -f $(BIN) $(BIN).o .SUFFIXES: .def.h diff --git a/config.bsd b/config.bsd @@ -1,5 +1,6 @@ PREFIX = /usr/local MANPREFIX = $(PREFIX)/man -CFLAGS = -I/usr/X11R6/include -LDLIBS = -L/usr/X11R6/lib -lX11 +CPPFLAGS = -I/usr/X11R6/include +LDFLAGS = -L/usr/X11R6/lib +LDLIBS = -lX11 diff --git a/config.linux b/config.linux @@ -1,5 +1,4 @@ PREFIX = /usr/local MANPREFIX = $(PREFIX)/man -CFLAGS = LDLIBS = -lX11 -lbsd