#-------------------------------------------------------------------------
# Makefile--
#    Makefile for storage/cfs
#
# IDENTIFICATION
#    src/backend/storage/cfs/Makefile
#
#-------------------------------------------------------------------------

subdir = src/backend/storage/cfs
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global

# cfs_sql.o is always compiled: it holds the pg_proc.dat-registered SQL
# functions, whose bodies are guarded by #ifdef USE_CFS / #else stubs so the
# server links with or without the CFS feature.
OBJS = \
	cfs_sql.o

# The remaining CFS objects are compiled only when the feature is enabled.
ifeq ($(with_cfs),yes)
OBJS += \
	cfs_cfp.o \
	cfs_checkpoint.o \
	cfs_codec.o \
	cfs_codec_pglz.o \
	cfs_codec_zlib.o \
	cfs_compact.o \
	cfs_compress.o \
	cfs_format.o \
	cfs_fsck.o \
	cfs_guc.o \
	cfs_io.o \
	cfs_journal.o \
	cfs_map_file.o \
	cfs_path.o \
	cfs_recovery.o \
	cfs_rel.o \
	cfs_shmem.o \
	cfs_smgr.o \
	cfs_state.o \
	cfs_stats.o \
	cfs_storage.o \
	cfs_swap.o \
	cfs_sync.o
endif

include $(top_srcdir)/src/backend/common.mk
