cio

a simple irc client
git clone git://kloet.net/cio
Download | Log | Files | Refs | README | LICENSE

config.mk (891B)


      1 # cio version
      2 VERSION = 1.2
      3 
      4 # Customize below to fit your system
      5 
      6 # paths
      7 PREFIX = /usr/local
      8 MANPREFIX = ${PREFIX}/share/man
      9 PKG_CONFIG = $(shell command -v pkgconf || command -v pkg-config)
     10 
     11 NCURSESINC = $(shell ${PKG_CONFIG} --cflags-only-I ncursesw)
     12 NCURSESLIB = $(shell ${PKG_CONFIG} --libs ncursesw)
     13 # OpenBSD (uncomment)
     14 #NCURSESINC =
     15 #NCURSESLIB = -lncursesw
     16 
     17 OPENSSLINC = $(shell ${PKG_CONFIG} --cflags-only-I openssl)
     18 OPENSSLLIB = $(shell ${PKG_CONFIG} --libs openssl)
     19 
     20 # includes and libs
     21 INCS = ${NCURSESINC} ${OPENSSLINC}
     22 LIBS = ${NCURSESLIB} ${OPENSSLLIB}
     23 
     24 # flags
     25 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -D_XOPEN_SOURCE=700L \
     26            -DVERSION=\"${VERSION}\"
     27 CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} \
     28            ${CPPFLAGS}
     29 #CFLAGS   = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
     30 LDFLAGS  = ${LIBS}
     31 
     32 CC ?= cc