This repository has been archived by the owner on May 24, 2024. It is now read-only.
forked from Percona-Lab/clickhousedb_fdw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (46 loc) · 1.47 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
#-------------------------------------------------------------------------
#
# Makefile
# Foreign-data wrapper Makefile.
#
# Portions Copyright © 2018-2020, Percona LLC and/or its affiliates
#
# Portions Copyright © 2019-2020, Adjust GmbH
#
# Portions Copyright © 1996-2020, PostgreSQL Global Development Group
#
# Portions Copyright © 1994, The Regents of the University of California
#
# IDENTIFICATION
# contrib/clickhousedb_fdw/Makefile
#
#-------------------------------------------------------------------------
#
MODULE_big = clickhousedb_fdw
OBJS = clickhousedb_fdw.o clickhousedb_option.o clickhousedb_deparse.o clickhousedb_connection.o clickhousedb_shipable.o
PGFILEDESC = "clickhousedb_fdw - foreign data wrapper for ClickHouse"
PG_CPPFLAGS = -g3 -O0 -Wno-unused-function -Ilib
SHLIB_LINK_INTERNAL = -L.
EXTENSION = clickhousedb_fdw
DATA = clickhousedb_fdw--1.0.sql
REGRESS = clickhousedb_fdw
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
LIBDIR := $(shell $(PG_CONFIG) --libdir)
include $(PGXS)
else
SHLIB_PREREQS = libclickhouse
subdir = contrib/clickhousedb_fdw
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
all: libclean libcompile libinstall
libclean:
rm -rf libclickhouse-1.0.so lib/*.o
libcompile:
$(MAKE) -f lib/Makefile
libinstall:
$(MAKE) -f lib/Makefile
/usr/bin/install -c -m 755 libclickhouse-1.0.so $(LIBDIR)/libclickhouse-1.0.so