26 lines
651 B
Makefile
26 lines
651 B
Makefile
# contrib/pagehack/Makefile
|
|
MODULE_big = pagehack
|
|
OBJS = pagehack.o
|
|
|
|
# executable program, even there is no database server/client
|
|
PROGRAM = pagehack
|
|
all: submake-pagecompression
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/pagehack
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
override CPPFLAGS += -I${top_builddir}/src/lib/page_compression
|
|
override LDFLAGS += -L${top_builddir}/src/lib/page_compression
|
|
override CFLAGS += -lpagecompression -lzstd
|
|
ifeq ($(enable_debug), yes)
|
|
PG_CPPFLAGS += -DDEBUG
|
|
endif
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|