aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2022-03-01 22:18:50 -0500
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2022-03-01 22:18:50 -0500
commit45c94a1d395f560c015c6b1a7a3fc3558f7de395 (patch)
treea8b21d34371a1d9f80887a67320ce6eeabfe4668 /src/Makefile
parent38eaaabdd89cfed6d446ab13c4cca653d054ff33 (diff)
Build with GTK3 by default on Linux using new textadept-build:v2.0 Docker image.
Build with GTK 2 using new GTK2 flag.
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)