X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/09fe1e22ce65b2478b47fc2cf1bbe9a9eb966212..581ae58b4182c2d472b30d11dbbef813704642f1:/config.mk diff --git a/config.mk b/config.mk index eca6028..216e7df 100644 --- a/config.mk +++ b/config.mk @@ -12,21 +12,17 @@ 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 -# glibc -CPPFLAGS = -DVERSION=\"${VERSION}\" -D_GNU_SOURCE +# uncomment your system # +#SYSTEM = -DLINUX +#SYSTEM = -DOPENBSD +#SYSTEM = -DFREEBSD # flags -#CPPFLAGS = -DVERSION=\"${VERSION}\" -CFLAGS = -Os ${INCS} ${CPPFLAGS} +CPPFLAGS = -DVERSION=\"${VERSION}\" ${SYSTEM} +CFLAGS = -std=c99 -pedantic -Wall -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} # compiler and linker CC = cc