Mercurial > hg > syntilista
annotate Makefile @ 290:755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 09 May 2023 12:04:24 +0300 |
parents | f05e9c74a022 |
children | 10748e9d54c4 |
rev | line source |
---|---|
50 | 1 ### |
2 ### Configuration settings for Linux and generic UNIX | |
3 ### See other Makefile.* files for more options. | |
4 ### | |
150
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
5 USE_QTHTTP ?= yes |
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
6 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
7 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
8 # Miscellaneous |
282
f05e9c74a022
Add QT_VERSION_PREFIX Makefile variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
9 QT_VERSION_PREFIX = Qt5 |
290
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
10 QT_TOOL_PREFIX = /usr/lib/qt5/bin/ |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
11 BINTOOL_PREFIX = |
50 | 12 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 PREFIX = /usr/local |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 BINPATH = ./ |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 OBJPATH = obj/unix/ |
263
f0e180b13e05
More build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
258
diff
changeset
|
16 BINEXT = |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
17 |
290
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
18 QT_MODULES = Core Gui Widgets Sql PrintSupport |
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
19 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
20 # Compiler flags and linker flags |
150
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
21 ifeq ($(USE_QTHTTP),yes) |
281
0562e7b181b1
Rename Makefile variable QT5_* to QT_*.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
22 QT_MODULES += Network |
150
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
23 DEFINES += -DUSE_QTHTTP |
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
24 endif |
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
25 DEFINES += |
282
f05e9c74a022
Add QT_VERSION_PREFIX Makefile variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
26 INCPATH = -I. $(shell pkg-config --cflags $(addprefix $(QT_VERSION_PREFIX),$(QT_MODULES))) |
50 | 27 |
184
87dfca9f704d
Move optimization and warning CFLAGS and CXXFLAGS to Makefile.gen
Matti Hamalainen <ccr@tnsp.org>
parents:
150
diff
changeset
|
28 CFLAGS += -pipe -D_REENTRANT -fPIC |
87dfca9f704d
Move optimization and warning CFLAGS and CXXFLAGS to Makefile.gen
Matti Hamalainen <ccr@tnsp.org>
parents:
150
diff
changeset
|
29 CXXFLAGS += -pipe -D_REENTRANT -fPIC |
50 | 30 LDFLAGS += -Wl,-O1 |
31 | |
282
f05e9c74a022
Add QT_VERSION_PREFIX Makefile variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
32 APP_LIBS += $(shell pkg-config --libs $(addprefix $(QT_VERSION_PREFIX),$(QT_MODULES))) |
52 | 33 APP_DEP_LIBS = |
50 | 34 APP_DEPS = |
35 | |
36 # Qt tools | |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
37 QT_MOC_FLAGS = |
290
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
38 QT_MOC_RULES = |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
39 QT_UIC_FLAGS = |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
40 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
41 include Makefile.gen |