forked from citusdata/citus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
157 lines (144 loc) · 7.41 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# Citus toplevel Makefile
EXTENSION = citus
MODULE_big = citus
OBJS = src/backend/distributed/shared_library_init.o \
src/backend/distributed/commands/create_distributed_table.o \
src/backend/distributed/commands/drop_distributed_table.o \
src/backend/distributed/commands/multi_copy.o \
src/backend/distributed/commands/transmit.o \
src/backend/distributed/connection/connection_management.o \
src/backend/distributed/connection/placement_connection.o \
src/backend/distributed/connection/remote_commands.o \
src/backend/distributed/executor/citus_custom_scan.o \
src/backend/distributed/executor/insert_select_executor.o \
src/backend/distributed/executor/intermediate_results.o \
src/backend/distributed/executor/multi_client_executor.o \
src/backend/distributed/executor/multi_executor.o \
src/backend/distributed/executor/multi_real_time_executor.o \
src/backend/distributed/executor/multi_router_executor.o \
src/backend/distributed/executor/multi_server_executor.o \
src/backend/distributed/executor/multi_task_tracker_executor.o \
src/backend/distributed/executor/multi_utility.o \
src/backend/distributed/executor/subplan_execution.o \
src/backend/distributed/master/citus_create_restore_point.o \
src/backend/distributed/master/master_citus_tools.o \
src/backend/distributed/master/master_create_shards.o \
src/backend/distributed/master/master_delete_protocol.o \
src/backend/distributed/master/master_metadata_utility.o \
src/backend/distributed/master/master_modify_multiple_shards.o \
src/backend/distributed/master/master_node_protocol.o \
src/backend/distributed/master/master_repair_shards.o \
src/backend/distributed/master/master_split_shards.o \
src/backend/distributed/master/master_stage_protocol.o \
src/backend/distributed/master/master_truncate.o \
src/backend/distributed/master/worker_node_manager.o \
src/backend/distributed/metadata/metadata_sync.o \
src/backend/distributed/planner/deparse_shard_query.o \
src/backend/distributed/planner/distributed_planner.o \
src/backend/distributed/planner/extended_op_node_utils.o \
src/backend/distributed/planner/insert_select_planner.o \
src/backend/distributed/planner/multi_explain.o \
src/backend/distributed/planner/multi_join_order.o \
src/backend/distributed/planner/multi_logical_optimizer.o \
src/backend/distributed/planner/multi_logical_planner.o \
src/backend/distributed/planner/multi_master_planner.o \
src/backend/distributed/planner/multi_physical_planner.o \
src/backend/distributed/planner/query_colocation_checker.o \
src/backend/distributed/planner/query_pushdown_planning.o \
src/backend/distributed/planner/multi_router_planner.o \
src/backend/distributed/planner/postgres_planning_functions.o \
src/backend/distributed/planner/recursive_planning.o \
src/backend/distributed/planner/relation_restriction_equivalence.o \
src/backend/distributed/planner/shard_pruning.o \
src/backend/distributed/progress/multi_progress.o \
src/backend/distributed/relay/relay_event_utility.o \
src/backend/distributed/test/colocation_utils.o \
src/backend/distributed/test/create_shards.o \
src/backend/distributed/test/deparse_shard_query.o \
src/backend/distributed/test/distributed_deadlock_detection.o \
src/backend/distributed/test/distribution_metadata.o \
src/backend/distributed/test/fake_fdw.o \
src/backend/distributed/test/generate_ddl_commands.o \
src/backend/distributed/test/metadata_sync.o \
src/backend/distributed/test/partitioning_utils.o \
src/backend/distributed/test/progress_utils.o \
src/backend/distributed/test/prune_shard_list.o \
src/backend/distributed/transaction/backend_data.o \
src/backend/distributed/transaction/distributed_deadlock_detection.o \
src/backend/distributed/transaction/lock_graph.o \
src/backend/distributed/transaction/multi_shard_transaction.o \
src/backend/distributed/transaction/remote_transaction.o \
src/backend/distributed/transaction/transaction_management.o \
src/backend/distributed/transaction/transaction_recovery.o \
src/backend/distributed/transaction/worker_transaction.o \
src/backend/distributed/utils/citus_clauses.o \
src/backend/distributed/utils/citus_copyfuncs.o \
src/backend/distributed/utils/citus_nodefuncs.o \
src/backend/distributed/utils/citus_outfuncs.o \
src/backend/distributed/utils/citus_readfuncs.o \
src/backend/distributed/utils/citus_ruleutils.o \
src/backend/distributed/utils/citus_version.o \
src/backend/distributed/utils/colocation_utils.o \
src/backend/distributed/utils/distribution_column.o \
src/backend/distributed/utils/errormessage.o \
src/backend/distributed/utils/hash_helpers.o \
src/backend/distributed/utils/listutils.o \
src/backend/distributed/utils/maintenanced.o \
src/backend/distributed/utils/metadata_cache.o \
src/backend/distributed/utils/multi_partitioning_utils.o \
src/backend/distributed/utils/multi_resowner.o \
src/backend/distributed/utils/node_metadata.o \
src/backend/distributed/utils/reference_table_utils.o \
src/backend/distributed/utils/resource_lock.o \
src/backend/distributed/utils/ruleutils_10.o \
src/backend/distributed/utils/ruleutils_96.o \
src/backend/distributed/utils/shardinterval_utils.o \
src/backend/distributed/utils/statistics_collection.o \
src/backend/distributed/worker/task_tracker.o \
src/backend/distributed/worker/task_tracker_protocol.o \
src/backend/distributed/worker/worker_data_fetch_protocol.o \
src/backend/distributed/worker/worker_drop_protocol.o \
src/backend/distributed/worker/worker_file_access_protocol.o \
src/backend/distributed/worker/worker_merge_protocol.o \
src/backend/distributed/worker/worker_partition_protocol.o \
src/backend/distributed/worker/worker_truncate_trigger_protocol.o \
$(WIN32RES)
EXTENSION=
MODULE_big=
OBJS=
# the above is so that builds can work on Windows, the below is for all other platforms
citus_subdir = .
citus_top_builddir = .
# Hint that configure should be run first
ifeq (,$(wildcard Makefile.global))
$(error ./configure needs to be run before compiling Citus)
endif
include Makefile.global
all: extension
# build extension
extension: $(citus_top_builddir)/src/include/citus_version.h
$(MAKE) -C src/backend/distributed/ all
install-extension: extension
$(MAKE) -C src/backend/distributed/ install
install-headers: extension
$(MKDIR_P) '$(DESTDIR)$(includedir_server)/distributed/'
# generated headers are located in the build directory
$(INSTALL_DATA) $(citus_top_builddir)/src/include/citus_version.h '$(DESTDIR)$(includedir_server)/'
# the rest in the source tree
$(INSTALL_DATA) $(citus_abs_srcdir)/src/include/distributed/*.h '$(DESTDIR)$(includedir_server)/distributed/'
clean-extension:
$(MAKE) -C src/backend/distributed/ clean
.PHONY: extension install-extension clean-extension
# Add to generic targets
install: install-extension install-headers
clean: clean-extension
# apply or check style
reindent:
cd ${citus_abs_top_srcdir} && citus_indent --quiet
check-style:
cd ${citus_abs_top_srcdir} && citus_indent --quiet --check
.PHONY: reindent check-style
# depend on install for now
check: all install
$(MAKE) -C src/test/regress check-full
.PHONY: all check install clean