File: Makefile

package info (click to toggle)
postgres-decoderbufs 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 184 kB
  • sloc: ansic: 559; makefile: 17; sql: 5; sh: 1
file content (15 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
MODULE_big = decoderbufs
EXTENSION = decoderbufs
REGRESS = decoderbufs

PROTOBUF_C_CFLAGS = $(shell pkg-config --cflags 'libprotobuf-c >= 1.0.0')
PROTOBUF_C_LDFLAGS = $(shell pkg-config --libs 'libprotobuf-c >= 1.0.0')

PG_CPPFLAGS += -std=c11 $(PROTOBUF_C_CFLAGS) -I/usr/local/include $(C_PARAMS)
SHLIB_LINK  += $(PROTOBUF_C_LDFLAGS)

OBJS = src/decoderbufs.o src/proto/pg_logicaldec.pb-c.o

PG_CONFIG ?= pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)