tRequire autoconf - spoon - dwm status utility (2f30 fork)
 (HTM) git clone git://src.adamsgaard.dk/spoon
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit d3b7e88e03c32c823676e2f9895289af2d399ca4
 (DIR) parent fea90b396a2dae46ac53edc6d09df12be614727c
 (HTM) Author: lostd <lostd@2f30.org>
       Date:   Thu, 13 Oct 2016 00:01:47 +0100
       
       Require autoconf
       
       Diffstat:
         M Makefile                            |      17 ++++++++++-------
         A configure                           |       3 +++
       
       2 files changed, 13 insertions(+), 7 deletions(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       t@@ -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)
        
 (DIR) diff --git a/configure b/configure
       t@@ -0,0 +1,3 @@
       +#!/bin/sh
       +
       +echo "UNAME = $(uname)" > config.mk