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) run: ./statline clean: rm -f statline install: ln -s $(shell pwd)/statline /usr/bin/statline