view 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
line wrap: on
line source

###
### Configuration settings for Linux and generic UNIX
### See other Makefile.* files for more options.
###
USE_QTHTTP ?= yes


# Miscellaneous
ifneq ($(QT6),)
QT_VERSION_PREFIX = Qt6
QT_TOOL_PREFIX = /usr/lib/qt6/libexec/
else
QT_VERSION_PREFIX = Qt5
QT_TOOL_PREFIX = /usr/lib/qt5/bin/
endif
BINTOOL_PREFIX =

PREFIX = /usr/local
BINPATH = ./
OBJPATH = obj/unix/
BINEXT =

QT_MODULES = Core Gui Widgets Sql PrintSupport

# Compiler flags and linker flags
ifeq ($(USE_QTHTTP),yes)
QT_MODULES += Network
QT_FLAGS += -DUSE_QTHTTP
endif
QT_FLAGS += 
QT_INCLUDES = -I. $(shell pkg-config --cflags $(addprefix $(QT_VERSION_PREFIX),$(QT_MODULES)))

CFLAGS += -pipe -D_REENTRANT -fPIC
CXXFLAGS += -pipe -D_REENTRANT -fPIC
LDFLAGS += -Wl,-O1

APP_LIBS += $(shell pkg-config --libs $(addprefix $(QT_VERSION_PREFIX),$(QT_MODULES)))
APP_DEP_LIBS = 
APP_DEPS = 

# Qt tools
QT_MOC_FLAGS =
QT_MOC_RULES =
QT_UIC_FLAGS =

include Makefile.gen