X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=config.mk;h=fe059aa8bd7785fc7f10c0d13db0ca7e6b145d66;hb=8a58b25cb7f239efa2f3df7c8aa088030f12aeda;hp=fe640dc41f76b8bbb85ae0271061663c3b7d007d;hpb=e9f9154ab78f612b21e325d37180d36452b52266;p=sic.git diff --git a/config.mk b/config.mk index fe640dc..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.2 - # 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 = -O3 -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