X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/2892653821db515977146a160552209d7cd3cb6c..6a9812501258df26b7c487e50744b91abe8ebe39:/Linux.mk diff --git a/Linux.mk b/Linux.mk index 93e2e94..80fe939 100644 --- a/Linux.mk +++ b/Linux.mk @@ -1,5 +1,13 @@ export PATH := /usr/local/bin:$(PATH) -flags += -I/usr/include/webkit-1.0 -flags += -DCY_EXECUTE -depends += libffi4 libreadline5 + +ifneq ($(shell pkg-config webkit-1.0 --modversion 2>/dev/null),) +flags += $(shell pkg-config --cflags webkit-1.0) library += -lwebkit-1.0 +include Execute.mk +else +ifneq ($(shell pkg-config WebKitGtk --modversion 2>/dev/null),) +flags += $(shell pkg-config --cflags WebKitGtk) +library += $(shell pkg-config --libs WebKitGtk) +include Execute.mk +endif +endif