-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (20 loc) · 819 Bytes
/
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
# Makefile to build the pg_amqp extension
EXTENSION = pg_ff3
DATA_built = $(EXTENSION)--1.0.sql
DATA = $(wildcard $(EXTENSION)--*--*.sql)
# compilation configuration
MODULE_big = $(EXTENSION)
OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c))
# OBJS = src/mail.o \
# src/mq-connection.o src/mq-publish.o \
# src/pgutils.o
#PG_CPPFLAGS = -std=gnu18
#PG_CPPFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter -Wno-maybe-uninitialized -Wno-implicit-fallthrough
PG_CPPFLAGS += -Isrc -I$(libpq_srcdir) $(shell pkg-config --cflags openssl)
SHLIB_LINK = $(libpq) $(shell pkg-config --libs openssl)
#EXTRA_CLEAN += $(addprefix src/,*.gcno *.gcda) # clean up after profiling runs
PG_CONFIG ?= pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
$(EXTENSION)--1.0.sql: $(EXTENSION).sql
cat $^ > $@