]> git.armaanb.net Git - sic.git/blobdiff - config.mk
updated sic
[sic.git] / config.mk
index 6b4511212852c53d433abaea964f40684b5ec0c0..fe059aa8bd7785fc7f10c0d13db0ca7e6b145d66 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -1,15 +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.0
-
 # 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      = -g -Wall -O2 -I${PREFIX}/include -I/usr/include \
-                       -DVERSION=\"${VERSION}\"
-LDFLAGS     = -g ${LIBS}
+# compiler and linker
+CC = cc