aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 38d21e31..d177e272 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,7 +7,7 @@ CXXFLAGS := -Os -std=c++17
WGET = wget -O $@
# Define these once for speed and reference them later.
-ifndef GTK3
+ifdef GTK2
gtk_flags_linux := $(shell pkg-config --cflags gtk+-2.0 gmodule-2.0)
else
gtk_flags_linux := $(shell pkg-config --cflags gtk+-3.0 gmodule-2.0) -Wno-deprecated-declarations
@@ -248,7 +248,7 @@ else
$(linux_exes): CXX := c++
endif
$(linux_exes): LDFLAGS := -rdynamic -Wl,--retain-symbols-file -Wl,$(shell pwd)/lua.sym
-ifndef GTK3
+ifdef GTK2
../textadept: LDFLAGS += $(shell pkg-config --libs gtk+-2.0 gmodule-2.0)
else
../textadept: LDFLAGS += $(shell pkg-config --libs gtk+-3.0 gmodule-2.0)