Mercurial > hg > syntilista
annotate Makefile.cross-mingw-win32 @ 81:810ca71af506
Improve 'clean' target handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 24 Apr 2017 12:17:01 +0300 |
parents | a242548ccce8 |
children | 43e14ba416e1 |
rev | line source |
---|---|
50 | 1 ### |
2 ### For win32 version cross-compilation with MinGW suite @ Linux | |
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 | 6 QT5_PREFIX ?= /misc/packages/qt5-src |
7 QT5_BASE ?= $(QT5_PREFIX)/qtbase | |
49 | 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 | 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 | 17 -I$(QT5_BASE)/include \ |
18 -I$(QT5_BASE)/include/QtWidgets \ | |
19 -I$(QT5_BASE)/include/QtGui \ | |
20 -I$(QT5_BASE)/include/QtSql \ | |
21 -I$(QT5_BASE)/include/QtCore \ | |
22 -I$(QT5_MULTIMEDIA)/include \ | |
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 | 28 |
29 APP_LIBS = -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 \ | |
69 | 30 -L$(QT5_BASE)/lib \ |
31 $(QT5_BASE)/lib/libqtmain.a \ | |
32 $(QT5_BASE)/lib/libQt5Widgets.a \ | |
33 $(QT5_BASE)/lib/libQt5Gui.a \ | |
34 $(QT5_BASE)/lib/libQt5Sql.a \ | |
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 | 37 APP_DEP_LIBS = $(OBJPATH)winres.o |
52 | 38 APP_DEPS = |
50 | 39 |
40 # Qt tools | |
69 | 41 QT_RCC = $(QT5_BASE)/bin/rcc |
50 | 42 |
69 | 43 QT_MOC = $(QT5_BASE)/bin/moc |
50 | 44 QT_MOC_FLAGS = --include moc_predefs.h |
45 QT_MOC_RULES = moc_predefs.h | |
46 | |
69 | 47 QT_UIC = $(QT5_BASE)/bin/uic |
50 | 48 QT_UIC_FLAGS = |
49 | |
81
810ca71af506
Improve 'clean' target handling.
Matti Hamalainen <ccr@tnsp.org>
parents:
69
diff
changeset
|
50 CLEAN_TARGETS += moc_predefs.h $(APP_SRC)winres.rc |
50 | 51 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
52 include Makefile.gen |