Mercurial > hg > syntilista
comparison Makefile.cross-mingw @ 281:0562e7b181b1
Rename Makefile variable QT5_* to QT_*.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 09 May 2023 10:59:28 +0300 |
parents | 835f71eef167 |
children | 755fe3f8c08f |
comparison
equal
deleted
inserted
replaced
280:2b5d4b6884dc | 281:0562e7b181b1 |
---|---|
1 ### | 1 ### |
2 ### For win32 version cross-compilation with MinGW suite @ Linux | 2 ### For win32 version cross-compilation with MinGW suite @ Linux |
3 ### | 3 ### |
4 # Miscellaneous | 4 # Miscellaneous |
5 QT5_MODULES = Core Gui Widgets Sql PrintSupport | 5 QT_MODULES = Core Gui Widgets Sql PrintSupport |
6 QT5_PREFIX ?= /misc/packages/qt5-src | 6 QT_PREFIX ?= /misc/packages/qt5-src |
7 QT5_BASE ?= $(QT5_PREFIX)/qtbase | 7 QT_BASE ?= $(QT5_PREFIX)/qtbase |
8 | 8 |
9 USE_QTHTTP ?= yes | 9 USE_QTHTTP ?= yes |
10 | 10 |
11 PREFIX = | 11 PREFIX = |
12 BINEXT = .exe | 12 BINEXT = .exe |
27 | 27 |
28 | 28 |
29 # Compiler flags and linker flags | 29 # Compiler flags and linker flags |
30 DEFINES = -DUNICODE -DQT_NEEDS_QMAIN | 30 DEFINES = -DUNICODE -DQT_NEEDS_QMAIN |
31 ifeq ($(USE_QTHTTP),yes) | 31 ifeq ($(USE_QTHTTP),yes) |
32 QT5_MODULES += Network | 32 QT_MODULES += Network |
33 DEFINES += -DUSE_QTHTTP | 33 DEFINES += -DUSE_QTHTTP |
34 endif | 34 endif |
35 INCPATH = -I. \ | 35 INCPATH = -I. \ |
36 -I$(QT5_BASE)/include \ | 36 -I$(QT_BASE)/include \ |
37 $(addprefix -I$(QT5_BASE)/include/Qt,$(QT5_MODULES)) \ | 37 $(addprefix -I$(QT_BASE)/include/Qt,$(QT5_MODULES)) \ |
38 -I$(QT5_MULTIMEDIA)/include \ | 38 -I$(QT_MULTIMEDIA)/include \ |
39 -I$(QT5_BASE)/mkspecs/win32-g++ | 39 -I$(QT_BASE)/mkspecs/win32-g++ |
40 | 40 |
41 CFLAGS += -pipe -fno-keep-inline-dllexport | 41 CFLAGS += -pipe -fno-keep-inline-dllexport |
42 CXXFLAGS += -pipe -fno-keep-inline-dllexport -frtti -fexceptions -mthreads | 42 CXXFLAGS += -pipe -fno-keep-inline-dllexport -frtti -fexceptions -mthreads |
43 LDFLAGS += -Wl,-s -Wl,-subsystem,windows -mthreads | 43 LDFLAGS += -Wl,-s -Wl,-subsystem,windows -mthreads |
44 | 44 |
45 APP_LIBS = -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 \ | 45 APP_LIBS = -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 \ |
46 -L$(QT5_BASE)/lib \ | 46 -L$(QT_BASE)/lib \ |
47 $(QT5_BASE)/lib/libqtmain.a \ | 47 $(QT_BASE)/lib/libqtmain.a \ |
48 $(addsuffix .a,$(addprefix $(QT5_BASE)/lib/libQt5,$(QT5_MODULES))) | 48 $(addsuffix .a,$(addprefix $(QT_BASE)/lib/libQt5,$(QT5_MODULES))) |
49 | 49 |
50 APP_DEP_LIBS = $(OBJPATH)winres.o | 50 APP_DEP_LIBS = $(OBJPATH)winres.o |
51 APP_DEPS = | 51 APP_DEPS = |
52 | 52 |
53 # Qt tools | 53 # Qt tools |
54 QT_RCC = $(QT5_BASE)/bin/rcc | 54 QT_RCC = $(QT_BASE)/bin/rcc |
55 | 55 |
56 QT_MOC = $(QT5_BASE)/bin/moc | 56 QT_MOC = $(QT_BASE)/bin/moc |
57 QT_MOC_FLAGS = --include moc_predefs.h | 57 QT_MOC_FLAGS = --include moc_predefs.h |
58 QT_MOC_RULES = moc_predefs.h | 58 QT_MOC_RULES = moc_predefs.h |
59 | 59 |
60 QT_UIC = $(QT5_BASE)/bin/uic | 60 QT_UIC = $(QT_BASE)/bin/uic |
61 QT_UIC_FLAGS = | 61 QT_UIC_FLAGS = |
62 | 62 |
63 CLEAN_TARGETS += moc_predefs.h src/winres.rc | 63 CLEAN_TARGETS += moc_predefs.h src/winres.rc |
64 | 64 |
65 include Makefile.gen | 65 include Makefile.gen |