1212# 'make static' will download v8 and build, then statically link to it.
1313#
1414# -----------------------------------------------------------------------------#
15- PLV8_VERSION = 2 .1.0
15+ PLV8_VERSION = 0 .1.0-dev
1616
1717PG_CONFIG = pg_config
1818PGXS := $(shell $(PG_CONFIG ) --pgxs)
@@ -22,26 +22,16 @@ PG_VERSION_NUM := $(shell cat `$(PG_CONFIG) --includedir-server`/pg_config*.h \
2222
2323# set your custom C++ compler
2424CUSTOM_CC = g++
25- JSS = coffee-script.js livescript.js
26- # .cc created from .js
27- JSCS = $(JSS:.js=.cc )
2825SRCS = plv8.cc plv8_type.cc plv8_func.cc plv8_param.cc $(JSCS )
2926OBJS = $(SRCS:.cc=.o )
30- MODULE_big = plv8
31- EXTENSION = plv8
32- PLV8_DATA = plv8 .control plv8--$(PLV8_VERSION ) .sql
27+ MODULE_big = plv8u
28+ EXTENSION = plv8u
29+ PLV8_DATA = plv8u .control plv8--$(PLV8_VERSION ) .sql
3330
3431DATA = $(PLV8_DATA )
35- ifndef DISABLE_DIALECT
36- DATA += plcoffee.control plcoffee--$(PLV8_VERSION ) .sql \
37- plls.control plls--$(PLV8_VERSION ) .sql
38- endif
3932DATA_built = plv8.sql
4033REGRESS = init-extension plv8 plv8-errors inline json startup_pre startup varparam json_conv \
4134 jsonb_conv window guc es6 arraybuffer composites currentresource
42- ifndef DISABLE_DIALECT
43- REGRESS += dialect
44- endif
4535
4636SHLIB_LINK += -lv8
4737ifdef V8_OUTDIR
@@ -51,15 +41,6 @@ SHLIB_LINK += -lv8_libplatform
5141endif
5242
5343
54- # v8's remote debugger is optional at the moment, since we don't know
55- # how much of the v8 installation is built with debugger enabled.
56- ifdef ENABLE_DEBUGGER_SUPPORT
57- OPT_ENABLE_DEBUGGER_SUPPORT = -DENABLE_DEBUGGER_SUPPORT
58- endif
59-
60- # for older g++ (e.g. 4.6.x), which do not support c++11
61- # OPTFLAGS = -O2 -std=gnu++0x -fno-rtti
62-
6344OPTFLAGS = -O2 -std=c++11 -fno-rtti
6445
6546CCFLAGS = -Wall $(OPTFLAGS ) $(OPT_ENABLE_DEBUGGER_SUPPORT )
@@ -85,14 +66,6 @@ plv8_config.h: plv8_config.h.in Makefile
8566% .o : % .cc plv8_config.h plv8.h
8667 $(CUSTOM_CC ) $(CCFLAGS ) $(CPPFLAGS ) -fPIC -c -o $@ $<
8768
88- # Convert .js to .cc
89- $(JSCS ) : % .cc: % .js
90- echo " extern const unsigned char $( subst -,_,$( basename $@ ) ) _binary_data[] = {" > $@
91- ifndef DISABLE_DIALECT
92- (od -txC -v $< | \
93- sed -e "s/^[0-9]*//" -e s"/ \([0-9a-f][0-9a-f]\)/0x\1,/g" -e"\$$d" ) >>$@
94- endif
95- echo "0x00};" >>$@
9669
9770# VERSION specific definitions
9871ifeq ($(shell test $(PG_VERSION_NUM ) -ge 90100 && echo yes) , yes)
0 commit comments