spoon

set dwm status
git clone git://git.2f30.org/spoon.git
Log | Files | Refs | LICENSE

commit d3b7e88e03c32c823676e2f9895289af2d399ca4
parent fea90b396a2dae46ac53edc6d09df12be614727c
Author: lostd <lostd@2f30.org>
Date:   Thu Oct 13 00:01:47 +0100

Require autoconf

Diffstat:
Makefile | 17++++++++++-------
configure | 3+++
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,16 +1,19 @@ VERSION = 0.2 PREFIX = /usr/local -CPPFLAGS = -I/usr/X11R6/include -I/usr/local/include -LDFLAGS = -L/usr/X11R6/lib -L/usr/local/lib -LDLIBS = -lxkbfile -lX11 -lmpdclient DISTFILES = spoon.c batt.c wifi.c strlcpy.c strlcat.c util.h config.def.h\ - Makefile LICENSE + Makefile LICENSE configure OBJ = spoon.o batt.o wifi.o strlcpy.o strlcat.o BIN = spoon -# Linux -#CPPFLAGS += -DPATH_BAT_CAP=\"/sys/class/power_supply/BAT0/capacity\" -#CPPFLAGS += -DPATH_AC_ONLINE=\"/sys/class/power_supply/AC/online\" +include config.mk + +CPPFLAGS_OpenBSD = -I/usr/X11R6/include -I/usr/local/include +LDFLAGS_OpenBSD = -L/usr/X11R6/lib -L/usr/local/lib +CPPFLAGS_Linux = -DPATH_BAT_CAP=\"/sys/class/power_supply/BAT0/capacity\"\ + -DPATH_AC_ONLINE=\"/sys/class/power_supply/AC/online\" +CPPFLAGS = $(CPPFLAGS_$(UNAME)) +LDFLAGS = $(LDFLAGS_$(UNAME)) +LDLIBS = -lxkbfile -lX11 -lmpdclient all: $(BIN) diff --git a/configure b/configure @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "UNAME = $(uname)" > config.mk