Mercurial > hg > syntilista
diff Makefile.gen @ 302:52f0da883469
Remove Qt5 support, cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 May 2023 14:06:50 +0300 |
parents | 3dc88d3814b3 |
children |
line wrap: on
line diff
--- a/Makefile.gen Mon May 15 14:04:33 2023 +0300 +++ b/Makefile.gen Mon May 15 14:06:50 2023 +0300 @@ -1,18 +1,28 @@ +### +### Generic +### +QT_MODULES = Core Gui Widgets Sql PrintSupport Network + +QT_FLAGS += -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DUNICODE \ + -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB \ + -DQT_SQL_LIB -DQT_PRINTSUPPORT_LIB -DQT_NETWORK_LIB + + ### ### Compiler flags ### -CFLAGS += -W -Wall -Wextra -CXXFLAGS += -W -Wall -Wextra -std=c++17 +XCFLAGS += -g -pipe -W -Wall -Wextra ifneq ($(ASAN),) -XCFLAGS = -fsanitize=address -LDFLAGS += -lasan +XCFLAGS += -fsanitize=address +XLDFLAGS += -lasan else -XCFLAGS = -O2 +XCFLAGS += -O2 endif -CFLAGS += $(XCFLAGS) -CXXFLAGS += $(XCFLAGS) +CFLAGS += -std=c11 $(XCFLAGS) +CXXFLAGS += -std=c++17 $(XCFLAGS) +LDFLAGS += $(XLDFLAGS) ### @@ -40,11 +50,6 @@ ### ### Main targets and objects ### -QT_FLAGS += -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG \ - -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB \ - -DQT_CORE_LIB - -# Application stuff APP_IMG=img/ APP_BIN=$(BINPATH)Syntilista$(BINEXT)