diff options
author | Karel Kočí <cynerd@email.cz> | 2017-12-03 12:37:26 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-12-03 12:44:24 +0100 |
commit | 832fb2c5d9ff57fb96d6534a09601e25a82898b4 (patch) | |
tree | 052104a50b224c1234e033581ef614db166cb238 | |
parent | c8dda2a06cd60ccef8b4d50b3d37306acd7f3b08 (diff) | |
download | surf-832fb2c5d9ff57fb96d6534a09601e25a82898b4.tar.gz surf-832fb2c5d9ff57fb96d6534a09601e25a82898b4.tar.bz2 surf-832fb2c5d9ff57fb96d6534a09601e25a82898b4.zip |
Change some compilation options for gentoo
-rw-r--r-- | config.mk | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,22 +1,22 @@ # surf version VERSION = 2.0 -# Customize below to fit your system +PKG_CONFIG ?= pkg-config # paths -PREFIX = /usr/local +PREFIX = /usr MANPREFIX = $(PREFIX)/share/man LIBPREFIX = $(PREFIX)/lib/surf -X11INC = /usr/X11R6/include -X11LIB = /usr/X11R6/lib +X11INC = $(shell $(PKG_CONFIG) --cflags x11) +X11LIB = $(shell $(PKG_CONFIG) --libs x11) -GTKINC = `pkg-config --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0` -GTKLIB = `pkg-config --libs gtk+-3.0 gcr-3 webkit2gtk-4.0` +GTKINC = $(shell $(PKG_CONFIG) --cflags gtk+-3.0 gthread-2.0 gcr-3 webkit2gtk-4.0) +GTKLIB = $(shell $(PKG_CONFIG) --libs gtk+-3.0 gthread-2.0 gcr-3 webkit2gtk-4.0) # includes and libs -INCS = -I$(X11INC) $(GTKINC) -LIBS = -L$(X11LIB) -lX11 $(GTKLIB) -lgthread-2.0 +INCS = $(X11INC) $(GTKINC) +LIBS = $(X11LIB) $(GTKLIB) # flags CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" \ |