X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.mk;h=01a377916c2b87253f8f1cd259728419aa56fd99;hb=1ab42fd49e68a11bfbbe5990ebdab2d3ca502178;hp=224bbbf41e60b83a868ecf2dbef6892e149e5660;hpb=b8f79f0ed0db553745798cd4fb43329ba5c61cef;p=st.git diff --git a/config.mk b/config.mk index 224bbbf..01a3779 100644 --- a/config.mk +++ b/config.mk @@ -12,18 +12,12 @@ X11LIB = /usr/X11R6/lib # includes and libs INCS = -I. -I/usr/include -I${X11INC} -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 +LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil # flags CPPFLAGS = -DVERSION=\"${VERSION}\" -CFLAGS = -Os ${INCS} ${CPPFLAGS} -LDFLAGS = -s ${LIBS} -#CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} ${CPPFLAGS} -#LDFLAGS = -g ${LIBS} - -# Solaris -#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" -#LDFLAGS = ${LIBS} +CFLAGS += -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +LDFLAGS += -s ${LIBS} # compiler and linker -CC = cc +CC ?= cc