From 93e5ca4550c41d611892e31a8499171699822264 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 24 Feb 2018 18:41:05 -0500 Subject: Provide minimal support for GTK 3 and ignore deprecations. Textadept will never be targeted at GTK 3 or higher. --- src/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/Makefile') 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 -- cgit v1.2.3