X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.mk;h=e62e033ed82c2a9fb19fa332c309625344175fe0;hb=3d3b105de7cfd228109f23c21698afda961891b6;hp=467efce760aa4654e66fc62480458fbf9c2147c6;hpb=b29a8f535675c63a74c504ab64d15dede6deca4a;p=surf.git diff --git a/config.mk b/config.mk index 467efce..e62e033 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ # surf version -VERSION = 0.3 +VERSION = 0.5 # Customize below to fit your system @@ -7,18 +7,21 @@ VERSION = 0.3 PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man -GTKINC=$(shell pkg-config --cflags gtk+-2.0 webkit-1.0) -GTKLIB=$(shell pkg-config --libs gtk+-2.0 webkit-1.0) +X11INC = /usr/X11R6/include +X11LIB = /usr/X11R6/lib +GTKINC = `pkg-config --cflags gtk+-2.0 webkit-1.0` +GTKLIB = `pkg-config --libs gtk+-2.0 webkit-1.0` # includes and libs -INCS = -I. -I/usr/include ${GTKINC} -LIBS = -L/usr/lib -lc ${GTKLIB} -lgthread-2.0 +INCS = -I. -I/usr/include -I${X11INC} ${GTKINC} +LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0 \ + -ljavascriptcoregtk-1.0 # flags CPPFLAGS = -DVERSION=\"${VERSION}\" CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} -LDFLAGS = -s ${LIBS} +LDFLAGS = -g ${LIBS} # Solaris #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"