From 331633d41e2d6bf2d267f866df61e8a3b3aea768 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Fri, 30 Aug 2019 14:08:19 -0700 Subject: [PATCH] updated makefile to support building for laptops --- dwm-stat/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dwm-stat/Makefile b/dwm-stat/Makefile index 87d0b39..64bdfe1 100644 --- a/dwm-stat/Makefile +++ b/dwm-stat/Makefile @@ -1,5 +1,10 @@ +flags=-O2 -s -lX11 +output=statline stat: - gcc -o statline status.c -O2 -s -lX11 + gcc -o $(output) status.c $(flags) + +laptop: + gcc -D LAPTOP status.c -o $(output) status.c $(flags) clean: rm -f statline