~ubuntu-branches/ubuntu/oneiric/plr/oneiric

« back to all changes in this revision

Viewing changes to debian/Makefile.Debian

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-07-23 10:21:03 UTC
  • mfrom: (3.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20060723102103-bs3qic50imfbhxmt
Tags: 1:0.6.2-4
Build on mips and mipsel again, now that the PostgreSQL SIGBUS problem
turned out to be a kernel bug (which is fixed in 2.6.16).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
SRCS    = plr.c pg_conversion.c pg_backend_support.c pg_userfuncs.c pg_rsupport.c
2
 
OBJS    = $(SRCS:.c=.o)
3
 
LIB     = plr.so
4
 
SONAME  = libplr.so.0
5
 
PSQLLIB = /usr/lib/postgresql/lib
6
 
DOCDIR  = /usr/share/doc/postgresql-plr
7
 
SQLDIR  = /usr/share/postgresql
8
 
 
9
 
CFLAGS  = -O2 -g
10
 
 
11
 
CPPFLAGS= -W -fPIC -I/usr/include/postgresql/ -I/usr/include/postgresql/server -I/usr/lib/R/include -DDLSUFFIX=\".so\" -DPKGLIBDIR=\"$(PSQLLIB)\"
12
 
 
13
 
all: $(LIB) plr.sql
14
 
 
15
 
$(LIB): $(OBJS)
16
 
        $(CC) -L/usr/lib/R/lib -fPIC -shared -Wl,-soname,$(SONAME) $(OBJS) -lR -o $@
17
 
 
18
 
clean:
19
 
        rm -f *.o $(LIB) plr.sql
20
 
 
21
 
plr.sql: plr.sql.in
22
 
        sed 's,MODULE_PATHNAME,$$libdir/plr,g' plr.sql.in > plr.sql
23
 
 
24
 
install: $(LIB) plr.sql
25
 
        install -d $(DESTDIR)$(DOCDIR) $(DESTDIR)$(PSQLLIB) $(DESTDIR)$(SQLDIR)
26
 
        install -m 644 $(LIB) $(DESTDIR)$(PSQLLIB)/$(LIB)
27
 
        install -m 644 README.plr doc/*.html doc/*.css $(DESTDIR)$(DOCDIR)
28
 
        install -m 644 plr.sql $(DESTDIR)$(SQLDIR)/plr.sql