annotate Makefile @ 52:1ac8fdd932b3

More work on build system.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 07 Apr 2017 17:27:01 +0300
parents 402446a76794
children 43e14ba416e1
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
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 QT5_PREFIX =
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 BINTOOL_PREFIX =
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
9
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 PREFIX = /usr/local
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 BINPATH = ./
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 OBJPATH = obj/unix/
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 EXEEXT =
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
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
16 DEFINES =
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
17 INCPATH = -I. `pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets Qt5Sql`
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
18
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
19 CFLAGS += -pipe -O2 -Wall -W -D_REENTRANT -fPIC
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
20 CXXFLAGS += -pipe -O2 -Wall -W -D_REENTRANT -fPIC
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
21 LDFLAGS += -Wl,-O1
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
22
52
1ac8fdd932b3 More work on build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
23 APP_LIBS += `pkg-config --libs Qt5Core Qt5Gui Qt5Widgets Qt5Sql`
1ac8fdd932b3 More work on build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 50
diff changeset
24 APP_DEP_LIBS =
50
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
25 APP_DEPS =
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
26
402446a76794 And more build system work.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
27 # Qt tools
48
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 QT_RCC = rcc
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 QT_MOC = moc
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 QT_MOC_FLAGS =
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 QT_UIC = uic
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 QT_UIC_FLAGS =
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35
200ec310660a Begin revamp of the buildsystem, don't use qmake anymore.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 include Makefile.gen