Mercurial > hg > syntilista
annotate Makefile.cross-mingw-win32 @ 114:a5c8741b8662
Initial prototype support for printing list of users + print preview dialog.
Has some issues currently.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 05 Jul 2017 12:48:55 +0300 |
parents | 43e14ba416e1 |
children | 36c9cb759326 |
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 |
114
a5c8741b8662
Initial prototype support for printing list of users + print preview dialog.
Matti Hamalainen <ccr@tnsp.org>
parents:
87
diff
changeset
|
6 QT5_MODULES = Core Gui Widgets Sql PrintSupport |
69 | 7 QT5_PREFIX ?= /misc/packages/qt5-src |
8 QT5_BASE ?= $(QT5_PREFIX)/qtbase | |
49 | 9 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
|
10 PREFIX = |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
11 BINPATH = win32/ |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
12 OBJPATH = obj/win32/ |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 EXEEXT = .exe |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 # Compiler flags and linker flags |
50 | 16 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
|
17 INCPATH = -I. \ |
69 | 18 -I$(QT5_BASE)/include \ |
87 | 19 $(addprefix -I$(QT5_BASE)/include/Qt,$(QT5_MODULES)) \ |
69 | 20 -I$(QT5_MULTIMEDIA)/include \ |
21 -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
|
22 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
23 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
|
24 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
|
25 LDFLAGS += -Wl,-s -Wl,-subsystem,windows -mthreads |
52 | 26 |
27 APP_LIBS = -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 \ | |
69 | 28 -L$(QT5_BASE)/lib \ |
29 $(QT5_BASE)/lib/libqtmain.a \ | |
87 | 30 $(addsuffix .a,$(addprefix $(QT5_BASE)/lib/libQt5,$(QT5_MODULES))) |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
31 |
56 | 32 APP_DEP_LIBS = $(OBJPATH)winres.o |
52 | 33 APP_DEPS = |
50 | 34 |
35 # Qt tools | |
69 | 36 QT_RCC = $(QT5_BASE)/bin/rcc |
50 | 37 |
69 | 38 QT_MOC = $(QT5_BASE)/bin/moc |
50 | 39 QT_MOC_FLAGS = --include moc_predefs.h |
40 QT_MOC_RULES = moc_predefs.h | |
41 | |
69 | 42 QT_UIC = $(QT5_BASE)/bin/uic |
50 | 43 QT_UIC_FLAGS = |
44 | |
81
810ca71af506
Improve 'clean' target handling.
Matti Hamalainen <ccr@tnsp.org>
parents:
69
diff
changeset
|
45 CLEAN_TARGETS += moc_predefs.h $(APP_SRC)winres.rc |
50 | 46 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
47 include Makefile.gen |