X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=config.mk;h=f0c7e2e61c2d072eeb5c8a434fcb5f9236c91b9b;hp=2827e980d9ae39cc983f7140ace949401afe81c4;hb=bef87acd0d0e22ba4689be6f1c39ce2d90812317;hpb=c56332857145d1c6741d4f6c1bbc87dcc6c6ab97 diff --git a/config.mk b/config.mk index 2827e98..f0c7e2e 100644 --- a/config.mk +++ b/config.mk @@ -12,16 +12,19 @@ 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 + +# uncomment manualy your system if compilation fail +SYSTEM = -D`uname | tr a-z A-Z` +#SYSTEM = -DLINUX +#SYSTEM = -DOPENBSD +#SYSTEM = -DFREEBSD +#SYSTEM = -DNETBSD # flags -CPPFLAGS = -DVERSION=\"${VERSION}\" +CPPFLAGS = -DVERSION=\"${VERSION}\" ${SYSTEM} CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} LDFLAGS = -s ${LIBS} -# Solaris -#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" -#LDFLAGS = ${LIBS} - # compiler and linker CC = cc