From ff51b1f1d0d686645c31416cdd8d83ecba7fe736 Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 15 Sep 2022 21:22:41 +0800 Subject: [PATCH] lazy commit message --- Makefile | 5 ++++- build.py | 4 ++-- server/types.cpp | 0 server/utils.cpp | 0 4 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 server/types.cpp delete mode 100644 server/utils.cpp diff --git a/Makefile b/Makefile index e9568c2..0ac6ac3 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ COMPILER = $(shell $(CXX) --version | grep -q 'clang' && echo "clang"|| echo "gc LIBTOOL = USELIB_FLAG = -Wl,--whole-archive,libaquery.a -Wl,-no-whole-archive LIBAQ_SRC = server/server.cpp server/monetdb_conn.cpp server/io.cpp +LIBAQ_OBJ = server.o monetdb_conn.o io.o ifeq ($(PCH), 1) PCHFLAGS = -include server/pch.hpp @@ -21,6 +22,7 @@ endif ifeq ($(OS),Windows_NT) NULL_DEVICE = NUL OS_SUPPORT += server/winhelper.cpp + LIBAQ_OBJ += winhelper.o MonetDB_LIB += msc-plugin/monetdbe.dll MonetDB_INC += -Imonetdb/msvc LIBTOOL = gcc-ar rcs @@ -49,6 +51,7 @@ endif ifeq ($(THREADING),1) LIBAQ_SRC += server/threading.cpp + LIBAQ_OBJ += threading.o Threading += -DTHREADING endif @@ -66,7 +69,7 @@ pch: $(CXX) -x c++-header server/pch.hpp $(FPIC) $(MonetDB_INC) $(OPTFLAGS) $(CXXFLAGS) $(Threading) libaquery.a: $(CXX) -c $(FPIC) $(PCHFLAGS) $(LIBAQ_SRC) $(MonetDB_INC) $(MonetDB_LIB) $(OS_SUPPORT) $(Threading) $(OPTFLAGS) $(LINKFLAGS) $(CXXFLAGS) &&\ - $(LIBTOOL) libaquery.a *.o &&\ + $(LIBTOOL) libaquery.a $(LIBAQ_OBJ) &&\ ranlib libaquery.a server.bin: diff --git a/build.py b/build.py index 52eda85..12cbc1c 100644 --- a/build.py +++ b/build.py @@ -89,14 +89,14 @@ class build_manager: os.environ['CXX'] = mgr.cxx if mgr.cxx else 'c++' def libaquery_a(self): - self.build_cmd = [['rm', 'libaquery.lib'],['make', 'libaquery.a']] + self.build_cmd = [['rm', 'libaquery.a'],['make', 'libaquery.a']] return self.build() def pch(self): self.build_cmd = [['rm', 'server/pch.hpp.gch'], ['make', 'pch']] return self.build() def server(self): if self.mgr.StaticLib: - self.build_cmd = [['rm', 'server.so'], ['make', 'server_uselib']] + self.build_cmd = [['rm', '*.o'],['rm', 'server.so'], ['make', 'server_uselib']] else: self.build_cmd = [['rm', 'server.so'], ['make', 'server.so']] return self.build() diff --git a/server/types.cpp b/server/types.cpp deleted file mode 100644 index e69de29..0000000 diff --git a/server/utils.cpp b/server/utils.cpp deleted file mode 100644 index e69de29..0000000