view Makefile @ 282:f05e9c74a022

Add QT_VERSION_PREFIX Makefile variable.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 09 May 2023 11:02:10 +0300
parents 0562e7b181b1
children 755fe3f8c08f
line wrap: on
line source

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


# Miscellaneous
QT_VERSION_PREFIX = Qt5
QT_MODULES = Core Gui Widgets Sql PrintSupport
QT_PREFIX = 
BINTOOL_PREFIX =

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

# Compiler flags and linker flags
ifeq ($(USE_QTHTTP),yes)
QT_MODULES += Network
DEFINES += -DUSE_QTHTTP
endif
DEFINES += 
INCPATH = -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_RCC = rcc

QT_MOC = moc
QT_MOC_FLAGS =

QT_UIC = uic
QT_UIC_FLAGS =

include Makefile.gen