cstring

Lightweight string library for C
git clone git://git.margiolis.net/cstring.git
Log | Files | Refs | README | LICENSE

config.mk (531B)


      1 # See LICENSE file for copyright and license details.
      2 # cstring version
      3 VERSION = 0.1
      4 
      5 # paths
      6 PREFIX = /usr/local
      7 MANPREFIX = ${PREFIX}/share/man
      8 # OpenBSD
      9 #MANPREFIX = ${PREFIX}/man
     10 INCDIR = ${PREFIX}/include
     11 LIBDIR = ${PREFIX}/lib
     12 
     13 # includes and libs
     14 INCS = -Iinclude
     15 LIBS = -Llib
     16 
     17 # flags
     18 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L \
     19 	   -D_XOPEN_SOURCE=700 -DVERSION=\"${VERSION}\"
     20 CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
     21 LDFLAGS = ${LIBS}
     22 ARFLAGS = rs
     23 
     24 # compiler
     25 CC = cc
     26 AR = ar