-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (50 loc) · 1.21 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
56
57
58
59
60
61
62
63
64
65
# Makefile for PL/Lua
# $Id: Makefile,v 1.12 2009/09/20 14:20:48 carvalho Exp $
PG_CONFIG ?= pg_config
PKG_LIBDIR := $(shell $(PG_CONFIG) --pkglibdir)
# Lua specific
# General
LUA_INCDIR ?= /usr/include/lua5.1
LUALIB ?= -L/usr/local/lib -llua
# LuaJIT
#LUAINC = -I/usr/local/include/luajit-2.0
#LUALIB = -L/usr/local/lib -lluajit-5.1
HSTOREINC = ./postgres/contrib/hstore
HSTORESO = $(PKG_LIBDIR)/hstore.so
# Debian/Ubuntu
#LUAINC = -I/usr/include/lua5.1
#LUALIB = -llua5.1
# Fink
#LUAINC = -I/sw/include -I/sw/include/postgresql
#LUALIB = -L/sw/lib -llua
# Lua for Windows
#LUAINC = -IC:/PROGRA~1/Lua/5.1/include
#LUALIB = -LC:/PROGRA~1/Lua/5.1/lib -llua5.1
# no need to edit below here
MODULE_big = pllua
EXTENSION = pllua
DATA = pllua--1.0.sql
#DATA_built = pllua.sql
REGRESS = \
plluatest \
biginttest \
hstoretest \
pgfunctest \
subtransaction
OBJS = \
pllua.o \
pllua_debug.o \
pllua_xact_cleanup.o \
plluaapi.o \
plluaspi.o \
lua_int64.o \
pllua_hstore.o \
rtupdesc.o \
rtupdescstk.o \
pllua_pgfunc.o \
pllua_subxact.o
PG_CPPFLAGS = -I$(LUA_INCDIR) -I$(HSTOREINC) #-DPLLUA_DEBUG
SHLIB_LINK = $(LUALIB) $(HSTORESO)
#PG_CONFIG = /usr/local/pgsql/bin/pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)