Mercurial > hg > syntilista
annotate Makefile.cross-mingw @ 301:2facccc60523
Remove optionality of QtHttp.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 May 2023 14:04:33 +0300 |
parents | 3dc88d3814b3 |
children | 52f0da883469 |
rev | line source |
---|---|
50 | 1 ### |
2 ### For win32 version cross-compilation with MinGW suite @ Linux | |
3 ### | |
269 | 4 # Miscellaneous |
290
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
5 QT_VERSION_PREFIX = Qt5 |
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
6 QT_PREFIX ?= /misc/packages/qt5-src/qtbase |
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
7 QT_TOOL_PREFIX = $(QT_PREFIX)/bin/ |
269 | 8 |
9 PREFIX = | |
10 BINEXT = .exe | |
11 | |
12 | |
13 # Compiler/tools 64/32-bit | |
256
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
14 ifeq ($(MINGW),64) |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
15 BINTOOL_PREFIX ?= x86_64-w64-mingw32- |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
16 MINGW_SYS_PATH ?= /usr/x86_64-w64-mingw32 |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
17 MINGW_LOCAL_PATH ?= /usr/local/x86_64-w64-mingw32 |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
18 OBJPATH ?= ./obj/win64/ |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
19 else |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
20 BINTOOL_PREFIX ?= i686-w64-mingw32- |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
21 MINGW_SYS_PATH ?= /usr/i686-w64-mingw32 |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
22 MINGW_LOCAL_PATH ?= /usr/local/i686-w64-mingw32 |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
23 OBJPATH ?= ./obj/win32/ |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
24 endif |
2bb7ae9816bb
Improve the MinGW cross compilation Makefile so that a 64bit version could be built.
Matti Hamalainen <ccr@tnsp.org>
parents:
233
diff
changeset
|
25 |
301
2facccc60523
Remove optionality of QtHttp.
Matti Hamalainen <ccr@tnsp.org>
parents:
299
diff
changeset
|
26 QT_MODULES = Core Gui Widgets Sql PrintSupport Network |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
27 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
28 # Compiler flags and linker flags |
299
3dc88d3814b3
Rename some Makefile variables.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
29 QT_FLAGS = -DUNICODE -DQT_NEEDS_QMAIN |
3dc88d3814b3
Rename some Makefile variables.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
30 QT_INCLUDES = -I. \ |
290
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
31 -I$(QT_PREFIX)/include \ |
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
32 $(addprefix -I$(QT_PREFIX)/include/Qt,$(QT_MODULES)) \ |
281
0562e7b181b1
Rename Makefile variable QT5_* to QT_*.
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
33 -I$(QT_MULTIMEDIA)/include \ |
290
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
34 -I$(QT_PREFIX)/mkspecs/win32-g++ |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
35 |
184
87dfca9f704d
Move optimization and warning CFLAGS and CXXFLAGS to Makefile.gen
Matti Hamalainen <ccr@tnsp.org>
parents:
150
diff
changeset
|
36 CFLAGS += -pipe -fno-keep-inline-dllexport |
87dfca9f704d
Move optimization and warning CFLAGS and CXXFLAGS to Makefile.gen
Matti Hamalainen <ccr@tnsp.org>
parents:
150
diff
changeset
|
37 CXXFLAGS += -pipe -fno-keep-inline-dllexport -frtti -fexceptions -mthreads |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
38 LDFLAGS += -Wl,-s -Wl,-subsystem,windows -mthreads |
52 | 39 |
40 APP_LIBS = -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 \ | |
290
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
41 -L$(QT_PREFIX)/lib \ |
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
42 $(QT_PREFIX)/lib/libqtmain.a \ |
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
43 $(addsuffix .a,$(addprefix $(QT_PREFIX)/lib/lib$(QT_VERSION_PREFIX),$(QT_MODULES))) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
44 |
56 | 45 APP_DEP_LIBS = $(OBJPATH)winres.o |
52 | 46 APP_DEPS = |
50 | 47 |
48 # Qt tools | |
49 QT_MOC_FLAGS = --include moc_predefs.h | |
50 QT_MOC_RULES = moc_predefs.h | |
51 QT_UIC_FLAGS = | |
52 | |
233 | 53 CLEAN_TARGETS += moc_predefs.h src/winres.rc |
50 | 54 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
55 include Makefile.gen |