Mercurial > hg > syntilista
annotate Makefile @ 299:3dc88d3814b3
Rename some Makefile variables.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 11 May 2023 13:07:05 +0300 |
parents | 10748e9d54c4 |
children | 2facccc60523 |
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 |
294
10748e9d54c4
Add Makefile parameter QT6=x to build for Qt6.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
9 ifneq ($(QT6),) |
10748e9d54c4
Add Makefile parameter QT6=x to build for Qt6.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
10 QT_VERSION_PREFIX = Qt6 |
10748e9d54c4
Add Makefile parameter QT6=x to build for Qt6.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
11 QT_TOOL_PREFIX = /usr/lib/qt6/libexec/ |
10748e9d54c4
Add Makefile parameter QT6=x to build for Qt6.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
12 else |
282
f05e9c74a022
Add QT_VERSION_PREFIX Makefile variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
13 QT_VERSION_PREFIX = Qt5 |
290
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
14 QT_TOOL_PREFIX = /usr/lib/qt5/bin/ |
294
10748e9d54c4
Add Makefile parameter QT6=x to build for Qt6.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
15 endif |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
16 BINTOOL_PREFIX = |
50 | 17 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
18 PREFIX = /usr/local |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
19 BINPATH = ./ |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
20 OBJPATH = obj/unix/ |
263
f0e180b13e05
More build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents:
258
diff
changeset
|
21 BINEXT = |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
22 |
290
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
23 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
|
24 |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
25 # Compiler flags and linker flags |
150
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
26 ifeq ($(USE_QTHTTP),yes) |
281
0562e7b181b1
Rename Makefile variable QT5_* to QT_*.
Matti Hamalainen <ccr@tnsp.org>
parents:
263
diff
changeset
|
27 QT_MODULES += Network |
299
3dc88d3814b3
Rename some Makefile variables.
Matti Hamalainen <ccr@tnsp.org>
parents:
294
diff
changeset
|
28 QT_FLAGS += -DUSE_QTHTTP |
150
2a8c97753381
Make the backup stuff compile-time optional.
Matti Hamalainen <ccr@tnsp.org>
parents:
142
diff
changeset
|
29 endif |
299
3dc88d3814b3
Rename some Makefile variables.
Matti Hamalainen <ccr@tnsp.org>
parents:
294
diff
changeset
|
30 QT_FLAGS += |
3dc88d3814b3
Rename some Makefile variables.
Matti Hamalainen <ccr@tnsp.org>
parents:
294
diff
changeset
|
31 QT_INCLUDES = -I. $(shell pkg-config --cflags $(addprefix $(QT_VERSION_PREFIX),$(QT_MODULES))) |
50 | 32 |
184
87dfca9f704d
Move optimization and warning CFLAGS and CXXFLAGS to Makefile.gen
Matti Hamalainen <ccr@tnsp.org>
parents:
150
diff
changeset
|
33 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
|
34 CXXFLAGS += -pipe -D_REENTRANT -fPIC |
50 | 35 LDFLAGS += -Wl,-O1 |
36 | |
282
f05e9c74a022
Add QT_VERSION_PREFIX Makefile variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
281
diff
changeset
|
37 APP_LIBS += $(shell pkg-config --libs $(addprefix $(QT_VERSION_PREFIX),$(QT_MODULES))) |
52 | 38 APP_DEP_LIBS = |
50 | 39 APP_DEPS = |
40 | |
41 # Qt tools | |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
42 QT_MOC_FLAGS = |
290
755fe3f8c08f
Minor build system cleanups in preparation for Qt6 support.
Matti Hamalainen <ccr@tnsp.org>
parents:
282
diff
changeset
|
43 QT_MOC_RULES = |
48
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
44 QT_UIC_FLAGS = |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
45 |
200ec310660a
Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
46 include Makefile.gen |