From 8118374dd9aa43f0b11729f596c4cae6af61d097 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 12 Jun 2011 19:01:22 -0400 Subject: Add support for GTK 3.0. --- src/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index deb1ae36..c1839a5d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -58,14 +58,20 @@ DEBUG_FLAG = -DDEBUG -DTRACE -g endif INCLUDEDIRS = -Iscintilla/include -Ilua/include -Igcocoadialog +ifdef GTK3 +GTKVERSION = gtk+-3.0 +else +GTKVERSION = gtk+-2.0 +endif + # Textadept CFLAGS = -std=c99 $(DEBUG_FLAG) -O $(PLAT_FLAGS) $(INCLUDEDIRS) -W -Wall \ -Wno-sign-compare -Wno-unused GTKFLAGS = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) \ - --cflags gtk+-2.0) + --cflags $(GTKVERSION)) GTKLIBS = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) \ - --libs gtk+-2.0) + --libs $(GTKVERSION)) ifdef LIBPNG12 GTKLIBS := $(shell sed -e 's/lpng14/lpng12/;' <<< "$(GTKLIBS)") endif -- cgit v1.2.3