summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-12-03 12:37:26 +0100
committerKarel Kočí <cynerd@email.cz>2017-12-03 12:44:24 +0100
commit832fb2c5d9ff57fb96d6534a09601e25a82898b4 (patch)
tree052104a50b224c1234e033581ef614db166cb238 /config.mk
parentc8dda2a06cd60ccef8b4d50b3d37306acd7f3b08 (diff)
downloadsurf-832fb2c5d9ff57fb96d6534a09601e25a82898b4.tar.gz
surf-832fb2c5d9ff57fb96d6534a09601e25a82898b4.tar.bz2
surf-832fb2c5d9ff57fb96d6534a09601e25a82898b4.zip
Change some compilation options for gentoo
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk16
1 files changed, 8 insertions, 8 deletions
diff --git a/config.mk b/config.mk
index 7972bb6..8a6eabe 100644
--- a/config.mk
+++ b/config.mk
@@ -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}\" \