-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (31 loc) · 855 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
28
29
30
31
32
33
34
35
36
37
38
# Makefile for PL/Lua
# $Id: Makefile,v 1.12 2009/09/20 14:20:48 carvalho Exp $
# Lua specific
# General
LUAINC ?=
LUALIB ?= -llua
# Debian/Ubuntu
# You may need to install the server-dev package
# corresponding to your server
# sudo apt-get install postgresql-server-dev-9.2
#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
DATA_built = pllua.sql
DATA = pllua--0.3.sql
REGRESS = plluatest
OBJS = pllua.o plluaapi.o plluaspi.o
PG_CPPFLAGS = $(LUAINC)
SHLIB_LINK = $(LUALIB)
EXTENSION = pllua
#PG_CONFIG = /usr/local/pgsql/bin/pg_config
PG_CONFIG ?= pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)