Mercurial > hg > syntilista
annotate Makefile.cross-mingw-win32 @ 233:6a12c82d082e
Cleanup build.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 07 May 2018 12:24:58 +0300 |
parents | 87dfca9f704d |
children | 2bb7ae9816bb |
rev | line source |
---|---|
50 | 1 ### |
2 ### For win32 version cross-compilation with MinGW suite @ Linux | |
3 ### | |
150
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
4 USE_QTHTTP ?= yes |
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
5 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
6 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
7 # Miscellaneous |
150
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
8 QT5_MODULES = Core Gui Widgets Sql PrintSupport |
69 | 9 QT5_PREFIX ?= /misc/packages/qt5-src |
10 QT5_BASE ?= $(QT5_PREFIX)/qtbase | |
49 | 11 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
|
12 PREFIX = |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 BINPATH = win32/ |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 OBJPATH = obj/win32/ |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 EXEEXT = .exe |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
16 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
17 # Compiler flags and linker flags |
50 | 18 DEFINES = -DUNICODE -DQT_NEEDS_QMAIN |
150
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
19 ifeq ($(USE_QTHTTP),yes) |
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
20 QT5_MODULES += Network |
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
21 DEFINES += -DUSE_QTHTTP |
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
22 endif |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
23 INCPATH = -I. \ |
69 | 24 -I$(QT5_BASE)/include \ |
87 | 25 $(addprefix -I$(QT5_BASE)/include/Qt,$(QT5_MODULES)) \ |
69 | 26 -I$(QT5_MULTIMEDIA)/include \ |
27 -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
|
28 |
184
87dfca9f704d
Move optimization and warning CFLAGS and CXXFLAGS to Makefile.gen
Matti Hamalainen <ccr@tnsp.org>
parents:
150
diff
changeset
|
29 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
|
30 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
|
31 LDFLAGS += -Wl,-s -Wl,-subsystem,windows -mthreads |
52 | 32 |
33 APP_LIBS = -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 \ | |
69 | 34 -L$(QT5_BASE)/lib \ |
35 $(QT5_BASE)/lib/libqtmain.a \ | |
87 | 36 $(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
|
37 |
56 | 38 APP_DEP_LIBS = $(OBJPATH)winres.o |
52 | 39 APP_DEPS = |
50 | 40 |
41 # Qt tools | |
69 | 42 QT_RCC = $(QT5_BASE)/bin/rcc |
50 | 43 |
69 | 44 QT_MOC = $(QT5_BASE)/bin/moc |
50 | 45 QT_MOC_FLAGS = --include moc_predefs.h |
46 QT_MOC_RULES = moc_predefs.h | |
47 | |
69 | 48 QT_UIC = $(QT5_BASE)/bin/uic |
50 | 49 QT_UIC_FLAGS = |
50 | |
233 | 51 CLEAN_TARGETS += moc_predefs.h src/winres.rc |
50 | 52 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
53 include Makefile.gen |