From bd6831f9f1424c48eceacf605205a0c3afdb389e Mon Sep 17 00:00:00 2001 From: jun7 Date: Sat, 17 Sep 2022 20:50:56 +0900 Subject: [PATCH] for 4.1 --- makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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