author | Jon Tibble <meths@btinternet.com> |
Mon, 04 May 2015 14:04:39 +0100 | |
branch | oi_151a |
changeset 254 | 9c2a4ac793f0 |
parent 93 | 3b6624e0d022 |
permissions | -rw-r--r-- |
93
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
1 |
# |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
3 |
# |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
7 |
# |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
12 |
# |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
18 |
# |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
20 |
# |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
21 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
22 |
# |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
23 |
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
24 |
# |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
25 |
#ident "@(#)Makefile.sfw 1.3 10/05/14 SMI" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
26 |
# |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
27 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
28 |
include ../../Makefile.cmd |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
29 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
30 |
VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
31 |
VER64 = $(VER)-64 |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
32 |
TARBALL = $(VER).tar.bz2 |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
33 |
PGMAJVER = `echo $(COMPONENT_VERSION:sh) | cut -d. -f-2` |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
34 |
PATCHES:sh = echo Patches/*.patch |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
35 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
36 |
# We disable rpath for all, because libpq is finally in /usr/lib. |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
37 |
# But we need still set rpath for libecpg. We need to patch libecpg |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
38 |
# Makefile separately. |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
39 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
40 |
CONFIGURE_OPTIONS = --prefix=/usr/postgres/$(PGMAJVER) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
41 |
CONFIGURE_OPTIONS += --exec-prefix=/usr/postgres/$(PGMAJVER) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
42 |
CONFIGURE_OPTIONS += --datadir=/usr/postgres/$(PGMAJVER)/share |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
43 |
CONFIGURE_OPTIONS += --sysconfdir=/etc/postgres |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
44 |
CONFIGURE_OPTIONS += --mandir=/usr/postgres/$(PGMAJVER)/man |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
45 |
CONFIGURE_OPTIONS += --includedir=/usr/postgres/$(PGMAJVER)/include |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
46 |
CONFIGURE_OPTIONS += --sharedstatedir=/var/postgres/$(PGMAJVER) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
47 |
CONFIGURE_OPTIONS += --localstatedir=/var/postgres/$(PGMAJVER) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
48 |
CONFIGURE_OPTIONS += --localedir=/usr/share/locale |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
49 |
CONFIGURE_OPTIONS += --docdir=/usr/postgres/$(PGMAJVER)/doc |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
50 |
CONFIGURE_OPTIONS += --htmldir=/usr/postgres/$(PGMAJVER)/doc |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
51 |
CONFIGURE_OPTIONS += --enable-nls |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
52 |
CONFIGURE_OPTIONS += --with-system-tzdata=/usr/share/lib/zoneinfo |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
53 |
CONFIGURE_OPTIONS += --with-tcl |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
54 |
CONFIGURE_OPTIONS += --with-python |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
55 |
CONFIGURE_OPTIONS += --with-pam |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
56 |
CONFIGURE_OPTIONS += --with-openssl |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
57 |
CONFIGURE_OPTIONS += --with-libedit-preferred |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
58 |
CONFIGURE_OPTIONS += --with-libxml |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
59 |
CONFIGURE_OPTIONS += --with-libxslt |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
60 |
CONFIGURE_OPTIONS += --with-gssapi |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
61 |
CONFIGURE_OPTIONS += --enable-thread-safety |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
62 |
CONFIGURE_OPTIONS += --enable-dtrace |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
63 |
CONFIGURE_OPTIONS += --enable-integer-datetimes |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
64 |
CONFIGURE_OPTIONS += --disable-rpath |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
65 |
CONFIGURE_OPTIONS += --with-includes=$(ROOT)/usr/include |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
66 |
CONFIGURE_OPTIONS += --with-tclconfig=$(ROOT)/usr/lib |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
67 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
68 |
CONFIGURE_OPTIONS32 = $(CONFIGURE_OPTIONS) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
69 |
CONFIGURE_OPTIONS32 += --with-perl |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
70 |
CONFIGURE_OPTIONS32 += --bindir=/usr/postgres/$(PGMAJVER)/bin |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
71 |
CONFIGURE_OPTIONS32 += --libexecdir=/usr/postgres/$(PGMAJVER)/bin |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
72 |
CONFIGURE_OPTIONS32 += --sbindir=/usr/postgres/$(PGMAJVER)/bin |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
73 |
CONFIGURE_OPTIONS32 += --libdir=/usr/postgres/$(PGMAJVER)/lib |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
74 |
CONFIGURE_OPTIONS32 += --with-libs=$(ROOT)/lib:$(ROOT)/usr/lib:/usr/lib |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
75 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
76 |
CONFIGURE_OPTIONS64 = $(CONFIGURE_OPTIONS) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
77 |
CONFIGURE_OPTIONS64 += --bindir=/usr/postgres/$(PGMAJVER)/bin/$(MACH64) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
78 |
CONFIGURE_OPTIONS64 += --libexecdir=/usr/postgres/$(PGMAJVER)/bin/$(MACH64) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
79 |
CONFIGURE_OPTIONS64 += --sbindir=/usr/postgres/$(PGMAJVER)/bin/$(MACH64) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
80 |
CONFIGURE_OPTIONS64 += --libdir=/usr/postgres/$(PGMAJVER)/lib/$(MACH64) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
81 |
CONFIGURE_OPTIONS64 += --with-libs=$(ROOT)/lib/$(MACH64):$(ROOT)/usr/lib/$(MACH64):/usr/lib/$(MACH64) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
82 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
83 |
# We need /usr/sbin for dtrace |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
84 |
SFW_PATH="$(PATH):/usr/sbin" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
85 |
CFLAGS_COM =-erroff=E_STATEMENT_NOT_REACHED |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
86 |
TARGET_ENV += CC="$(CC)" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
87 |
TARGET_ENV += LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
88 |
TARGET_ENV += MAKE="$(GMAKE)" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
89 |
TARGET_ENV += INSTALL="$(INSTALL_PROTO)" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
90 |
TARGET_ENV += PATH="$(SFW_PATH)" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
91 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
92 |
TARGET_ENV32 = $(TARGET_ENV) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
93 |
TARGET_ENV32 += PYTHON="$(PYTHON24)" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
94 |
TARGET_ENV32 += CFLAGS="$(CFLAGS) $(CFLAGS_COM)" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
95 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
96 |
TARGET_ENV64 = $(TARGET_ENV) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
97 |
TARGET_ENV64 += PYTHON="$(PYTHON24_64)" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
98 |
TARGET_ENV64 += CFLAGS="$(CFLAGS64) $(CFLAGS_COM)" |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
99 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
100 |
all:= TARGET = all |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
101 |
install:= TARGET = install |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
102 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
103 |
all: pg32all pg64all |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
104 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
105 |
pg32all: pg32 pg32contrib |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
106 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
107 |
pg64all: pg64 pg64contrib |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
108 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
109 |
pg32: $(VER)/config.status |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
110 |
(cd $(VER); env - $(GMAKE) $(TARGET) PATH="$(SFW_PATH)") |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
111 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
112 |
pg32contrib: pg32 |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
113 |
(cd $(VER)/contrib; env - $(GMAKE) $(TARGET) PATH="$(SFW_PATH)") |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
114 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
115 |
pg64: $(VER64)/config.status |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
116 |
(cd $(VER64); env - $(GMAKE) $(TARGET) PATH="$(SFW_PATH)") |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
117 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
118 |
pg64contrib: pg64 |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
119 |
(cd $(VER64)/contrib; env - $(GMAKE) $(TARGET) PATH="$(SFW_PATH)") |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
120 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
121 |
install: install-protofix |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
122 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
123 |
install-target: pg32install pg64install |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
124 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
125 |
pg32install: $(VER)/config.status |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
126 |
(cd $(VER); env - $(GMAKE) $(TARGET) DESTDIR=$(ROOT) PATH="$(SFW_PATH)") |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
127 |
(cd $(VER)/contrib; env - $(GMAKE) $(TARGET) DESTDIR=$(ROOT) PATH="$(SFW_PATH)") |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
128 |
(cd $(VER)/src/test/regress; env - $(GMAKE) install-tests DESTDIR=$(ROOT) PATH="$(SFW_PATH)") |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
129 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
130 |
$(SH) ./install-sfw ${PGMAJVER} ${VER} |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
131 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
132 |
pg64install: $(VER64)/config.status |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
133 |
for SRCDIR in src config contrib; do\ |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
134 |
(cd $(VER64)/$${SRCDIR}; env - $(GMAKE) $(TARGET) DESTDIR=$(ROOT) PATH="$(SFW_PATH)")\ |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
135 |
done |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
136 |
(cd $(VER64)/src/test/regress; env - $(GMAKE) install-lib DESTDIR=$(ROOT) PATH="$(SFW_PATH)") |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
137 |
MACH64=$(MACH64) $(SH) ./install-sfw-64 ${PGMAJVER} ${VER} |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
138 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
139 |
install-protofix: install-target |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
140 |
for pkg in $(COMPONENT_PACKAGES:sh); do \ |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
141 |
$(SRC)/tools/protofix --pkg $$pkg --perm ; \ |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
142 |
done |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
143 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
144 |
$(VER)/config.status: $(VER)/.patched |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
145 |
(cd $(VER) ; env - ./configure $(CONFIGURE_OPTIONS32) $(TARGET_ENV32)) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
146 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
147 |
$(VER64)/config.status: $(VER64)/.patched |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
148 |
(cd $(VER64) ; env - ./configure $(CONFIGURE_OPTIONS64) $(TARGET_ENV64)) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
149 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
150 |
clean: |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
151 |
-rm -rf $(VER) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
152 |
-rm -rf $(VER64) |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
153 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
154 |
include ../../Makefile.targ |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
155 |
|
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
156 |
FRC: |
3b6624e0d022
imported patch oi-postgresql
Alasdair Lumsden <al@everycity.co.uk>
parents:
diff
changeset
|
157 |