config.mk 810 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. NAME = dwmstatus
  2. VERSION = 1.2
  3. # Customize below to fit your system
  4. # paths
  5. PREFIX = /usr
  6. MANPREFIX = ${PREFIX}/share/man
  7. X11INC = /usr/X11R6/include
  8. X11LIB = /usr/X11R6/lib
  9. MPDLIB = $(shell pkg-config --libs libmpdclient)
  10. MPDFLAG = -DMPD
  11. GLIBLIB = $(shell pkg-config --libs glib-2.0)
  12. GLIBFLAG = $(shell pkg-config --cflags glib-2.0)
  13. # includes and libs
  14. INCS = -I. -I/usr/include -I${X11INC} ${GLIBFLAG}
  15. LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${MPDLIB} ${GLIBLIB}
  16. # flags
  17. CPPFLAGS = -DVERSION=\"${VERSION}\" ${MPDFLAG}
  18. # CFLAGS = -ggdb -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
  19. CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
  20. # LDFLAGS = -ggdb ${LIBS}
  21. LDFLAGS = -s ${LIBS}
  22. # Solaris
  23. #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
  24. #LDFLAGS = ${LIBS}
  25. # compiler and linker
  26. CC = cc