This commit is contained in:
jun7 2022-09-17 20:50:56 +09:00
parent b76bf363c0
commit bd6831f9f1

View File

@ -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