Skip to content

Commit

Permalink
Makefile cleanup
Browse files Browse the repository at this point in the history
* cleanup dependency chain of duckdb
* use wildcard for c and cpp files
  • Loading branch information
wuputah committed Sep 24, 2024
1 parent d390317 commit 7342551
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,12 @@ MODULE_big = pg_duckdb
EXTENSION = pg_duckdb
DATA = pg_duckdb.control $(wildcard sql/pg_duckdb--*.sql)

SRCS = src/scan/heap_reader.cpp \
src/scan/index_scan_utils.cpp \
src/scan/postgres_index_scan.cpp \
src/scan/postgres_scan.cpp \
src/scan/postgres_seq_scan.cpp \
src/utility/copy.cpp \
src/vendor/pg_explain.cpp \
src/pgduckdb_metadata_cache.cpp \
src/pgduckdb_detoast.cpp \
src/pgduckdb_duckdb.cpp \
src/pgduckdb_filter.cpp \
src/pgduckdb_hooks.cpp \
src/pgduckdb_memory_allocator.cpp \
src/pgduckdb_node.cpp \
src/pgduckdb_options.cpp \
src/pgduckdb_planner.cpp \
src/pgduckdb_ruleutils.cpp \
src/pgduckdb_types.cpp \
src/pgduckdb.cpp \
src/catalog/pgduckdb_storage.cpp \
src/catalog/pgduckdb_schema.cpp \
src/catalog/pgduckdb_table.cpp \
src/catalog/pgduckdb_transaction.cpp \
src/catalog/pgduckdb_transaction_manager.cpp \
src/catalog/pgduckdb_catalog.cpp

SRCS = $(wildcard src/*.cpp src/*/*.cpp)
OBJS = $(subst .cpp,.o, $(SRCS))


C_SRCS = src/vendor/pg_ruleutils_16.c \
src/vendor/pg_ruleutils_17.c
C_SRCS = $(wildcard src/*.c src/*/*.c)
OBJS += $(subst .c,.o, $(C_SRCS))


DUCKDB_BUILD_CXX_FLAGS=
DUCKDB_BUILD_TYPE=

Expand Down Expand Up @@ -92,13 +64,12 @@ pycheck: all install
check: installcheck pycheck

FULL_DUCKDB_LIB = third_party/duckdb/build/$(DUCKDB_BUILD_TYPE)/src/$(DUCKDB_LIB)
duckdb: third_party/duckdb/Makefile $(FULL_DUCKDB_LIB)

duckdb: $(FULL_DUCKDB_LIB)

third_party/duckdb/Makefile:
git submodule update --init --recursive

$(FULL_DUCKDB_LIB):
$(FULL_DUCKDB_LIB): third_party/duckdb/Makefile
$(MAKE) -C third_party/duckdb \
$(DUCKDB_BUILD_TYPE) \
DISABLE_SANITIZER=1 \
Expand Down

0 comments on commit 7342551

Please sign in to comment.