Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
802 B

4 years ago
  1. #PREFIX := /usr/local
  2. PREFIX := ${HOME}/.local
  3. CC := gcc
  4. CFLAGS := -O3 -Wall -Wextra
  5. CFLAGSEXTRA := -Wno-missing-field-initializers -Wno-unused-parameter
  6. X11CFLAGS := $(shell pkg-config --cflags x11)
  7. X11LIBS := $(shell pkg-config --libs x11)
  8. all: dwmblocks sigdwmblocks
  9. dwmblocks: dwmblocks.c blocks.h
  10. ${CC} -o $@ ${CFLAGS} ${CFLAGSEXTRA} ${X11CFLAGS} $< ${X11LIBS}
  11. sigdwmblocks: sigdwmblocks.c
  12. ${CC} -o $@ ${CFLAGS} $<
  13. xgetrootname: xgetrootname.c
  14. ${CC} -o $@ ${CFLAGS} ${X11CFLAGS} $< ${X11LIBS}
  15. clean:
  16. rm -f dwmblocks sigdwmblocks
  17. install: all
  18. install -m 0755 dwmblocks ${DESTDIR}${PREFIX}/dwmblocks
  19. install -m 0755 sigdwmblocks ${DESTDIR}${PREFIX}/sigdwmblocks
  20. uninstall:
  21. rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks ${DESTDIR}${PREFIX}/sigdwmblocks
  22. .PHONY: all clean install uninstall