config.mk 580 B

12345678910111213141516171819202122232425
  1. #- aslstatus version -#
  2. VERSION := 0.1.3
  3. CC ?= cc
  4. #- paths -#
  5. PREFIX := /usr
  6. MANPREFIX := ${PREFIX}/share/man
  7. #- flags -#
  8. CPPFLAGS += -D_DEFAULT_SOURCE -DVERSION='"${VERSION}"'
  9. CFLAGS += -std=c99
  10. WARNINGS += -pedantic -Wall -Wextra \
  11. -Wshadow -Wfloat-equal -Wconversion -Wuninitialized
  12. #- linker -#
  13. pkgconf = $(shell pkg-config --libs $1)
  14. LDLIBS := -lpthread -pthread
  15. LDALSA = $(call pkgconf,alsa) # -lasound
  16. LDPULSE = $(call pkgconf,libpulse) -L/usr/lib/pulseaudio
  17. LDXCB = $(call pkgconf,xcb) # -lxcb
  18. LDXCB_XKB = $(call pkgconf,xcb-xkb) # -lxcb-xkb