annotate Makefile.cross-mingw-win32 @ 69:a242548ccce8

Build system cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 10 Apr 2017 00:24:33 +0300
parents 7c507c1d30e9
children 810ca71af506
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
1 ###
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
2 ### For win32 version cross-compilation with MinGW suite @ Linux
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
3 ###
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 # Miscellaneous
69
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
6 QT5_PREFIX ?= /misc/packages/qt5-src
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
7 QT5_BASE ?= $(QT5_PREFIX)/qtbase
49
b86eb06070ba More work on buildsystem.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
8 BINTOOL_PREFIX ?= i686-w64-mingw32-
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 PREFIX =
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 BINPATH = win32/
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 OBJPATH = obj/win32/
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 EXEEXT = .exe
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 # Compiler flags and linker flags
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
15 DEFINES = -DUNICODE -DQT_NEEDS_QMAIN
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 INCPATH = -I. \
69
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
17 -I$(QT5_BASE)/include \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
18 -I$(QT5_BASE)/include/QtWidgets \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
19 -I$(QT5_BASE)/include/QtGui \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
20 -I$(QT5_BASE)/include/QtSql \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
21 -I$(QT5_BASE)/include/QtCore \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
22 -I$(QT5_MULTIMEDIA)/include \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
23 -I$(QT5_BASE)/mkspecs/win32-g++
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 CFLAGS += -pipe -fno-keep-inline-dllexport -O2 -Wall -Wextra
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 CXXFLAGS += -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 LDFLAGS += -Wl,-s -Wl,-subsystem,windows -mthreads
52
1ac8fdd932b3 More work on build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
28
1ac8fdd932b3 More work on build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
29 APP_LIBS = -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 \
69
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
30 -L$(QT5_BASE)/lib \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
31 $(QT5_BASE)/lib/libqtmain.a \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
32 $(QT5_BASE)/lib/libQt5Widgets.a \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
33 $(QT5_BASE)/lib/libQt5Gui.a \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
34 $(QT5_BASE)/lib/libQt5Sql.a \
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
35 $(QT5_BASE)/lib/libQt5Core.a
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36
56
ac3daf42f781 Rename some files.
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
37 APP_DEP_LIBS = $(OBJPATH)winres.o
52
1ac8fdd932b3 More work on build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
38 APP_DEPS =
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
39
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
40 # Qt tools
69
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
41 QT_RCC = $(QT5_BASE)/bin/rcc
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
42
69
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
43 QT_MOC = $(QT5_BASE)/bin/moc
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
44 QT_MOC_FLAGS = --include moc_predefs.h
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
45 QT_MOC_RULES = moc_predefs.h
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
46
69
a242548ccce8 Build system cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 67
diff changeset
47 QT_UIC = $(QT5_BASE)/bin/uic
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
48 QT_UIC_FLAGS =
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
49
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 49
diff changeset
50
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51 include Makefile.gen