mirror of https://github.com/citusdata/citus.git
32 lines
933 B
Makefile
32 lines
933 B
Makefile
# Makefile for the Citus extension
|
|
|
|
citus_subdir = src/backend/distributed
|
|
citus_top_builddir = ../../..
|
|
|
|
MODULE_big = citus
|
|
EXTENSION = citus
|
|
|
|
# All citus--*.sql files in the source directory
|
|
DATA = $(patsubst $(citus_abs_srcdir)/%.sql,%.sql,$(wildcard $(citus_abs_srcdir)/$(EXTENSION)--*.sql))
|
|
|
|
# directories with source files
|
|
SUBDIRS = . commands connection ddl executor master metadata planner progress relay test transaction utils worker
|
|
|
|
# That patsubst rule searches all directories listed in SUBDIRS for .c
|
|
# files, and adds the corresponding .o files to OBJS
|
|
OBJS += \
|
|
$(patsubst $(citus_abs_srcdir)/%.c,%.o,$(foreach dir,$(SUBDIRS), $(sort $(wildcard $(citus_abs_srcdir)/$(dir)/*.c))))
|
|
|
|
# be explicit about the default target
|
|
all:
|
|
|
|
NO_PGXS = 1
|
|
|
|
SHLIB_LINK = $(libpq)
|
|
|
|
include $(citus_top_builddir)/Makefile.global
|
|
|
|
SHLIB_LINK += $(filter -lssl -lcrypto -lssleay32 -leay32, $(LIBS))
|
|
|
|
override CPPFLAGS += -I$(libpq_srcdir)
|