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

« back to all changes in this revision

Viewing changes to debian/Makefile.Debian.7.4

  • 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
PG_CONFIG = /usr/lib/postgresql/7.4/bin/pg_config
 
6
PSQLLIB = $(shell $(PG_CONFIG) --libdir)
 
7
DOCDIR  = /usr/share/doc/postgresql-7.4-plr
 
8
SQLDIR  = /usr/share/postgresql/7.4
 
9
 
 
10
CFLAGS  = -O2 -g
 
11
 
 
12
CPPFLAGS= -W -fPIC -I`$(PG_CONFIG) --includedir` -I`$(PG_CONFIG) --includedir-server` -I/usr/share/R/include -DDLSUFFIX=\".so\" -DPKGLIBDIR=\"$(PSQLLIB)\"
 
13
 
 
14
all: $(LIB) plr.sql
 
15
 
 
16
$(LIB): $(OBJS)
 
17
        $(CC) $(LDFLAGS) -L/usr/lib/R/lib -fPIC -shared -Wl,-soname,$(SONAME) $(OBJS) -lR -o $@
 
18
 
 
19
clean:
 
20
        rm -f *.o $(LIB) plr.sql
 
21
 
 
22
plr.sql: plr.sql.in
 
23
        sed 's,MODULE_PATHNAME,$$libdir/plr,g' plr.sql.in > plr.sql
 
24
 
 
25
install: $(LIB) plr.sql
 
26
        install -d $(DESTDIR)$(DOCDIR) $(DESTDIR)$(PSQLLIB) $(DESTDIR)$(SQLDIR)
 
27
        install -m 644 $(LIB) $(DESTDIR)$(PSQLLIB)/$(LIB)
 
28
        install -m 644 README.plr doc/*.html doc/*.css $(DESTDIR)$(DOCDIR)
 
29
        install -m 644 plr.sql $(DESTDIR)$(SQLDIR)/plr.sql