added cpu usage to statline
makefile now has configurable options
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user