aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-06-12 19:01:22 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-06-12 19:01:22 -0400
commit8118374dd9aa43f0b11729f596c4cae6af61d097 (patch)
tree5cfcc6c123601b6184a2967ca48ef38a103fa7b9 /src/Makefile
parentf1a62e2f038c100836a78b538ff6207ebee3af11 (diff)
downloadtextadept-8118374dd9aa43f0b11729f596c4cae6af61d097.tar.gz
textadept-8118374dd9aa43f0b11729f596c4cae6af61d097.zip
Add support for GTK 3.0.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile10
1 files changed, 8 insertions, 2 deletions
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