]> git.saurik.com Git - cycript.git/blobdiff - Linux.mk
Fixed a bug where the identifier merging algorithm would fail horribly on pre-merged...
[cycript.git] / Linux.mk
index 5fcb05425af349c8fd65a198c0dc32665acd8a8b..80fe9393534fc96753db53383d633ece3db3d4a2 100644 (file)
--- a/Linux.mk
+++ b/Linux.mk
@@ -1,3 +1,13 @@
 export PATH := /usr/local/bin:$(PATH)
-flags += -I/usr/include/webkit-1.0
-flags += -fPIC
+
+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