Skip to content

Commit 0bd2232

Browse files
committed
Update build system.
1 parent 1c23cf4 commit 0bd2232

File tree

6 files changed

+31
-62
lines changed

6 files changed

+31
-62
lines changed

contrib/xml/Makefile

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,13 @@
1-
#-------------------------------------------------------------------------
2-
#
3-
# Makefile--
4-
# Adapted from tutorial makefile
5-
#-------------------------------------------------------------------------
1+
# $Header: /cvsroot/pgsql/contrib/xml/Attic/Makefile,v 1.3 2002/10/22 20:03:09 petere Exp $
62

73
subdir = contrib/xml
84
top_builddir = ../..
95
include $(top_builddir)/src/Makefile.global
106

11-
override CFLAGS+= $(CFLAGS_SL) -g
12-
13-
14-
#
15-
# DLOBJS is the dynamically-loaded object files. The "funcs" queries
16-
# include CREATE FUNCTIONs that load routines from these files.
17-
#
18-
DLOBJS= pgxml_dom$(DLSUFFIX)
19-
20-
21-
QUERIES= pgxml_dom.sql
22-
23-
all: $(DLOBJS) $(QUERIES)
24-
25-
%.so: %.o
26-
$(CC) -shared -lxml2 -o $@ $<
27-
28-
29-
%.sql: %.source
30-
if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \
31-
if [ -z "$$USER" ]; then USER=`whoami`; fi; \
32-
if [ -z "$$USER" ]; then echo 'Cannot deduce $$USER.'; exit 1; fi; \
33-
rm -f $@; \
34-
C=`pwd`; \
35-
sed -e "s:_CWD_:$$C:g" \
36-
-e "s:_OBJWD_:$$C:g" \
37-
-e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
38-
-e "s/_USER_/$$USER/g" < $< > $@
39-
40-
clean:
41-
rm -f $(DLOBJS) $(QUERIES)
42-
43-
44-
7+
MODULE_big = pgxml_dom
8+
OBJS = pgxml_dom.o
9+
SHLIB_LINK = -lxml2
10+
DATA_built = pgxml_dom.sql
11+
DOCS = README.pgxml
4512

13+
include $(top_srcdir)/contrib/contrib-global.mk
File renamed without changes.

contrib/xml/pgxml.source

Lines changed: 0 additions & 7 deletions
This file was deleted.

contrib/xml/pgxml.sql.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- SQL for XML parser
2+
3+
-- Adjust this setting to control where the objects get created.
4+
SET search_path TO public;
5+
6+
SET autocommit TO on;
7+
8+
CREATE OR REPLACE FUNCTION pgxml_parse(text) RETURNS boolean
9+
AS 'MODULE_PATHNAME' LANGUAGE c STRICT;
10+
11+
CREATE OR REPLACE FUNCTION pgxml_xpath(text, text, text, text) RETURNS text
12+
AS 'MODULE_PATHNAME' LANGUAGE c STRICT;

contrib/xml/pgxml_dom.source

Lines changed: 0 additions & 16 deletions
This file was deleted.

contrib/xml/pgxml_dom.sql.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- SQL for XML parser
2+
3+
-- Adjust this setting to control where the objects get created.
4+
SET search_path TO public;
5+
6+
SET autocommit TO on;
7+
8+
CREATE OR REPLACE FUNCTION pgxml_parse(text) RETURNS boolean
9+
AS 'MODULE_PATHNAME' LANGUAGE c STRICT;
10+
11+
CREATE OR REPLACE FUNCTION pgxml_xpath(text, text, text, text) RETURNS text
12+
AS 'MODULE_PATHNAME' LANGUAGE c STRICT;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy