Introduction
Introduction Statistics Contact Development Disclaimer Help
tRequire autoconf - spoon - dwm status utility (2f30 fork)
git clone git://src.adamsgaard.dk/spoon
Log
Files
Refs
LICENSE
---
commit d3b7e88e03c32c823676e2f9895289af2d399ca4
parent fea90b396a2dae46ac53edc6d09df12be614727c
Author: lostd <[email protected]>
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(-)
---
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)
diff --git a/configure b/configure
t@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "UNAME = $(uname)" > config.mk
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.