diff --git a/makefile b/makefile index fc51ff4..7af36a9 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,8 @@ LISTNAME=easylist.txt PREFIX ?= /usr -EXTENSION_DIR ?= $(PREFIX)/lib/wyebrowser +WEBKIT ?= webkit2gtk-4.1 +APPDIR ?= wyebrowser4.1 +EXTENSION_DIR ?= $(PREFIX)/lib/$(APPDIR) ifeq ($(DEBUG), 1) CFLAGS += -Wall else @@ -13,7 +15,7 @@ all: adblock.so wyebab librun.o testrun adblock.so: ab.c ephy-uri-tester.c ephy-uri-tester.h librun.o makefile $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< librun.o -shared -fPIC \ - `pkg-config --cflags --libs gtk+-3.0 glib-2.0 webkit2gtk-4.0` \ + `pkg-config --cflags --libs gtk+-3.0 glib-2.0 $(WEBKIT)` \ $(DDEBUG) -DISEXT -DEXENAME=\"wyebab\" wyebab: ab.c ephy-uri-tester.c ephy-uri-tester.h librun.o makefile