|
|
@ -3,11 +3,11 @@ MonetDB_LIB =
|
|
|
|
MonetDB_INC =
|
|
|
|
MonetDB_INC =
|
|
|
|
Threading =
|
|
|
|
Threading =
|
|
|
|
CXXFLAGS = --std=c++1z
|
|
|
|
CXXFLAGS = --std=c++1z
|
|
|
|
OPTFLAGS = -g3 #-O3 -fno-semantic-interposition
|
|
|
|
OPTFLAGS = -O3 -fno-semantic-interposition
|
|
|
|
LINKFLAGS = -flto
|
|
|
|
LINKFLAGS = -flto
|
|
|
|
SHAREDFLAGS = -shared
|
|
|
|
SHAREDFLAGS = -shared
|
|
|
|
FPIC = -fPIC
|
|
|
|
FPIC = -fPIC
|
|
|
|
COMPILER = $(shell $(CXX) --version | grep -q 'clang' && echo "clang"|| echo "gcc")
|
|
|
|
COMPILER = $(shell $(CXX) --version | grep -q clang && echo clang|| echo gcc)
|
|
|
|
LIBTOOL =
|
|
|
|
LIBTOOL =
|
|
|
|
USELIB_FLAG = -Wl,--whole-archive,libaquery.a -Wl,-no-whole-archive
|
|
|
|
USELIB_FLAG = -Wl,--whole-archive,libaquery.a -Wl,-no-whole-archive
|
|
|
|
LIBAQ_SRC = server/server.cpp server/monetdb_conn.cpp server/io.cpp
|
|
|
|
LIBAQ_SRC = server/server.cpp server/monetdb_conn.cpp server/io.cpp
|
|
|
@ -18,12 +18,16 @@ else
|
|
|
|
PCHFLAGS =
|
|
|
|
PCHFLAGS =
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
NULL_DEVICE = NUL
|
|
|
|
NULL_DEVICE = NUL
|
|
|
|
OS_SUPPORT += server/winhelper.cpp
|
|
|
|
OS_SUPPORT += server/winhelper.cpp
|
|
|
|
MonetDB_LIB += msc-plugin/monetdbe.dll
|
|
|
|
MonetDB_LIB += msc-plugin/monetdbe.dll
|
|
|
|
MonetDB_INC += -Imonetdb/msvc
|
|
|
|
MonetDB_INC += -Imonetdb/msvc
|
|
|
|
LIBTOOL = gcc-ar rcs
|
|
|
|
LIBTOOL = gcc-ar rcs
|
|
|
|
|
|
|
|
ifeq ($(COMPILER), clang )
|
|
|
|
|
|
|
|
FPIC =
|
|
|
|
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
else
|
|
|
|
UNAME_S = $(shell uname -s)
|
|
|
|
UNAME_S = $(shell uname -s)
|
|
|
|
UNAME_M = $(shell uname -m)
|
|
|
|
UNAME_M = $(shell uname -m)
|
|
|
@ -61,7 +65,9 @@ info:
|
|
|
|
$(info "test")
|
|
|
|
$(info "test")
|
|
|
|
$(info $(LIBTOOL))
|
|
|
|
$(info $(LIBTOOL))
|
|
|
|
$(info $(MonetDB_INC))
|
|
|
|
$(info $(MonetDB_INC))
|
|
|
|
|
|
|
|
$(info $(COMPILER))
|
|
|
|
$(info $(CXX))
|
|
|
|
$(info $(CXX))
|
|
|
|
|
|
|
|
$(info $(FPIC))
|
|
|
|
pch:
|
|
|
|
pch:
|
|
|
|
$(CXX) -x c++-header server/pch.hpp $(FPIC) $(MonetDB_INC) $(OPTFLAGS) $(CXXFLAGS) $(Threading)
|
|
|
|
$(CXX) -x c++-header server/pch.hpp $(FPIC) $(MonetDB_INC) $(OPTFLAGS) $(CXXFLAGS) $(Threading)
|
|
|
|
libaquery.a:
|
|
|
|
libaquery.a:
|
|
|
@ -88,6 +94,6 @@ docker:
|
|
|
|
docker build -t aquery .
|
|
|
|
docker build -t aquery .
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
clean:
|
|
|
|
rm *.shm *.o dll.so server.so server.bin libaquery.a .cached -rf 2> $(NULL_DEVICE) || true
|
|
|
|
rm *.shm *.o dll.so server.so server.bin -rf 2> $(NULL_DEVICE) || true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|