diff options
author | 2018-02-24 18:41:05 -0500 | |
---|---|---|
committer | 2018-02-24 18:41:05 -0500 | |
commit | 93e5ca4550c41d611892e31a8499171699822264 (patch) | |
tree | 444cd939965e8d1991182a669cf3777770e3d6a6 /src/Makefile | |
parent | eba612bd6dd8f53b05163af1d06554df4e0bdc9f (diff) | |
download | textadept-93e5ca4550c41d611892e31a8499171699822264.tar.gz textadept-93e5ca4550c41d611892e31a8499171699822264.zip |
Provide minimal support for GTK 3 and ignore deprecations.
Textadept will never be targeted at GTK 3 or higher.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile index 312de843..6b9a1ea7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -83,12 +83,13 @@ else ifeq (, $(findstring curses, $(MAKECMDGOALS))) plat_flag = -DGTK ifndef GTK3 - gtk_version = 2.0 + GTK_CFLAGS = $(shell pkg-config --cflags gtk+-2.0 gmodule-2.0) + GTK_LIBS = $(shell pkg-config --libs gtk+-2.0 gmodule-2.0) else - gtk_version = 3.0 + GTK_CFLAGS = $(shell pkg-config --cflags gtk+-3.0 gmodule-2.0) \ + -Wno-deprecated-declarations + GTK_LIBS = $(shell pkg-config --libs gtk+-3.0 gmodule-2.0) endif - GTK_CFLAGS = $(shell pkg-config --cflags gtk+-$(gtk_version) gmodule-2.0) - GTK_LIBS = $(shell pkg-config --libs gtk+-$(gtk_version) gmodule-2.0) GLIB_CFLAGS = $(shell pkg-config --cflags glib-2.0) install_targets = ../textadept ../textadeptjit else |