X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.mk;h=b41a949c4c0f57715f9c02c2867010d5541b6bd3;hb=1bb7398f4b9e38e1c42157717a9dc420bc645d2d;hp=62eb48fef13198e1a4669b8208793546510d0cc0;hpb=d58dd3b8bc42ed31232e4145696d7dacb117a31c;p=st.git diff --git a/config.mk b/config.mk index 62eb48f..b41a949 100644 --- a/config.mk +++ b/config.mk @@ -10,22 +10,20 @@ MANPREFIX = ${PREFIX}/share/man X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib -# Xinerama, comment if you don't want it -#XINERAMALIBS = -L${X11LIB} -lXinerama -#XINERAMAFLAGS = -DXINERAMA - # includes and libs INCS = -I. -I/usr/include -I${X11INC} -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} +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 # flags -CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +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