From 4530a341c65ac12e50075fb3e3d6166cd2e1fe3b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 May 2016 01:47:53 +0300 Subject: Add USE_X11 define into make file. --- src/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index e70aaf2fa..e45202c22 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,6 +18,11 @@ manaplus_CXXFLAGS += -Werror dyecmd_CXXFLAGS += -Werror endif +if USE_X11 +manaplus_CXXFLAGS += -DUSE_X11 +dyecmd_CXXFLAGS += -DUSE_X11 +endif + if ENABLE_ASSERTS manaplus_CXXFLAGS += -DENABLE_ASSERTS dyecmd_CXXFLAGS += -DENABLE_ASSERTS @@ -1804,6 +1809,10 @@ manaplustests_CXXFLAGS += -DENABLE_ASSERTS manaplustests_LDFLAGS = -rdynamic endif +if USE_X11 +manaplustests_CXXFLAGS += -DUSE_X11 +endif + manaplustests_SOURCES = ${manaplus_SOURCES} \ enums/enums_unittest.cc \ utils/checkutils_unittest.cc \ -- cgit v1.2.3-70-g09d2