aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-02-24 18:41:05 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2018-02-24 18:41:05 -0500
commit93e5ca4550c41d611892e31a8499171699822264 (patch)
tree444cd939965e8d1991182a669cf3777770e3d6a6 /src/Makefile
parenteba612bd6dd8f53b05163af1d06554df4e0bdc9f (diff)
downloadtextadept-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/Makefile9
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