-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (18 loc) · 841 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
EXTENSION = chess_index
MODULE_big = chess_index
OBJS = src/chess_index.o src/board.o src/types.o src/distance.o
DATA = sql/chess_index--0.0.1.sql
REGRESS_OPTS = --inputdir=test \
--load-extension=chess_index
REGRESS = setup piece cpiece square board board_func piecesquare pfilter move
#DATA = $(filter-out $(wildcard sql/*--*.sql),$(wildcard sql/*.sql))
#MODULES = $(patsubst %.c,%,$(wildcard src/*.c))
#SHLIB_LINK += $(filter -lm, $(LIBS))
PG_CPPFLAGS = -std=c99
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
# need postgres built with coverage flags
#coverage:
# lcov -d . -c -o lcov.info
# genhtml --show-details --legend --output-directory=coverage --title=PostgreSQL --num-spaces=4 --prefix=./src/ `find . -name lcov.info -print`