comparison Makefile @ 150:2a8c97753381

Make the backup stuff compile-time optional.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 28 Aug 2017 11:24:42 +0300
parents 36c9cb759326
children 87dfca9f704d
comparison
equal deleted inserted replaced
149:fd960e586678 150:2a8c97753381
1 ### 1 ###
2 ### Configuration settings for Linux and generic UNIX 2 ### Configuration settings for Linux and generic UNIX
3 ### See other Makefile.* files for more options. 3 ### See other Makefile.* files for more options.
4 ### 4 ###
5 USE_QTHTTP ?= yes
6
5 7
6 # Miscellaneous 8 # Miscellaneous
7 QT5_MODULES = Core Gui Widgets Sql PrintSupport Network 9 QT5_MODULES = Core Gui Widgets Sql PrintSupport
8 QT5_PREFIX = 10 QT5_PREFIX =
9 BINTOOL_PREFIX = 11 BINTOOL_PREFIX =
10 12
11 PREFIX = /usr/local 13 PREFIX = /usr/local
12 BINPATH = ./ 14 BINPATH = ./
13 OBJPATH = obj/unix/ 15 OBJPATH = obj/unix/
14 EXEEXT = 16 EXEEXT =
15 17
16 # Compiler flags and linker flags 18 # Compiler flags and linker flags
17 DEFINES = 19 ifeq ($(USE_QTHTTP),yes)
20 QT5_MODULES += Network
21 DEFINES += -DUSE_QTHTTP
22 endif
23 DEFINES +=
18 INCPATH = -I. `pkg-config --cflags $(addprefix Qt5,$(QT5_MODULES))` 24 INCPATH = -I. `pkg-config --cflags $(addprefix Qt5,$(QT5_MODULES))`
19 25
20 CFLAGS += -pipe -O2 -Wall -W -D_REENTRANT -fPIC 26 CFLAGS += -pipe -O2 -Wall -W -D_REENTRANT -fPIC
21 CXXFLAGS += -pipe -O2 -Wall -W -D_REENTRANT -fPIC 27 CXXFLAGS += -pipe -O2 -Wall -W -D_REENTRANT -fPIC
22 LDFLAGS += -Wl,-O1 28 LDFLAGS += -Wl,-O1