X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=config.mk;h=fe059aa8bd7785fc7f10c0d13db0ca7e6b145d66;hb=8a58b25cb7f239efa2f3df7c8aa088030f12aeda;hp=78fe6f85c1f5b6d604e67aa050232ebd41487a1c;hpb=e86d1bcf0ae7df29c4fc10fd61af2a829e542118;p=sic.git diff --git a/config.mk b/config.mk index 78fe6f8..fe059aa 100644 --- a/config.mk +++ b/config.mk @@ -1,18 +1,20 @@ -# Customize to fit your system +# sic version +VERSION = 1.0 + +# Customize below to fit your system # paths PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man -VERSION = 0.1 - # includes and libs -LIBS = -L${PREFIX}/lib -L/usr/lib -lc +INCS = -I. -I/usr/include +LIBS = -L/usr/lib -lc + +# flags +CPPFLAGS = -DVERSION=\"${VERSION}\" -D_GNU_SOURCE +CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +LDFLAGS = -s ${LIBS} -# compiler -CFLAGS = -Os -I${PREFIX}/include -I/usr/include \ - -DVERSION=\"${VERSION}\" -LDFLAGS = ${LIBS} -#CFLAGS = -g -Wall -O2 -I${PREFIX}/include -I/usr/include \ -# -DVERSION=\"${VERSION}\" -#LDFLAGS = -g ${LIBS} +# compiler and linker +CC = cc