annotate Makefile @ 142:36c9cb759326

Implement simple SQLite database backup at program exit using Qt HTTP/HTTPS and a PHP script on the remote server. Needs more work, testing and better error handling.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 Aug 2017 15:44:33 +0300
parents a5c8741b8662
children 2a8c97753381
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
1 ###
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
2 ### Configuration settings for Linux and generic UNIX
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
3 ### See other Makefile.* files for more options.
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
4 ###
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 # Miscellaneous
142
36c9cb759326 Implement simple SQLite database backup at program exit using Qt HTTP/HTTPS
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
7 QT5_MODULES = Core Gui Widgets Sql PrintSupport Network
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 QT5_PREFIX =
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 BINTOOL_PREFIX =
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
10
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 PREFIX = /usr/local
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 BINPATH = ./
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 OBJPATH = obj/unix/
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 EXEEXT =
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 # Compiler flags and linker flags
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
17 DEFINES =
87
43e14ba416e1 Simplify build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
18 INCPATH = -I. `pkg-config --cflags $(addprefix Qt5,$(QT5_MODULES))`
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
19
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
20 CFLAGS += -pipe -O2 -Wall -W -D_REENTRANT -fPIC
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
21 CXXFLAGS += -pipe -O2 -Wall -W -D_REENTRANT -fPIC
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
22 LDFLAGS += -Wl,-O1
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
23
87
43e14ba416e1 Simplify build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 52
diff changeset
24 APP_LIBS += `pkg-config --libs $(addprefix Qt5,$(QT5_MODULES))`
52
1ac8fdd932b3 More work on build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
25 APP_DEP_LIBS =
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
26 APP_DEPS =
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
27
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
28 # Qt tools
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 QT_RCC = rcc
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 QT_MOC = moc
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32 QT_MOC_FLAGS =
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 QT_UIC = uic
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 QT_UIC_FLAGS =
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 include Makefile.gen