From e7a5b19c0ba06e12b0137a7ce5e65a15135d9977 Mon Sep 17 00:00:00 2001 From: clsr Date: Fri, 2 Dec 2016 12:23:24 +0100 Subject: Initial commit --- config.def.mk | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 config.def.mk (limited to 'config.def.mk') diff --git a/config.def.mk b/config.def.mk new file mode 100644 index 0000000..a01d057 --- /dev/null +++ b/config.def.mk @@ -0,0 +1,32 @@ +# dwmclock settings + +# enable battery charge display +CFLAGS+=-DBATTERY + +# set this to the correct path for your current system +CFLAGS+=-DENERGY_FULL=\"/sys/class/power_supply/BAT0/energy_full\" +CFLAGS+=-DENERGY_NOW=\"/sys/class/power_supply/BAT0/energy_now\" + +# possible alternative on some systems +#CFLAGS+=-DENERGY_FULL=\"/sys/class/power_supply/BAT0/charge_full\" +#CFLAGS+=-DENERGY_NOW=\"/sys/class/power_supply/BAT0/charge_now\" + +# every how many seconds to refresh the battery charge display +CFLAGS+=-DBAT_REFRESH_SECONDS=60 + +# this is here for legacy reasons, ignore it +CFLAGS+=-DMUL=1 + + +# make settings + +# default compiler +CC?=gcc + +# compiler flags +CFLAGS+=-std=c99 -Wall -Wextra -pedantic -O2 $(shell pkg-config --cflags x11) +LDFLAGS+=$(shell pkg-config --libs x11) + +# default paths +DESTDIR?=/ +PREFIX?=/usr/local -- cgit