.POSIX: PREFIX = /usr/local CC = cc dwmblocks: dwmblocks.o $(CC) -march=tigerlake -O3 -pipe dwmblocks.o -L/usr/local/lib -lX11 -o dwmblocks dwmblocks.o: dwmblocks.c config.h $(CC) -std=c99 -Wall -Wextra -pedantic -I/usr/local/include -march=tigerlake -O3 -pipe -c dwmblocks.c clean: rm -f *.o *.gch dwmblocks install: dwmblocks mkdir -p $(DESTDIR)$(PREFIX)/bin cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks .PHONY: clean install uninstall