added cpu usage to statline

makefile now has configurable options
This commit is contained in:
shockrahwow
2019-09-03 11:39:59 -07:00
parent 8f5152206b
commit c3917e34b1
2 changed files with 46 additions and 6 deletions

View File

@@ -1,11 +1,19 @@
# Here are the configuraable options
# LAPTOP : enable batter level
# CPU_USAGE : CPU usage in percentage
# DEBUG : for fixing issues
# NOTE: the -D is needed for gcc
# MFLAGS= -D MY_OPTION -D ANOTHER_OPT ...
MFLAGS=-D LAPTOP -D CPU_USAGE
flags=-O2 -s -lX11
output=statline
stat:
gcc -o $(output) status.c $(flags)
laptop:
# compiling with LAPTOP=1
gcc -D LAPTOP=1 status.c -o $(output) $(flags)
stat:
gcc $(MFLAGS) -o $(output) status.c $(flags)
run:
./statline