head	1.145;
access;
symbols
	REL9_0_0:1.145
	REL9_1_ALPHA1:1.145
	REL9_0_RC1:1.145
	REL9_0_BETA4:1.145
	REL9_0_STABLE:1.145.0.2
	REL9_0_BETA3:1.145
	REL9_0_BETA2:1.144
	REL7_4_29:1.95
	REL8_0_25:1.107.4.2
	REL8_1_21:1.110
	REL8_2_17:1.120
	REL8_3_11:1.125
	REL8_4_4:1.132.2.3
	REL9_0_BETA1:1.141
	REL9_0_ALPHA5_BRANCH:1.141.0.4
	REL9_0_ALPHA5:1.141
	REL7_4_28:1.95
	REL8_0_24:1.107.4.2
	REL8_1_20:1.110
	REL8_2_16:1.120
	REL8_3_10:1.125
	REL8_4_3:1.132.2.3
	REL9_0_ALPHA4:1.141
	REL9_0_ALPHA4_BRANCH:1.141.0.2
	REL8_5_ALPHA3:1.136
	REL8_5_ALPHA3_BRANCH:1.136.0.4
	REL7_4_27:1.95
	REL8_0_23:1.107.4.2
	REL8_1_19:1.110
	REL8_2_15:1.120
	REL8_3_9:1.125
	REL8_4_2:1.132.2.2
	REL8_5_ALPHA2:1.136
	REL8_5_ALPHA2_BRANCH:1.136.0.2
	REL7_4_26:1.95
	REL8_0_22:1.107.4.2
	REL8_1_18:1.110
	REL8_2_14:1.120
	REL8_3_8:1.125
	REL8_4_1:1.132
	REL8_5_ALPHA1:1.132
	REL8_5_ALPHA1_BRANCH:1.132.0.4
	REL8_4_STABLE:1.132.0.2
	REL8_4_0:1.132
	REL8_4_RC2:1.132
	REL8_4_RC1:1.132
	REL8_4_BETA2:1.132
	REL8_4_BETA1:1.132
	REL7_4_25:1.95
	REL8_0_21:1.107.4.2
	REL8_1_17:1.110
	REL8_2_13:1.120
	REL8_3_7:1.125
	REL7_4_24:1.95
	REL8_0_20:1.107.4.2
	REL8_1_16:1.110
	REL8_2_12:1.120
	REL8_3_6:1.125
	REL7_4_23:1.95
	REL8_0_19:1.107.4.2
	REL8_1_15:1.110
	REL8_2_11:1.120
	REL8_3_5:1.125
	REL7_4_22:1.95
	REL8_0_18:1.107.4.2
	REL8_1_14:1.110
	REL8_2_10:1.120
	REL8_3_4:1.125
	REL7_4_21:1.95
	REL8_0_17:1.107.4.2
	REL8_1_13:1.110
	REL8_2_9:1.120
	REL8_3_3:1.125
	REL7_4_20:1.95
	REL8_0_16:1.107.4.2
	REL8_1_12:1.110
	REL8_2_8:1.120
	REL8_3_2:1.125
	REL8_2_7:1.120
	REL8_3_1:1.125
	REL8_3_STABLE:1.125.0.2
	REL8_3_0:1.125
	REL8_3_RC2:1.125
	REL7_3_21:1.88
	REL7_4_19:1.95
	REL8_0_15:1.107.4.2
	REL8_1_11:1.110
	REL8_2_6:1.120
	REL8_3_RC1:1.125
	REL8_3_BETA4:1.124
	REL8_3_BETA3:1.124
	REL8_3_BETA2:1.124
	REL8_3_BETA1:1.124
	REL7_3_20:1.88
	REL7_4_18:1.95
	REL8_0_14:1.107.4.2
	REL8_1_10:1.110
	REL8_2_5:1.120
	REL7_3_19:1.88
	REL7_4_17:1.95
	REL8_0_13:1.107.4.2
	REL8_1_9:1.110
	REL8_2_4:1.120
	REL8_0_12:1.107.4.2
	REL8_1_8:1.110
	REL8_2_3:1.120
	REL7_3_18:1.88
	REL7_4_16:1.95
	REL8_0_11:1.107.4.2
	REL8_1_7:1.110
	REL8_2_2:1.120
	REL8_0_10:1.107.4.2
	REL8_1_6:1.110
	REL8_2_1:1.120
	REL7_4_15:1.95
	REL7_3_17:1.88
	REL8_2_STABLE:1.120.0.2
	REL8_2_0:1.120
	REL8_2_RC1:1.120
	REL8_2_BETA3:1.120
	REL8_2_BETA2:1.120
	REL8_1_5:1.110
	REL8_0_9:1.107.4.2
	REL7_4_14:1.95
	REL7_3_16:1.88
	REL8_2_BETA1:1.119
	REL7_3_15:1.88
	REL7_4_13:1.95
	REL8_0_8:1.107.4.2
	REL8_1_4:1.110
	REL7_3_14:1.88
	REL7_4_12:1.95
	REL8_0_7:1.107.4.2
	REL8_1_3:1.110
	REL7_3_13:1.88
	REL7_4_11:1.95
	REL8_0_6:1.107.4.2
	REL8_1_2:1.110
	REL7_3_12:1.88
	REL7_4_10:1.95
	REL8_0_5:1.107.4.2
	REL8_1_1:1.110
	REL8_1_STABLE:1.110.0.2
	REL8_1_0:1.110
	REL8_1_0RC1:1.110
	REL8_1_0BETA4:1.109
	REL8_1_0BETA3:1.109
	REL7_3_11:1.88
	REL7_4_9:1.95
	REL8_0_4:1.107.4.2
	REL8_1_0BETA2:1.109
	REL8_1_0BETA1:1.109
	REL7_2_8:1.75
	REL7_3_10:1.88
	REL7_4_8:1.95
	REL8_0_3:1.107.4.1
	REL8_0_2:1.107.4.1
	REL7_2_7:1.75
	REL7_3_9:1.88
	REL7_4_7:1.95
	REL8_0_1:1.107.4.1
	REL8_0_STABLE:1.107.0.4
	REL8_0_0:1.107.0.2
	REL8_0_0RC5:1.107
	REL8_0_0RC4:1.107
	REL8_0_0RC3:1.107
	REL8_0_0RC2:1.106
	REL8_0_0RC1:1.106
	REL8_0_0BETA5:1.106
	REL8_0_0BETA4:1.106
	REL7_4_6:1.95
	REL7_3_8:1.88
	REL7_2_6:1.75
	REL8_0_0BETA3:1.104
	REL8_0_0BETA2:1.104
	REL7_2_5:1.75
	REL7_4_5:1.95
	REL7_3_7:1.88
	REL7_4_4:1.95
	REL8_0_0BETA1:1.104
	REL7_4_3:1.95
	REL7_4_2:1.95
	REL7_3_6:1.88
	REL7_4_1:1.95
	REL7_3_5:1.88
	REL7_4:1.95
	REL7_4_RC2:1.95
	REL7_4_STABLE:1.95.0.4
	REL7_4_RC1:1.95
	REL7_4_BETA5:1.95
	REL7_4_BETA4:1.95
	REL7_4_BETA3:1.95
	REL7_4_BETA2:1.95
	WIN32_DEV:1.95.0.2
	REL7_4_BETA1:1.95
	REL7_3_4:1.88
	REL7_3_2:1.88
	REL7_2_4:1.75
	REL7_3_STABLE:1.88.0.2
	REL7_2_3:1.75
	REL7_2_STABLE:1.75.0.2
	REL7_2:1.75
	REL7_2_RC2:1.75
	REL7_2_RC1:1.75
	REL7_2_BETA5:1.75
	REL7_2_BETA4:1.75
	REL7_2_BETA3:1.75
	REL7_2_BETA2:1.74
	REL7_2_BETA1:1.74
	REL7_1_2:1.71
	REL7_1_STABLE:1.71.0.2
	REL7_1_BETA:1.68
	REL7_1_BETA3:1.68
	REL7_1_BETA2:1.68
	REL7_1:1.70
	REL7_0_PATCHES:1.47.0.2
	REL7_0:1.46
	REL6_5_PATCHES:1.38.0.2
	REL6_5:1.38
	REL6_4:1.33.0.2
	release-6-3:1.30
	REL2_0B:1.17.0.2
	REL2_0:1.17
	Release_2_0_0:1.2
	Release_1_0_3:1.2.0.2
	Release_2_0:1.2
	Release_1_0_2:1.2
	PG95-1_01:1.1.1.1
	PG95_DIST:1.1.1;
locks; strict;
comment	@# @;


1.145
date	2010.07.05.18.54.37;	author tgl;	state Exp;
branches;
next	1.144;

1.144
date	2010.05.12.23.48.36;	author momjian;	state Exp;
branches;
next	1.143;

1.143
date	2010.05.12.21.42.21;	author momjian;	state Exp;
branches;
next	1.142;

1.142
date	2010.05.12.11.33.09;	author momjian;	state Exp;
branches;
next	1.141;

1.141
date	2010.01.20.23.12.03;	author tgl;	state Exp;
branches;
next	1.140;

1.140
date	2010.01.15.09.18.59;	author heikki;	state Exp;
branches;
next	1.139;

1.139
date	2010.01.05.01.20.35;	author tgl;	state Exp;
branches;
next	1.138;

1.138
date	2010.01.05.01.06.56;	author tgl;	state Exp;
branches;
next	1.137;

1.137
date	2010.01.02.16.57.33;	author momjian;	state Exp;
branches;
next	1.136;

1.136
date	2009.09.05.21.14.04;	author tgl;	state Exp;
branches;
next	1.135;

1.135
date	2009.09.04.23.11.05;	author tgl;	state Exp;
branches;
next	1.134;

1.134
date	2009.08.28.20.26.18;	author petere;	state Exp;
branches;
next	1.133;

1.133
date	2009.08.26.22.24.43;	author petere;	state Exp;
branches;
next	1.132;

1.132
date	2009.01.01.17.23.34;	author momjian;	state Exp;
branches
	1.132.2.1;
next	1.131;

1.131
date	2008.12.19.16.25.16;	author petere;	state Exp;
branches;
next	1.130;

1.130
date	2008.08.29.13.02.32;	author petere;	state Exp;
branches;
next	1.129;

1.129
date	2008.08.01.13.16.08;	author alvherre;	state Exp;
branches;
next	1.128;

1.128
date	2008.03.17.19.44.40;	author petere;	state Exp;
branches;
next	1.127;

1.127
date	2008.02.26.14.42.27;	author petere;	state Exp;
branches;
next	1.126;

1.126
date	2008.02.25.17.55.42;	author petere;	state Exp;
branches;
next	1.125;

1.125
date	2008.01.01.19.45.45;	author momjian;	state Exp;
branches;
next	1.124;

1.124
date	2007.08.21.01.11.12;	author tgl;	state Exp;
branches;
next	1.123;

1.123
date	2007.07.24.09.00.27;	author mha;	state Exp;
branches;
next	1.122;

1.122
date	2007.02.09.15.55.57;	author petere;	state Exp;
branches;
next	1.121;

1.121
date	2007.01.20.17.16.10;	author petere;	state Exp;
branches;
next	1.120;

1.120
date	2006.10.08.17.15.33;	author tgl;	state Exp;
branches;
next	1.119;

1.119
date	2006.09.09.03.15.40;	author tgl;	state Exp;
branches;
next	1.118;

1.118
date	2006.08.16.14.57.37;	author petere;	state Exp;
branches;
next	1.117;

1.117
date	2006.07.24.16.32.44;	author petere;	state Exp;
branches;
next	1.116;

1.116
date	2006.06.22.23.50.35;	author tgl;	state Exp;
branches;
next	1.115;

1.115
date	2006.06.18.15.38.36;	author petere;	state Exp;
branches;
next	1.114;

1.114
date	2006.01.05.01.56.29;	author momjian;	state Exp;
branches;
next	1.113;

1.113
date	2005.12.09.21.19.34;	author petere;	state Exp;
branches;
next	1.112;

1.112
date	2005.11.28.22.43.30;	author tgl;	state Exp;
branches;
next	1.111;

1.111
date	2005.11.28.22.06.39;	author tgl;	state Exp;
branches;
next	1.110;

1.110
date	2005.10.27.20.45.29;	author tgl;	state Exp;
branches;
next	1.109;

1.109
date	2005.07.28.04.31.30;	author tgl;	state Exp;
branches;
next	1.108;

1.108
date	2005.01.26.21.55.26;	author tgl;	state Exp;
branches;
next	1.107;

1.107
date	2004.12.31.19.09.37;	author tgl;	state Exp;
branches
	1.107.4.1;
next	1.106;

1.106
date	2004.10.05.19.30.20;	author momjian;	state Exp;
branches;
next	1.105;

1.105
date	2004.10.04.13.43.54;	author momjian;	state Exp;
branches;
next	1.104;

1.104
date	2004.08.01.18.07.42;	author tgl;	state Exp;
branches;
next	1.103;

1.103
date	2004.07.21.20.34.44;	author momjian;	state Exp;
branches;
next	1.102;

1.102
date	2004.07.21.20.22.58;	author momjian;	state Exp;
branches;
next	1.101;

1.101
date	2004.07.19.17.03.56;	author tgl;	state Exp;
branches;
next	1.100;

1.100
date	2004.05.21.05.07.55;	author tgl;	state Exp;
branches;
next	1.99;

1.99
date	2004.04.30.16.08.01;	author momjian;	state Exp;
branches;
next	1.98;

1.98
date	2004.02.02.00.11.30;	author momjian;	state Exp;
branches;
next	1.97;

1.97
date	2003.11.29.19.51.39;	author pgsql;	state Exp;
branches;
next	1.96;

1.96
date	2003.11.11.03.53.32;	author momjian;	state Exp;
branches;
next	1.95;

1.95
date	2003.03.21.17.18.34;	author petere;	state Exp;
branches;
next	1.94;

1.94
date	2003.02.03.14.24.07;	author momjian;	state Exp;
branches;
next	1.93;

1.93
date	2003.01.26.01.19.22;	author momjian;	state Exp;
branches;
next	1.92;

1.92
date	2003.01.07.15.12.17;	author momjian;	state Exp;
branches;
next	1.91;

1.91
date	2003.01.07.04.25.29;	author momjian;	state Exp;
branches;
next	1.90;

1.90
date	2003.01.06.03.18.26;	author momjian;	state Exp;
branches;
next	1.89;

1.89
date	2002.12.14.00.24.23;	author petere;	state Exp;
branches;
next	1.88;

1.88
date	2002.10.09.16.21.54;	author momjian;	state Exp;
branches;
next	1.87;

1.87
date	2002.09.05.18.28.46;	author petere;	state Exp;
branches;
next	1.86;

1.86
date	2002.09.04.15.45.50;	author tgl;	state Exp;
branches;
next	1.85;

1.85
date	2002.08.21.20.42.24;	author petere;	state Exp;
branches;
next	1.84;

1.84
date	2002.08.10.17.59.28;	author petere;	state Exp;
branches;
next	1.83;

1.83
date	2002.08.08.07.47.42;	author ishii;	state Exp;
branches;
next	1.82;

1.82
date	2002.07.27.20.10.04;	author petere;	state Exp;
branches;
next	1.81;

1.81
date	2002.07.18.02.02.29;	author ishii;	state Exp;
branches;
next	1.80;

1.80
date	2002.07.16.05.46.35;	author momjian;	state Exp;
branches;
next	1.79;

1.79
date	2002.05.22.21.46.40;	author tgl;	state Exp;
branches;
next	1.78;

1.78
date	2002.05.05.00.03.28;	author tgl;	state Exp;
branches;
next	1.77;

1.77
date	2002.03.13.00.05.05;	author petere;	state Exp;
branches;
next	1.76;

1.76
date	2002.02.18.06.03.22;	author momjian;	state Exp;
branches;
next	1.75;

1.75
date	2001.11.20.00.27.13;	author tgl;	state Exp;
branches;
next	1.74;

1.74
date	2001.09.16.16.11.10;	author petere;	state Exp;
branches;
next	1.73;

1.73
date	2001.06.02.18.25.17;	author petere;	state Exp;
branches;
next	1.72;

1.72
date	2001.05.24.15.53.32;	author momjian;	state Exp;
branches;
next	1.71;

1.71
date	2001.04.23.20.27.55;	author petere;	state Exp;
branches;
next	1.70;

1.70
date	2001.04.04.21.15.56;	author tgl;	state Exp;
branches;
next	1.69;

1.69
date	2001.04.02.03.21.23;	author tgl;	state Exp;
branches;
next	1.68;

1.68
date	2000.11.30.20.36.10;	author petere;	state Exp;
branches;
next	1.67;

1.67
date	2000.10.20.21.03.39;	author petere;	state Exp;
branches;
next	1.66;

1.66
date	2000.10.07.18.43.22;	author petere;	state Exp;
branches;
next	1.65;

1.65
date	2000.09.17.13.02.30;	author petere;	state Exp;
branches;
next	1.64;

1.64
date	2000.08.31.16.09.23;	author petere;	state Exp;
branches;
next	1.63;

1.63
date	2000.07.19.16.29.44;	author petere;	state Exp;
branches;
next	1.62;

1.62
date	2000.07.16.14.50.44;	author petere;	state Exp;
branches;
next	1.61;

1.61
date	2000.07.14.15.30.56;	author thomas;	state Exp;
branches;
next	1.60;

1.60
date	2000.07.13.16.06.42;	author petere;	state Exp;
branches;
next	1.59;

1.59
date	2000.07.08.02.40.27;	author tgl;	state Exp;
branches;
next	1.58;

1.58
date	2000.07.06.21.33.14;	author petere;	state Exp;
branches;
next	1.57;

1.57
date	2000.07.02.15.20.44;	author petere;	state Exp;
branches;
next	1.56;

1.56
date	2000.06.28.03.30.57;	author tgl;	state Exp;
branches;
next	1.55;

1.55
date	2000.06.17.00.09.34;	author petere;	state Exp;
branches;
next	1.54;

1.54
date	2000.06.05.07.16.12;	author tgl;	state Exp;
branches;
next	1.53;

1.53
date	2000.06.04.01.44.28;	author petere;	state Exp;
branches;
next	1.52;

1.52
date	2000.05.31.00.28.13;	author petere;	state Exp;
branches;
next	1.51;

1.51
date	2000.05.30.16.36.14;	author momjian;	state Exp;
branches;
next	1.50;

1.50
date	2000.05.29.20.51.35;	author tgl;	state Exp;
branches;
next	1.49;

1.49
date	2000.05.29.05.44.33;	author tgl;	state Exp;
branches;
next	1.48;

1.48
date	2000.05.28.17.55.51;	author tgl;	state Exp;
branches;
next	1.47;

1.47
date	2000.05.11.17.46.28;	author momjian;	state Exp;
branches
	1.47.2.1;
next	1.46;

1.46
date	2000.04.08.19.38.00;	author momjian;	state Exp;
branches;
next	1.45;

1.45
date	2000.03.08.22.00.19;	author tgl;	state Exp;
branches;
next	1.44;

1.44
date	2000.03.08.01.58.16;	author momjian;	state Exp;
branches;
next	1.43;

1.43
date	2000.02.27.01.26.12;	author tgl;	state Exp;
branches;
next	1.42;

1.42
date	99.12.16.01.25.00;	author momjian;	state Exp;
branches;
next	1.41;

1.41
date	99.12.13.22.32.16;	author momjian;	state Exp;
branches;
next	1.40;

1.40
date	99.12.09.19.14.23;	author momjian;	state Exp;
branches;
next	1.39;

1.39
date	99.11.14.17.12.42;	author tgl;	state Exp;
branches;
next	1.38;

1.38
date	99.03.07.23.05.56;	author tgl;	state Exp;
branches;
next	1.37;

1.37
date	99.02.23.07.24.02;	author thomas;	state Exp;
branches;
next	1.36;

1.36
date	99.01.21.16.08.36;	author vadim;	state Exp;
branches;
next	1.35;

1.35
date	99.01.17.06.18.11;	author momjian;	state Exp;
branches;
next	1.34;

1.34
date	98.11.27.19.51.27;	author vadim;	state Exp;
branches;
next	1.33;

1.33
date	98.04.27.04.04.05;	author momjian;	state Exp;
branches;
next	1.32;

1.32
date	98.04.06.16.49.14;	author momjian;	state Exp;
branches;
next	1.31;

1.31
date	98.04.06.01.35.19;	author momjian;	state Exp;
branches;
next	1.30;

1.30
date	98.01.04.19.12.02;	author scrappy;	state Exp;
branches;
next	1.29;

1.29
date	97.12.20.00.22.06;	author scrappy;	state Exp;
branches;
next	1.28;

1.28
date	97.12.17.04.58.19;	author scrappy;	state Exp;
branches;
next	1.27;

1.27
date	97.11.13.03.22.10;	author momjian;	state Exp;
branches;
next	1.26;

1.26
date	97.09.20.16.08.24;	author thomas;	state Exp;
branches;
next	1.25;

1.25
date	97.09.19.19.44.30;	author scrappy;	state Exp;
branches;
next	1.24;

1.24
date	97.05.22.00.11.23;	author scrappy;	state Exp;
branches;
next	1.23;

1.23
date	97.04.04.10.38.49;	author scrappy;	state Exp;
branches;
next	1.22;

1.22
date	97.04.02.00.34.23;	author scrappy;	state Exp;
branches;
next	1.21;

1.21
date	97.03.25.08.14.25;	author scrappy;	state Exp;
branches;
next	1.20;

1.20
date	97.03.12.20.44.57;	author scrappy;	state Exp;
branches;
next	1.19;

1.19
date	97.02.19.13.09.29;	author scrappy;	state Exp;
branches;
next	1.18;

1.18
date	97.01.05.21.17.21;	author bryanh;	state Exp;
branches;
next	1.17;

1.17
date	96.11.23.09.51.57;	author bryanh;	state Exp;
branches;
next	1.16;

1.16
date	96.11.18.02.23.41;	author bryanh;	state Exp;
branches;
next	1.15;

1.15
date	96.11.12.06.46.04;	author bryanh;	state Exp;
branches;
next	1.14;

1.14
date	96.11.03.09.05.30;	author bryanh;	state Exp;
branches;
next	1.13;

1.13
date	96.11.01.03.35.43;	author momjian;	state Exp;
branches;
next	1.12;

1.12
date	96.11.01.01.46.00;	author momjian;	state Exp;
branches;
next	1.11;

1.11
date	96.10.31.07.25.15;	author scrappy;	state Exp;
branches;
next	1.10;

1.10
date	96.10.27.09.45.39;	author bryanh;	state Exp;
branches;
next	1.9;

1.9
date	96.10.12.07.44.39;	author bryanh;	state Exp;
branches;
next	1.8;

1.8
date	96.09.26.15.40.24;	author momjian;	state Exp;
branches;
next	1.7;

1.7
date	96.09.23.08.21.52;	author scrappy;	state Exp;
branches;
next	1.6;

1.6
date	96.09.21.06.27.11;	author scrappy;	state Exp;
branches;
next	1.5;

1.5
date	96.08.28.02.18.00;	author scrappy;	state Exp;
branches;
next	1.4;

1.4
date	96.08.27.06.10.50;	author scrappy;	state Exp;
branches;
next	1.3;

1.3
date	96.08.19.13.51.55;	author scrappy;	state Exp;
branches;
next	1.2;

1.2
date	96.07.31.17.19.49;	author scrappy;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	96.07.09.06.21.08;	author scrappy;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.07.09.06.21.08;	author scrappy;	state Exp;
branches;
next	;

1.2.2.1
date	96.08.19.13.46.19;	author scrappy;	state Exp;
branches;
next	;

1.47.2.1
date	2000.05.30.16.36.34;	author momjian;	state Exp;
branches;
next	;

1.107.4.1
date	2005.01.26.21.57.32;	author tgl;	state Exp;
branches;
next	1.107.4.2;

1.107.4.2
date	2005.08.02.01.35.22;	author tgl;	state Exp;
branches;
next	;

1.132.2.1
date	2009.09.04.23.11.10;	author tgl;	state Exp;
branches;
next	1.132.2.2;

1.132.2.2
date	2009.09.05.21.14.13;	author tgl;	state Exp;
branches;
next	1.132.2.3;

1.132.2.3
date	2010.01.20.23.12.15;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.145
log
@Split the LDFLAGS make variable into two parts: LDFLAGS is now used for
linking both executables and shared libraries, and we add on LDFLAGS_EX when
linking executables or LDFLAGS_SL when linking shared libraries.  This
provides a significantly cleaner way of dealing with link-time switches than
the former behavior.  Also, make sure that the various platform-specific
%.so: %.o rules incorporate LDFLAGS and LDFLAGS_SL; most of them missed that
before.  (I did not add these variables for the platforms that invoke $(LD)
directly, however.  It's not clear if we can do that safely, since for the
most part we assume these variables use CC command-line syntax.)

Per gripe from Aaron Swenson and subsequent investigation.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for the postgres backend
#
# Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.144 2010/05/12 23:48:36 momjian Exp $
#
#-------------------------------------------------------------------------

PGFILEDESC = "PostgreSQL Server"
# This is a daemon process, which is why it is not labeled as an executable
#PGAPPICON=win32

subdir = src/backend
top_builddir = ../..
include $(top_builddir)/src/Makefile.global

SUBDIRS = access bootstrap catalog parser commands executor foreign lib libpq \
	main nodes optimizer port postmaster regex replication rewrite \
	storage tcop tsearch utils $(top_builddir)/src/timezone

include $(srcdir)/common.mk

# As of 1/2010:
# The probes.o file is necessary for dtrace support on Solaris, and on recent
# versions of systemtap.  (Older systemtap releases just produce an empty
# file, but that's okay.)  However, OS X's dtrace doesn't use it and doesn't
# even recognize the -G option.  So, build probes.o except on Darwin.
# This might need adjustment as other platforms add dtrace support.
ifneq ($(PORTNAME), darwin)
ifeq ($(enable_dtrace), yes)
LOCALOBJS += utils/probes.o
endif
endif

OBJS = $(SUBDIROBJS) $(LOCALOBJS) $(top_builddir)/src/port/libpgport_srv.a

# We put libpgport into OBJS, so remove it from LIBS; also add libldap
LIBS := $(filter-out -lpgport, $(LIBS)) $(LDAP_LIBS_BE)

# The backend doesn't need everything that's in LIBS, however
LIBS := $(filter-out -lz -lreadline -ledit -ltermcap -lncurses -lcurses, $(LIBS))

##########################################################################

all: submake-libpgport submake-schemapg postgres $(POSTGRES_IMP)

ifneq ($(PORTNAME), cygwin)
ifneq ($(PORTNAME), win32)
ifneq ($(PORTNAME), aix)

postgres: $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $(export_dynamic) $(call expand_subsys,$^) $(LIBS) -o $@@

endif
endif
endif

ifeq ($(PORTNAME), cygwin)

postgres: $(OBJS) postgres.def libpostgres.a
	$(DLLTOOL) --dllname $@@$(X) --output-exp $@@.exp --def postgres.def
	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(call expand_subsys,$(OBJS)) $(LIBS)
	$(DLLTOOL) --dllname $@@$(X) --base-file $@@.base --output-exp $@@.exp --def postgres.def
	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) -Wl,--stack,$(WIN32_STACK_RLIMIT) -o $@@$(X) $@@.exp $(call expand_subsys,$(OBJS)) $(LIBS)
	rm -f $@@.exp $@@.base

postgres.def: $(OBJS)
	$(DLLTOOL) --export-all --output-def $@@ $(call expand_subsys,$^)

libpostgres.a: postgres.def
	$(DLLTOOL) --dllname postgres.exe --def postgres.def --output-lib $@@

endif # cygwin

ifeq ($(PORTNAME), win32)
LIBS += -lsecur32

postgres: $(OBJS) postgres.def libpostgres.a $(WIN32RES)
	$(DLLTOOL) --dllname $@@$(X) --output-exp $@@.exp --def postgres.def
	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(call expand_subsys,$(OBJS)) $(WIN32RES) $(LIBS)
	$(DLLTOOL) --dllname $@@$(X) --base-file $@@.base --output-exp $@@.exp --def postgres.def
	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) -Wl,--stack=$(WIN32_STACK_RLIMIT) -o $@@$(X) $@@.exp $(call expand_subsys,$(OBJS)) $(WIN32RES) $(LIBS)
	rm -f $@@.exp $@@.base

postgres.def: $(OBJS)
	$(DLLTOOL) --export-all --output-def $@@ $(call expand_subsys,$^)

libpostgres.a: postgres.def
	$(DLLTOOL) --dllname postgres.exe --def postgres.def --output-lib $@@

endif # win32

ifeq ($(PORTNAME), aix)

postgres: $(POSTGRES_IMP)
	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $(call expand_subsys,$(OBJS)) -Wl,-bE:$(top_builddir)/src/backend/$(POSTGRES_IMP) $(LIBS) -o $@@

$(POSTGRES_IMP): $(OBJS)
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(call expand_subsys,$^)
ifeq ($(host_os), aix3.2.5)
	$(MKLDEXPORT) SUBSYS.o $(bindir)/postgres > $@@
else
ifneq (,$(findstring aix4.1, $(host_os)))
	$(MKLDEXPORT) SUBSYS.o $(bindir)/postgres > $@@
else
	$(MKLDEXPORT) SUBSYS.o . > $@@
endif
endif
	@@rm -f SUBSYS.o

endif # aix

# Update the commonly used headers before building the subdirectories
$(SUBDIRS:%=%-recursive): $(top_builddir)/src/include/parser/gram.h $(top_builddir)/src/include/catalog/schemapg.h $(top_builddir)/src/include/utils/fmgroids.h $(top_builddir)/src/include/utils/probes.h

# run this unconditionally to avoid needing to know its dependencies here:
submake-schemapg:
	$(MAKE) -C catalog schemapg.h

.PHONY: submake-schemapg

catalog/schemapg.h: submake-schemapg


# The postgres.o target is needed by the rule in Makefile.global that
# creates the exports file when MAKE_EXPORTS = true.
postgres.o: $(OBJS)
	$(CC) $(LDREL) $(LDFLAGS) $(LDFLAGS_EX) $(call expand_subsys,$^) $(LIBS) -o $@@


# The following targets are specified in make commands that appear in
# the make files in our subdirectories. Note that it's important we
# match the dependencies shown in the subdirectory makefiles!

parser/gram.h: parser/gram.y
	$(MAKE) -C parser gram.h

utils/fmgroids.h: utils/Gen_fmgrtab.pl catalog/Catalog.pm $(top_srcdir)/src/include/catalog/pg_proc.h
	$(MAKE) -C utils fmgroids.h

utils/probes.h: utils/probes.d
	$(MAKE) -C utils probes.h

# Make symlinks for these headers in the include directory. That way
# we can cut down on the -I options. Also, a symlink is automatically
# up to date when we update the base file.
#
# The point of the prereqdir incantation in some of the rules below is to
# force the symlink to use an absolute path rather than a relative path.
# For headers which are generated by make distprep, the actual header within
# src/backend will be in the source tree, while the symlink in src/include
# will be in the build tree, so a simple ../.. reference won't work.
# For headers generated during regular builds, we prefer a relative symlink.

$(top_builddir)/src/include/parser/gram.h: parser/gram.h
	prereqdir=`cd $(dir $<) >/dev/null && pwd` && \
	  cd $(dir $@@) && rm -f $(notdir $@@) && \
	  $(LN_S) "$$prereqdir/$(notdir $<)" .

$(top_builddir)/src/include/catalog/schemapg.h: catalog/schemapg.h
	prereqdir=`cd $(dir $<) >/dev/null && pwd` && \
	  cd $(dir $@@) && rm -f $(notdir $@@) && \
	  $(LN_S) "$$prereqdir/$(notdir $<)" .

$(top_builddir)/src/include/utils/fmgroids.h: utils/fmgroids.h
	prereqdir=`cd $(dir $<) >/dev/null && pwd` && \
	  cd $(dir $@@) && rm -f $(notdir $@@) && \
	  $(LN_S) "$$prereqdir/$(notdir $<)" .

$(top_builddir)/src/include/utils/probes.h: utils/probes.h
	cd $(dir $@@) && rm -f $(notdir $@@) && \
	    $(LN_S) ../../../$(subdir)/utils/probes.h .


utils/probes.o: utils/probes.d $(SUBDIROBJS)
	$(DTRACE) $(DTRACEFLAGS) -C -G -s $(call expand_subsys,$^) -o $@@


##########################################################################

distprep:
	$(MAKE) -C parser	gram.c gram.h scan.c
	$(MAKE) -C bootstrap	bootparse.c bootscanner.c
	$(MAKE) -C catalog	schemapg.h postgres.bki postgres.description postgres.shdescription
	$(MAKE) -C utils	fmgrtab.c fmgroids.h 
	$(MAKE) -C utils/misc	guc-file.c


##########################################################################

install: all installdirs install-bin
ifeq ($(PORTNAME), cygwin)
ifeq ($(MAKE_DLL), true)
	$(INSTALL_DATA) libpostgres.a '$(DESTDIR)$(libdir)/libpostgres.a'
endif
endif
ifeq ($(PORTNAME), win32)
ifeq ($(MAKE_DLL), true)
	$(INSTALL_DATA) libpostgres.a '$(DESTDIR)$(libdir)/libpostgres.a'
endif
endif
	$(MAKE) -C catalog install-data
	$(MAKE) -C tsearch install-data
	$(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample '$(DESTDIR)$(datadir)/pg_hba.conf.sample'
	$(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample '$(DESTDIR)$(datadir)/pg_ident.conf.sample'
	$(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample '$(DESTDIR)$(datadir)/postgresql.conf.sample'
	$(INSTALL_DATA) $(srcdir)/access/transam/recovery.conf.sample '$(DESTDIR)$(datadir)/recovery.conf.sample'

install-bin: postgres $(POSTGRES_IMP) installdirs
	$(INSTALL_PROGRAM) postgres$(X) '$(DESTDIR)$(bindir)/postgres$(X)'
ifneq ($(PORTNAME), win32)
	@@rm -f '$(DESTDIR)$(bindir)/postmaster$(X)'
	ln -s postgres$(X) '$(DESTDIR)$(bindir)/postmaster$(X)'
else
	$(INSTALL_PROGRAM) postgres$(X) '$(DESTDIR)$(bindir)/postmaster$(X)'
endif
ifeq ($(MAKE_EXPORTS), true)
	$(INSTALL_DATA) $(POSTGRES_IMP) '$(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)'
endif

.PHONY: install-bin

installdirs:
	$(MKDIR_P) '$(DESTDIR)$(bindir)' '$(DESTDIR)$(datadir)'
ifeq ($(PORTNAME), cygwin)
ifeq ($(MAKE_DLL), true)
	$(MKDIR_P) '$(DESTDIR)$(libdir)'
endif
endif
ifeq ($(PORTNAME), win32)
ifeq ($(MAKE_DLL), true)
	$(MKDIR_P) '$(DESTDIR)$(libdir)'
endif
endif
ifeq ($(MAKE_EXPORTS), true)
	$(MKDIR_P) '$(DESTDIR)$(pkglibdir)'
endif


##########################################################################

uninstall:
	rm -f '$(DESTDIR)$(bindir)/postgres$(X)' '$(DESTDIR)$(bindir)/postmaster'
ifeq ($(MAKE_EXPORTS), true)
	rm -f '$(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)'
endif
ifeq ($(PORTNAME), cygwin)
ifeq ($(MAKE_DLL), true)
	rm -f '$(DESTDIR)$(libdir)/libpostgres.a'
endif
endif
ifeq ($(PORTNAME), win32)
ifeq ($(MAKE_DLL), true)
	rm -f '$(DESTDIR)$(libdir)/libpostgres.a'
endif
endif
	$(MAKE) -C catalog uninstall-data
	$(MAKE) -C tsearch uninstall-data
	rm -f '$(DESTDIR)$(datadir)/pg_hba.conf.sample' \
	      '$(DESTDIR)$(datadir)/pg_ident.conf.sample' \
              '$(DESTDIR)$(datadir)/postgresql.conf.sample' \
	      '$(DESTDIR)$(datadir)/recovery.conf.sample'


##########################################################################

clean:
	rm -f $(LOCALOBJS) postgres$(X) $(POSTGRES_IMP) \
		$(top_builddir)/src/include/parser/gram.h \
		$(top_builddir)/src/include/catalog/schemapg.h \
		$(top_builddir)/src/include/utils/fmgroids.h \
		$(top_builddir)/src/include/utils/probes.h
ifeq ($(PORTNAME), cygwin)
	rm -f postgres.dll postgres.def libpostgres.a
endif
ifeq ($(PORTNAME), win32)
	rm -f postgres.dll postgres.def libpostgres.a $(WIN32RES)
endif

distclean: clean
	rm -f port/tas.s port/dynloader.c port/pg_sema.c port/pg_shmem.c

maintainer-clean: distclean
	rm -f bootstrap/bootparse.c \
	      bootstrap/bootscanner.c \
	      parser/gram.c \
	      parser/scan.c \
	      parser/gram.h \
	      catalog/schemapg.h \
	      catalog/postgres.bki \
	      catalog/postgres.description \
	      catalog/postgres.shdescription \
	      utils/fmgroids.h \
	      utils/fmgrtab.c \
	      utils/misc/guc-file.c


##########################################################################
#
# Support for code development.
#
# Use target "quick" to build "postgres" when you know all the subsystems 
# are up to date.  It saves the time of doing all the submakes.
.PHONY: quick
quick: $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $(export_dynamic) $(call expand_subsys,$^) $(LIBS) -o postgres
@


1.144
log
@Update comment about why postmaster doesn't get an icon.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.143 2010/05/12 21:42:21 momjian Exp $
d55 1
a55 1
	$(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $(call expand_subsys,$^) $(LIBS) -o $@@
d65 1
a65 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(call expand_subsys,$(OBJS)) $(LIBS)
d67 1
a67 1
	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,--stack,$(WIN32_STACK_RLIMIT) -o $@@$(X) $@@.exp $(call expand_subsys,$(OBJS)) $(LIBS)
d83 1
a83 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(call expand_subsys,$(OBJS)) $(WIN32RES) $(LIBS)
d85 1
a85 1
	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,--stack=$(WIN32_STACK_RLIMIT) -o $@@$(X) $@@.exp $(call expand_subsys,$(OBJS)) $(WIN32RES) $(LIBS)
d99 1
a99 1
	$(CC) $(CFLAGS) $(LDFLAGS) $(call expand_subsys,$(OBJS)) -Wl,-bE:$(top_builddir)/src/backend/$(POSTGRES_IMP) $(LIBS) -o $@@
d131 1
a131 1
	$(CC) $(LDREL) $(LDFLAGS) $(call expand_subsys,$^) $(LIBS) -o $@@
d309 1
a309 1
	$(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $(call expand_subsys,$^) $(LIBS) -o postgres
@


1.143
log
@Remove Makefile PGFILEDESC tag that the postmaster is an executable.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.142 2010/05/12 11:33:09 momjian Exp $
d13 1
a13 1
# it is unclear that this should be labeled as an executable
@


1.142
log
@Add PGFILEDESC description to Makefiles for all /contrib executables.

Add PGAPPICON to all executable makefiles.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.141 2010/01/20 23:12:03 tgl Exp $
d13 2
a14 1
PGAPPICON=win32
@


1.141
log
@Well, the systemtap guys moved the goalposts again: with the latest version,
we *must* generate probes.o or the dtrace probes don't work.  Revert our
workaround for their previous bug.  Details at
https://bugzilla.redhat.com/show_bug.cgi?id=557266
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.140 2010/01/15 09:18:59 heikki Exp $
d13 2
@


1.140
log
@Introduce Streaming Replication.

This includes two new kinds of postmaster processes, walsenders and
walreceiver. Walreceiver is responsible for connecting to the primary server
and streaming WAL to disk, while walsender runs in the primary server and
streams WAL from disk to the client.

Documentation still needs work, but the basics are there. We will probably
pull the replication section to a new chapter later on, as well as the
sections describing file-based replication. But let's do that as a separate
patch, so that it's easier to see what has been added/changed. This patch
also adds a new section to the chapter about FE/BE protocol, documenting the
protocol used by walsender/walreceivxer.

Bump catalog version because of two new functions,
pg_last_xlog_receive_location() and pg_last_xlog_replay_location(), for
monitoring the progress of replication.

Fujii Masao, with additional hacking by me
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.139 2010/01/05 01:20:35 tgl Exp $
d23 7
a29 7
# As of 9/2009:
# * The probes.o file is necessary for dtrace support on Solaris.
# * OS X's dtrace doesn't use it and doesn't even recognize the -G option.
# * Systemtap's dtrace will take -G, but it produces a useless empty file.
# So, build probes.o only on Solaris.
# This will likely need adjustment as other platforms add dtrace support.
ifeq ($(PORTNAME), solaris)
@


1.139
log
@Fix parallel-make timing problem.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.138 2010/01/05 01:06:56 tgl Exp $
d18 1
a18 1
	main nodes optimizer port postmaster regex rewrite \
@


1.138
log
@Get rid of the need for manual maintenance of the initial contents of
pg_attribute, by having genbki.pl derive the information from the various
catalog header files.  This greatly simplifies modification of the
"bootstrapped" catalogs.

This patch finally kills genbki.sh and Gen_fmgrtab.sh; we now rely entirely on
Perl scripts for those build steps.  To avoid creating a Perl build dependency
where there was not one before, the output files generated by these scripts
are now treated as distprep targets, ie, they will be built and shipped in
tarballs.  But you will need a reasonably modern Perl (probably at least
5.6) if you want to build from a CVS pull.

The changes to the MSVC build process are untested, and may well break ---
we'll soon find out from the buildfarm.

John Naylor, based on ideas from Robert Haas and others
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.137 2010/01/02 16:57:33 momjian Exp $
d122 2
@


1.137
log
@Update copyright for the year 2010.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.136 2009/09/05 21:14:04 tgl Exp $
d45 1
a45 1
all: submake-libpgport postgres $(POSTGRES_IMP)
d114 7
a120 1
$(SUBDIRS:%=%-recursive): $(top_builddir)/src/include/parser/gram.h $(top_builddir)/src/include/utils/fmgroids.h $(top_builddir)/src/include/utils/probes.h
d136 1
a136 1
utils/fmgroids.h: utils/Gen_fmgrtab.sh $(top_srcdir)/src/include/catalog/pg_proc.h
d145 7
d158 5
d164 3
a166 2
	cd $(dir $@@) && rm -f $(notdir $@@) && \
	    $(LN_S) ../../../$(subdir)/utils/fmgroids.h .
d182 2
d267 4
a270 2
		$(top_srcdir)/src/include/parser/gram.h \
		$(top_builddir)/src/include/utils/fmgroids.h
d287 6
@


1.136
log
@Put back "ifeq ($(PORTNAME), solaris)", this time with some documentation
of why it's not as broken as it appears on first glance.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.135 2009/09/04 23:11:05 tgl Exp $
@


1.135
log
@Revert ill-considered restriction of dtrace support to Solaris only.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.134 2009/08/28 20:26:18 petere Exp $
d23 7
d33 1
@


1.134
log
@Derived files that are shipped in the distribution used to be built in the
source directory even for out-of-tree builds.  They are now alsl built in
the build tree.  This should be more convenient for certain developers'
workflows, and shouldn't really break anything else.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.133 2009/08/26 22:24:43 petere Exp $
a22 1
ifeq ($(PORTNAME), solaris)
a25 1
endif
a145 1
ifeq ($(PORTNAME), solaris)
a147 1
endif
@


1.133
log
@Update of install-sh, mkinstalldirs, and associated configury

Update install-sh to that from Autoconf 2.63, plus our Darwin-specific
changes (which I simplified a bit).  install-sh is now able to install
multiple files in one run, so we could simplify our makefiles sometime.

install-sh also now has a -d option to create directories, so we don't need
mkinstalldirs anymore.

Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available
instead of install-sh -d.  For consistency with the rest of the world,
the corresponding make variable has been renamed from $(mkinstalldirs) to
$(MKDIR_P).
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.132 2009/01/01 17:23:34 momjian Exp $
d121 1
a121 1
$(srcdir)/parser/gram.h: parser/gram.y
d134 1
a134 1
$(top_builddir)/src/include/parser/gram.h: $(srcdir)/parser/gram.h
d255 6
a260 6
	rm -f $(srcdir)/bootstrap/bootparse.c \
	      $(srcdir)/bootstrap/bootscanner.c \
	      $(srcdir)/parser/gram.c \
	      $(srcdir)/parser/scan.c \
	      $(srcdir)/parser/gram.h \
	      $(srcdir)/utils/misc/guc-file.c
@


1.132
log
@Update copyright for 2009.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.131 2008/12/19 16:25:16 petere Exp $
d197 1
a197 1
	$(mkinstalldirs) '$(DESTDIR)$(bindir)' '$(DESTDIR)$(datadir)'
d200 1
a200 1
	$(mkinstalldirs) '$(DESTDIR)$(libdir)'
d205 1
a205 1
	$(mkinstalldirs) '$(DESTDIR)$(libdir)'
d209 1
a209 1
	$(mkinstalldirs) '$(DESTDIR)$(pkglibdir)'
@


1.132.2.1
log
@Revert ill-considered restriction of dtrace support to Solaris only.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.132 2009/01/01 17:23:34 momjian Exp $
d23 1
d27 1
d148 1
d151 1
@


1.132.2.2
log
@Put back "ifeq ($(PORTNAME), solaris)", this time with some documentation
of why it's not as broken as it appears on first glance.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.132.2.1 2009/09/04 23:11:10 tgl Exp $
a22 7
# As of 9/2009:
# * The probes.o file is necessary for dtrace support on Solaris.
# * OS X's dtrace doesn't use it and doesn't even recognize the -G option.
# * Systemtap's dtrace will take -G, but it produces a useless empty file.
# So, build probes.o only on Solaris.
# This will likely need adjustment as other platforms add dtrace support.
ifeq ($(PORTNAME), solaris)
a25 1
endif
@


1.132.2.3
log
@Well, the systemtap guys moved the goalposts again: with the latest version,
we *must* generate probes.o or the dtrace probes don't work.  Revert our
workaround for their previous bug.  Details at
https://bugzilla.redhat.com/show_bug.cgi?id=557266
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.132.2.2 2009/09/05 21:14:13 tgl Exp $
d23 7
a29 7
# As of 1/2010:
# The probes.o file is necessary for dtrace support on Solaris, and on recent
# versions of systemtap.  (Older systemtap releases just produce an empty
# file, but that's okay.)  However, OS X's dtrace doesn't use it and doesn't
# even recognize the -G option.  So, build probes.o except on Darwin.
# This might need adjustment as other platforms add dtrace support.
ifneq ($(PORTNAME), darwin)
@


1.131
log
@SQL/MED catalog manipulation facilities

This doesn't do any remote or external things yet, but it gives modules
like plproxy and dblink a standardized and future-proof system for
managing their connection information.

Martin Pihlak and Peter Eisentraut
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.130 2008/08/29 13:02:32 petere Exp $
@


1.130
log
@Remove all traces that suggest that a non-Bison yacc might be supported, and
change build system to use only Bison.  Simplify build rules, make file names
uniform.  Don't build the token table header file where it is not needed.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.129 2008/08/01 13:16:08 alvherre Exp $
d17 1
a17 1
SUBDIRS = access bootstrap catalog parser commands executor lib libpq \
@


1.129
log
@Add a few more DTrace probes to the backend.

Robert Lor
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.128 2008/03/17 19:44:40 petere Exp $
d108 1
a108 1
$(SUBDIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h $(top_builddir)/src/include/utils/probes.h
d121 2
a122 2
$(srcdir)/parser/parse.h: parser/gram.y
	$(MAKE) -C parser parse.h
d134 1
a134 1
$(top_builddir)/src/include/parser/parse.h: $(srcdir)/parser/parse.h
d157 2
a158 2
	$(MAKE) -C parser	gram.c parse.h scan.c
	$(MAKE) -C bootstrap	bootparse.c bootstrap_tokens.h bootscanner.c
d242 1
a242 1
		$(top_srcdir)/src/include/parser/parse.h \
a256 1
	      $(srcdir)/bootstrap/bootstrap_tokens.h \
d259 1
a259 1
	      $(srcdir)/parser/parse.h \
@


1.128
log
@Enable probes to work with Mac OS X Leopard and other OSes that will
support DTrace in the future.

Switch from using DTRACE_PROBEn macros to the dynamically generated macros.
Use "dtrace -h" to create a header file that contains the dynamically
generated macros to be used in the source code instead of the DTRACE_PROBEn
macros.  A dummy header file is generated for builds without DTrace support.

Author: Robert Lor <Robert.Lor@@sun.com>
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.127 2008/02/26 14:42:27 petere Exp $
d150 1
a150 1
	$(DTRACE) $(DTRACEFLAGS) -G -s $(call expand_subsys,$^) -o $@@
@


1.127
log
@Fixed dtrace build

found by Magne Mæhre
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.126 2008/02/25 17:55:42 petere Exp $
d23 1
d27 1
d108 1
a108 1
$(SUBDIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
d127 3
d143 3
d147 2
d151 1
@


1.126
log
@Link postgres from all object files at once, to avoid the error-prone
SUBSYS.o step and allow for better optimization by the linker.

Instead of partial linking into SUBSYS.o, the list of object files is
assembled in objfiles.txt files that are expanded when the final
linking is done.

Because we are not yet sure how long command lines different platforms
can handle, the old way of linking is still available, by defining the
make variable PARTIAL_LINKING (e.g., make all PARTIAL_LINKING=1).  If
we determine that this is necessary for some platforms, then we will
document this in a more prominent place.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.125 2008/01/01 19:45:45 momjian Exp $
d140 1
a140 1
	$(DTRACE) $(DTRACEFLAGS) -G -s $^ -o $@@
@


1.125
log
@Update copyrights in source tree to 2008.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.124 2007/08/21 01:11:12 tgl Exp $
d17 1
a17 1
DIRS = access bootstrap catalog parser commands executor lib libpq \
d21 1
a21 1
SUBSYSOBJS = $(DIRS:%=%/SUBSYS.o)
d27 1
a27 1
OBJS = $(SUBSYSOBJS) $(LOCALOBJS) $(top_builddir)/src/port/libpgport_srv.a
d44 1
a44 1
	$(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $^ $(LIBS) -o $@@
d54 1
a54 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(OBJS) $(LIBS)
d56 1
a56 1
	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,--stack,$(WIN32_STACK_RLIMIT) -o $@@$(X) $@@.exp $(OBJS) $(LIBS)
d60 1
a60 1
	$(DLLTOOL) --export-all --output-def $@@ $^
d72 1
a72 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(OBJS) $(WIN32RES) $(LIBS)
d74 1
a74 1
	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,--stack=$(WIN32_STACK_RLIMIT) -o $@@$(X) $@@.exp $(OBJS) $(WIN32RES) $(LIBS)
d78 1
a78 1
	$(DLLTOOL) --export-all --output-def $@@ $^
d88 1
a88 1
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-bE:$(top_builddir)/src/backend/$(POSTGRES_IMP) $(LIBS) -o $@@
d91 1
a91 1
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $^
a104 4
# Parallel make trickery
$(SUBSYSOBJS): $(DIRS:%=%-recursive) ;

.PHONY: $(DIRS:%=%-recursive)
d106 1
a106 2
$(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
	$(MAKE) -C $(subst -recursive,,$@@) all
d112 1
a112 1
	$(CC) $(LDREL) $(LDFLAGS) $^ $(LIBS) -o $@@
d139 1
a139 1
utils/probes.o: utils/probes.d $(SUBSYSOBJS)
a238 1
	for i in $(DIRS); do $(MAKE) -C $$i clean || exit; done
d261 1
a261 1
	$(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $^ $(LIBS) -o postgres
@


1.124
log
@Tsearch2 functionality migrates to core.  The bulk of this work is by
Oleg Bartunov and Teodor Sigaev, but I did a lot of editorializing,
so anything that's broken is probably my fault.

Documentation is nonexistent as yet, but let's land the patch so we can
get some portability testing done.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.123 2007/07/24 09:00:27 mha Exp $
@


1.123
log
@Make it possible, and default, for MingW to build with SSPI support
by dynamically loading the function that's missing from the MingW
headers and library.
@
text
@d5 2
a6 1
# Copyright (c) 1994, Regents of the University of California
d8 1
a8 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.122 2007/02/09 15:55:57 petere Exp $
d19 1
a19 1
	storage tcop utils $(top_builddir)/src/timezone
d170 1
d225 1
@


1.122
log
@Replace useless uses of := by = in makefiles.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.121 2007/01/20 17:16:10 petere Exp $
d67 1
@


1.121
log
@Remove remains of old depend target.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.120 2006/10/08 17:15:33 tgl Exp $
d16 1
a16 1
DIRS := access bootstrap catalog parser commands executor lib libpq \
d20 1
a20 1
SUBSYSOBJS := $(DIRS:%=%/SUBSYS.o)
@


1.120
log
@On Windows, we know the backend stack size limit because we have to
specify it explicitly in backend/Makefile.  Arrange for this value to
be known by get_stack_depth_rlimit() too.  Per suggestion from Magnus.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.119 2006/09/09 03:15:40 tgl Exp $
a263 3

depend dep: $(top_srcdir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
	for i in $(DIRS); do $(MAKE) -C $$i $@@; done
@


1.119
log
@Revise OpenLDAP configuration and linking to work on more platforms
than before.  Albe Laurenz (but editorialized heavily by me, so if it
doesn't work it's my fault).
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.118 2006/08/16 14:57:37 petere Exp $
d55 1
a55 1
	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,--stack,4194304 -o $@@$(X) $@@.exp $(OBJS) $(LIBS)
d72 1
a72 1
	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,--stack=4194304 -o $@@$(X) $@@.exp $(OBJS) $(WIN32RES) $(LIBS)
@


1.118
log
@Put probes.o file in right directory, fixes dtrace compilation
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.117 2006/07/24 16:32:44 petere Exp $
d28 2
a29 2
# We put libpgport into OBJS, so remove it from LIBS
LIBS := $(filter-out -lpgport, $(LIBS))
@


1.117
log
@DTrace support, with a small initial set of probes

by Robert Lor
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.116 2006/06/22 23:50:35 tgl Exp $
d143 1
a143 1
	$(DTRACE) $(DTRACEFLAGS) -G -s $^
@


1.116
log
@Remove dllinit.c; it was only needed for long-obsolete Cygwin versions,
and there was some question about its copyright status.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.115 2006/06/18 15:38:36 petere Exp $
d22 5
a26 1
OBJS := $(SUBSYSOBJS) $(top_builddir)/src/port/libpgport_srv.a
d142 4
d231 1
a231 1
	rm -f postgres$(X) $(POSTGRES_IMP) \
@


1.115
log
@Merge postmaster and postgres command into just postgres.  postmaster
symlink is kept for now for compatibility.  To call single-user mode, use
postgres --single.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.114 2006/01/05 01:56:29 momjian Exp $
d47 1
a47 1
postgres: $(OBJS) $(DLLINIT) postgres.def libpostgres.a
d64 1
a64 1
postgres: $(OBJS) $(DLLINIT) postgres.def libpostgres.a $(WIN32RES)
a107 3
$(DLLINIT): $(DLLINIT:%.o=%.c)
	$(MAKE) -C $(@@D) $(@@F)

@


1.114
log
@Remove QNX port.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.113 2005/12/09 21:19:34 petere Exp $
d11 1
a11 1
PGFILEDESC = "PostgreSQL Database Backend"
@


1.113
log
@Allow installation into directories containing spaces in the name.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.112 2005/11/28 22:43:30 tgl Exp $
a29 8
ifeq ($(PORTNAME), qnx4)
# This file crashes qnx4's wlink and is therefore not in
# bootstrap/SUBSYS.o on that platform. (Wotta hack ... is it still
# necessary?) [ Yes, until the Watcom compiler goes open source it's
# effectively unsupported ]
OBJS += bootstrap/bootstrap.o
endif

@


1.112
log
@Come to think of it, the backend doesn't use -lz either.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.111 2005/11/28 22:06:39 tgl Exp $
d162 1
a162 1
	$(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a
d167 1
a167 1
	$(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a
d171 4
a174 4
	$(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample $(DESTDIR)$(datadir)/pg_hba.conf.sample
	$(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample $(DESTDIR)$(datadir)/pg_ident.conf.sample
	$(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample
	$(INSTALL_DATA) $(srcdir)/access/transam/recovery.conf.sample $(DESTDIR)$(datadir)/recovery.conf.sample
d177 1
a177 1
	$(INSTALL_PROGRAM) postgres$(X) $(DESTDIR)$(bindir)/postgres$(X)
d179 2
a180 2
	@@rm -f $(DESTDIR)$(bindir)/postmaster$(X)
	ln -s postgres$(X) $(DESTDIR)$(bindir)/postmaster$(X)
d182 1
a182 1
	$(INSTALL_PROGRAM) postgres$(X) $(DESTDIR)$(bindir)/postmaster$(X)
d185 1
a185 1
	$(INSTALL_DATA) $(POSTGRES_IMP) $(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)
d191 1
a191 1
	$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(datadir)
d194 1
a194 1
	$(mkinstalldirs) $(DESTDIR)$(libdir)
d199 1
a199 1
	$(mkinstalldirs) $(DESTDIR)$(libdir)
d203 1
a203 1
	$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
d210 1
a210 1
	rm -f $(DESTDIR)$(bindir)/postgres$(X) $(DESTDIR)$(bindir)/postmaster
d212 1
a212 1
	rm -f $(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)
d216 1
a216 1
	rm -f $(DESTDIR)$(libdir)/libpostgres.a
d221 1
a221 1
	rm -f $(DESTDIR)$(libdir)/libpostgres.a
d225 4
a228 4
	rm -f $(DESTDIR)$(datadir)/pg_hba.conf.sample \
	      $(DESTDIR)$(datadir)/pg_service.conf.sample \
	      $(DESTDIR)$(datadir)/pg_ident.conf.sample \
              $(DESTDIR)$(datadir)/postgresql.conf.sample
@


1.111
log
@Don't link readline and supporting libraries into the backend.
After a proposal by Martijn van Oosterhout (not exactly his patch though).
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.110 2005/10/27 20:45:29 tgl Exp $
d25 1
a25 1
LIBS := $(patsubst -lpgport, , $(LIBS))
d28 1
a28 1
LIBS := $(filter-out -lreadline -ledit -ltermcap -lncurses -lcurses, $(LIBS))
@


1.110
log
@Add an ifneq to avoid make warning on AIX --- there is a separate rule
for postgres: on line 86, and line 43 shouldn't be used.  Noted while
looking at kookaburra buildfarm results.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.109 2005/07/28 04:31:30 tgl Exp $
d27 3
@


1.109
log
@Put libpgport into OBJS instead of LIBS, so that it gets included
into .def and .exp files automatically on Windows, AIX, and the like.
An additional benefit is that changes in libpgport files correctly
propagate to force rebuild of the backend executable.  This is my
reworking of Rocco Altier's idea, and if it breaks anything it's
definitely my fault.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.108 2005/01/26 21:55:26 tgl Exp $
d41 1
d48 1
d51 1
a83 1

@


1.108
log
@On Windows, set the postmaster executable's stack size to 4MB, so that
it agrees with the default value of max_stack_depth.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.107 2004/12/31 19:09:37 tgl Exp $
d20 6
a25 1
OBJS := $(DIRS:%=%/SUBSYS.o)
d32 1
a32 1
OBJS+= bootstrap/bootstrap.o
a34 3
# Use server version of port library
LIBS := $(patsubst -lpgport,-lpgport_srv, $(LIBS))

d74 1
a74 1
	$(DLLTOOL) --export-all --output-def $@@ $^ $(top_builddir)/src/port/libpgport.a
d103 1
a103 1
$(OBJS): $(DIRS:%=%-recursive) ;
@


1.107
log
@Clean up win32ver.o on Windows, per Magnus.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.106 2004/10/05 19:30:20 momjian Exp $
d51 1
a51 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@@$(X) $@@.exp $(OBJS) $(LIBS)
d68 1
a68 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@@$(X) $@@.exp $(OBJS) $(WIN32RES) $(LIBS)
@


1.107.4.1
log
@On Windows, set the postmaster executable's stack size to 4MB, so that
it agrees with the default value of max_stack_depth.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.108 2005/01/26 21:55:26 tgl Exp $
d51 1
a51 1
	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,--stack,4194304 -o $@@$(X) $@@.exp $(OBJS) $(LIBS)
d68 1
a68 1
	$(CC) $(CFLAGS) $(LDFLAGS) -Wl,--stack=4194304 -o $@@$(X) $@@.exp $(OBJS) $(WIN32RES) $(LIBS)
@


1.107.4.2
log
@Back-port several small portability fixes to get contrib building
cleanly on AIX in the 8.0 branch.  Rocco Altier
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/backend/Makefile,v 1.107.4.1 2005/01/26 21:57:32 tgl Exp $
d20 1
a20 6
SUBSYSOBJS := $(DIRS:%=%/SUBSYS.o)

OBJS := $(SUBSYSOBJS) $(top_builddir)/src/port/libpgport_srv.a

# We put libpgport into OBJS, so remove it from LIBS
LIBS := $(patsubst -lpgport, , $(LIBS))
d27 1
a27 1
OBJS += bootstrap/bootstrap.o
d30 3
d72 1
a72 1
	$(DLLTOOL) --export-all --output-def $@@ $^
d101 1
a101 1
$(SUBSYSOBJS): $(DIRS:%=%-recursive) ;
@


1.106
log
@Add Win32 version info to client binaries.

Magnus Hagander
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/backend/Makefile,v 1.105 2004/10/04 13:43:54 momjian Exp $
d234 1
a234 1
	rm -f postgres.dll postgres.def libpostgres.a
@


1.105
log
@Make libpgport be front-end only and make libpgport_srv be a backend
library that uses palloc, ereport, etc.  This simplifies the makefiles
for client applications.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/backend/Makefile,v 1.104 2004/08/01 18:07:42 tgl Exp $
d11 1
d64 1
a64 1
postgres: $(OBJS) $(DLLINIT) postgres.def libpostgres.a
d66 1
a66 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(OBJS) $(LIBS)
d68 1
a68 1
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@@$(X) $@@.exp $(OBJS) $(LIBS)
@


1.104
log
@Add libpgport to postgres.def for Windows build.  Per Magnus Hagander.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/backend/Makefile,v 1.103 2004/07/21 20:34:44 momjian Exp $
d29 2
@


1.103
log
@Back out pg_autovacuum commit after cvs clean failure causes commit.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/backend/Makefile,v 1.101 2004/07/19 17:03:56 tgl Exp $
d69 1
a69 1
	$(DLLTOOL) --export-all --output-def $@@ $^
@


1.102
log
@lease find enclosed a patch that matches the PL/Perl documentation
(fairly closely, I hope) to the current PL/Perl implementation.

David Fetter
@
text
@d32 1
a32 1
all: submake-libpgport submake-libpq postgres $(POSTGRES_IMP)
d38 1
a38 1
	$(CC) $(CFLAGS) $(LDFLAGS) -I $(libpq_srcdir) $(export_dynamic) $^ $(LIBS)  $(libpq) -o $@@
@


1.101
log
@Install recovery.conf.sample into the /share install directory.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/backend/Makefile,v 1.100 2004/05/21 05:07:55 tgl Exp $
d32 1
a32 1
all: submake-libpgport postgres $(POSTGRES_IMP)
d38 1
a38 1
	$(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $^ $(LIBS) -o $@@
@


1.100
log
@Integrate src/timezone library for all platforms.  There is more we can
and should do now that we control our own destiny for timezone handling,
but this commit gets the bulk of the picayune diffs in place.
Magnus Hagander and Tom Lane.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/backend/Makefile,v 1.99 2004/04/30 16:08:01 momjian Exp $
d164 1
@


1.99
log
@More cleanups for USE_PGTZ.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/backend/Makefile,v 1.98 2004/02/02 00:11:30 momjian Exp $
d17 1
a17 5
	storage tcop utils

ifeq ($(USE_PGTZ), yes)
DIRS+= $(top_builddir)/src/timezone
endif
@


1.98
log
@Briefly,
 * configure + Makefile changes
 * shared memory attaching in EXEC_BACKEND case (+ minor fix for apparent
cygwin bug under cygwin/EXEC_BACKEND case only)
 * PATH env var separator differences
 * missing win32 rand functions added
 * placeholder replacements for sync etc under port.h


To those who are really interested, and there are a few of you: the attached
patch + file will allow the source base to be compiled (and, for some
definition, "run") under MingW, with the following caveats (I wanted to
first properly fix all but the last of these, but y'all won't quit asking
for a patch :-):

        * child death: SIGCHLD not yet sent, so as a minimum, you'll need to
put in some sort of delay after StartupDatabase, and handle setting
StartupPID to 0 etc (ie. the stuff the reaper() signal function is supposed
to do)

        * dirmod.c: comment out the elog calls

        * dfmgr.c: some hackage required to substitute_libpath_macro

        * slru/xact.c: comment out the errno checking after the readdir
(fixed by next version of MingW)

Again, this is only if you *really* want to see postgres compile and start,
and is a nice leg-up for working on the other Win32 TODO list items. Just
don't expect too much else from it at this point...


Claudio Natoli
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql-server/src/backend/Makefile,v 1.97 2003/11/29 19:51:39 pgsql Exp $
d18 4
@


1.97
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
# $PostgreSQL: /cvsroot/pgsql-server/src/backend/Makefile,v 1.96 2003/11/11 03:53:32 momjian Exp $
d35 1
d40 2
a41 1
else # cygwin
d43 1
d59 18
d155 5
d186 5
d208 5
d227 3
@


1.96
log
@Add .exe to Win32 stat calls.  Don't symlink postmaster on Win32.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.95 2003/03/21 17:18:34 petere Exp $
@


1.95
log
@Make "win" a separate port from "cygwin".  This means you can now
configure under native Windows (MinGW that is), but you won't get very far
compiling yet.  The dynaloader files are from Jan Wieck's patch set.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.94 2003/02/03 14:24:07 momjian Exp $
d141 6
a146 2
	@@rm -f $(DESTDIR)$(bindir)/postmaster
	ln -s postgres$(X) $(DESTDIR)$(bindir)/postmaster
@


1.94
log
@Move pg_service.conf.sample to /interfaces/libpq.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.93 2003/01/26 01:19:22 momjian Exp $
d34 1
a34 1
ifneq ($(PORTNAME), win)
d39 1
a39 1
else # win
d54 1
a54 1
endif # win
d129 1
a129 1
ifeq ($(PORTNAME), win)
d151 1
a151 1
ifeq ($(PORTNAME), win)
d168 1
a168 1
ifeq ($(PORTNAME), win)
d186 1
a186 1
ifeq ($(PORTNAME), win)
@


1.93
log
@Include IPv6 addresses in pg_hba.conf even if IPv6 is not supported;  at
suggestion of Peter.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.92 2003/01/07 15:12:17 momjian Exp $
a135 1
	$(INSTALL_DATA) $(srcdir)/libpq/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service.conf.sample
@


1.92
log
@Fix missing tab in file.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.91 2003/01/07 04:25:29 momjian Exp $
a134 1
ifdef HAVE_IPV6
a135 6
else
	grep -v '^host.*::1.*ffff:ffff:ffff:ffff:ffff:ffff' \
		$(srcdir)/libpq/pg_hba.conf.sample \
		> $(srcdir)/libpq/pg_hba.conf.sample.no_ipv6
	$(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample.no_ipv6 $(DESTDIR)$(datadir)/pg_hba.conf.sample
endif
a186 3
ifndef HAVE_IPV6
	rm -f $(srcdir)/libpq/pg_hba.conf.sample.no_ipv6
endif
@


1.91
log
@Document libpq service capability, and add sample file.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.90 2003/01/06 03:18:26 momjian Exp $
d145 1
a145 1
        $(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample
@


1.90
log
@Enable IPv6 connections to the server, and add pg_hba.conf IPv6 entries
if the OS supports it.  Code will still compile on non-IPv6-aware
machines (feature added by Bruce).

Nigel Kukard
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.89 2002/12/14 00:24:23 petere Exp $
d143 1
d145 1
a145 1
	$(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample
d183 1
d185 1
a185 1
	      $(DESTDIR)$(datadir)/postgresql.conf.sample
@


1.89
log
@Initial version of the SQL information schema
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.88 2002/10/09 16:21:54 momjian Exp $
d135 1
d137 6
d192 3
@


1.88
log
@> > > > and mb conversions (pg_ascii2mic and pg_mic2ascii not
> > > > found in the postmaster and not included from elsewhere)
> >
> > shared libs on AIX need to be able to resolve all symbols at linkage time.
> > Those two symbols are in backend/utils/SUBSYS.o but not in the postgres
> > executable.
>
> They are defined in backend/utils/mb/conv.c and declared in
> include/mb/pg_wchar.h.  They're also linked into the
> postmaster.  I don't see anything unusual.

Attached is a patch to fix the mb linking problems on AIX. As a nice side effect

it reduces the duplicate symbol warnings to linking libpq.so and libecpg.so
(all shlibs that are not postmaster loadable modules).

Please apply to current (only affects AIX).

The _LARGE_FILES problem is unfortunately still open, unless Peter
has fixed it per his recent idea.

Zeugswetter Andreas SB SD
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.87 2002/09/05 18:28:46 petere Exp $
d134 1
a134 1
	$(MAKE) -C catalog install-bki
d173 1
a173 1
	$(MAKE) -C catalog uninstall-bki
@


1.87
log
@Assorted fixes for Cygwin:

Eliminate the mysterious games that the Cygwin build plays with the linker
flag variables.  DLLLIBS is gone, use SHLIB_LINK like everyone else.
Detect cygipc in configure, after the linker flags are set up, otherwise
configure might not work at all.

Make sure everything is covered by make clean.

Fix the build of the new conversion procedure modules.

Add new DLLIMPORT markers where required.

Finally, the compiler complains if we use an explicit
-I/usr/local/include, so don't do that.  Curiously, -L/usr/local/lib is
still necessary.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.86 2002/09/04 15:45:50 tgl Exp $
d56 19
@


1.86
log
@Avoid multiple scans of utils/mb/conversion_procs/ subdirectories during
'make install'; there are enough of 'em that this slowed down the make
noticeably.  Ensure that 'all' is the default make target in all these
directories (defaulting to 'make install' is surprising and dangerous
IMHO).  Fix a couple small typos.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.85 2002/08/21 20:42:24 petere Exp $
d43 1
a43 1
	$(CC) $(LDFLAGS) -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(OBJS) $(DLLLIBS)
d45 8
a52 2
	$(CC) $(LDFLAGS) -o $@@$(X) $@@.exp $(OBJS) $(DLLLIBS)
	rm $@@.exp $@@.base
a65 11
ifeq ($(MAKE_DLL), true)

postgres.def: $(OBJS)
	$(DLLTOOL) --export-all --output-def $@@ $(OBJS)

libpostgres.a: $(OBJS) $(DLLINIT) postgres.def
	$(DLLTOOL) --dllname postgres.exe --def postgres.def --output-lib $@@

endif # MAKE_DLL


a166 1
ifeq ($(MAKE_DLL), true)
a167 1
endif
@


1.85
log
@Move PO files into subdirectories separate from the source code.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.84 2002/08/10 17:59:28 petere Exp $
a32 1
	$(MAKE) -C utils/mb/conversion_procs $@@
a123 2
	$(MAKE) -C utils/mb $@@
	$(MAKE) -C utils/mb/conversion_procs $@@
@


1.84
log
@Fix failure to relink postmaster executable in the first make run if only a
single source file a few directories deep in the backend tree has changed.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.83 2002/08/08 07:47:42 ishii Exp $
a33 3
ifeq ($(enable_nls), yes)
	$(MAKE) -C po all
endif
d111 1
a111 3
ifeq ($(enable_nls), yes)
	$(MAKE) -C po $@@
endif
a124 3
ifeq ($(enable_nls), yes)
	$(MAKE) -C po $@@
endif
d148 1
a148 3
ifeq ($(enable_nls), yes)
	$(MAKE) -C po $@@
endif
a165 3
ifeq ($(enable_nls), yes)
	$(MAKE) -C po $@@
endif
a179 3
ifeq ($(enable_nls), yes)
	$(MAKE) -C po $@@
endif
a191 1
	$(MAKE) -C po maintainer-clean
@


1.83
log
@Address build problems on cygwin and (hopefully) AIX.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/backend/Makefile,v 1.82 2002/07/27 20:10:04 petere Exp $
d56 1
a56 1
$(OBJS): $(DIRS:%=%-recursive)
@


1.82
log
@Assemble portability modules into libpgport library.
Some makefile simplifications.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.81 2002/07/18 02:02:29 ishii Exp $
d33 1
d134 1
@


1.81
log
@I have committed many support files for CREATE CONVERSION. Default
conversion procs and conversions are added in initdb. Currently
supported conversions are:

UTF-8(UNICODE) <--> SQL_ASCII, ISO-8859-1 to 16, EUC_JP, EUC_KR,
		    EUC_CN, EUC_TW, SJIS, BIG5, GBK, GB18030, UHC,
		    JOHAB, TCVN

EUC_JP <--> SJIS
EUC_TW <--> BIG5
MULE_INTERNAL <--> EUC_JP, SJIS, EUC_TW, BIG5

Note that initial contents of pg_conversion system catalog are created
in the initdb process. So doing initdb required is ideal, it's
possible to add them to your databases by hand, however. To accomplish
this:

psql -f your_postgresql_install_path/share/conversion_create.sql your_database

So I did not bump up the version in cataversion.h.

TODO:
Add more conversion procs
Add [CASCADE|RESTRICT] to DROP CONVERSION
Add tuples to pg_depend
Add regression tests
Write docs
Add SQL99 CONVERT command?
--
Tatsuo Ishii
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.80 2002/07/16 05:46:35 momjian Exp $
d32 1
a32 1
all: postgres $(POSTGRES_IMP)
a43 2
# No points for style here. How about encapsulating some of these
# commands into variables?
d45 4
a48 4
	dlltool --dllname $@@$(X) --output-exp $@@.exp --def postgres.def
	gcc $(LDFLAGS) -g -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(OBJS) $(DLLLIBS)
	dlltool --dllname $@@$(X) --base-file $@@.base --output-exp $@@.exp --def postgres.def
	gcc $(LDFLAGS) -g -o $@@$(X) $@@.exp $(OBJS) $(DLLLIBS)
d74 1
a74 1
$(DLLINIT):
@


1.80
log
@Move few remaining src/utils files to backend/port so everything is in
one place.  Everything may be moved to src/utils eventually.

Add DLLINIT variable to simplify makfiles.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.79 2002/05/22 21:46:40 tgl Exp $
d134 1
@


1.79
log
@Add $(LDFLAGS) to Windows make rule for postgres executable.  Needed
to do profiling on Cygwin, per report from Dave Page.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.78 2002/05/05 00:03:28 tgl Exp $
d46 1
a46 1
postgres: $(OBJS) $(top_builddir)/src/utils/dllinit.o postgres.def libpostgres.a
d70 1
a70 1
libpostgres.a: $(OBJS) $(top_builddir)/src/utils/dllinit.o postgres.def
d76 2
a77 2
$(top_builddir)/src/utils/dllinit.o: $(top_srcdir)/src/utils/dllinit.c
	$(MAKE) -C $(top_builddir)/src/utils dllinit.o
@


1.78
log
@Create an internal semaphore API that is not tied to SysV semaphores.
As proof of concept, provide an alternate implementation based on POSIX
semaphores.  Also push the SysV shared-memory implementation into a
separate file so that it can be replaced conveniently.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.77 2002/03/13 00:05:05 petere Exp $
d48 1
a48 1
	gcc -g -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(OBJS) $(DLLLIBS)
d50 1
a50 1
	gcc -g -o $@@$(X) $@@.exp $(OBJS) $(DLLLIBS)
@


1.77
log
@Move
  src/GNUmakefile.in to src/Makefile
and
  src/backend/port/Makefile.in to src/backend/port/Makefile

All configure substitutions are now done in Makefile.global.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.76 2002/02/18 06:03:22 momjian Exp $
d197 1
a197 1
	rm -f port/tas.s port/dynloader.c
@


1.76
log
@Don't mention TIOGA in Makefile and move strdup.c rule into proper
'ifdef' in Makefile.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.75 2001/11/20 00:27:13 tgl Exp $
d197 1
a197 1
	rm -f port/Makefile port/tas.s port/dynloader.c
@


1.75
log
@Double quotes in ln command to guard against spaces in path.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.74 2001/09/16 16:11:10 petere Exp $
a17 4

ifdef TIOGA
DIRS += tioga
endif
@


1.74
log
@Install dynamically loadable modules into a private subdirectory
under libdir, for a cleaner separation in the installation layout
and compatibility with binary packaging standards.  Point backend's
default search location there.  The contrib modules are also
installed in the said location, giving them the benefit of the
default search path as well.  No changes in user interface
nevertheless.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.73 2001/06/02 18:25:17 petere Exp $
d106 1
a106 1
	  $(LN_S) $$prereqdir/$(notdir $<) .
@


1.73
log
@Native Language Support (NLS)

Use --enable-nls to turn it on; see installation instructions for details.
See developer's guide how to make use of it in programs and how to add
translations.

psql sources have been almost fully prepared and an incomplete German
translation has been provided.  In the backend, only elog() calls are
currently translatable, and the provided German translation file is more
of a placeholder.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.72 2001/05/24 15:53:32 momjian Exp $
a138 6
installdirs:
	$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(datadir)
ifeq ($(enable_nls), yes)
	$(MAKE) -C po $@@
endif

d144 1
a144 1
	$(INSTALL_DATA) $(POSTGRES_IMP) $(DESTDIR)$(libdir)/$(POSTGRES_IMP)
d149 14
d168 1
a168 1
	rm -f $(DESTDIR)$(libdir)/$(POSTGRES_IMP)
@


1.72
log
@I haven't tried building postgres with the Watcom compiler for 7.1 because
it does not support 64bit integers. AFAIK that's the default data type for
OIDs, so I am not surprised that this does not work. Use gcc instead.
BTW., 7.1 does not compile as is with gcc either, I believed the
required patches made it into the 7.1.1 release but obviously I missed
the deadline.
Since the ports mailing list does not seem to be archived I have attached
a copy of the patch (for 7.1 and 7.1.1).

I've just performed a build of a Watcom compiled version and found a couple
of bugs in the watcom specific part of that patch. Please use the attached
version instead.

Tegge, Bernd
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.71 2001/04/23 20:27:55 petere Exp $
d37 3
d119 3
a121 1

d135 3
d141 3
d171 3
d188 3
d203 1
@


1.71
log
@Send 'cd' output to /dev/null.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.70 2001/04/04 21:15:56 tgl Exp $
d28 2
a29 1
# necessary?)
@


1.70
log
@Fix/cleanup DLLLIBS handling for Cygwin port.  If it works it's to
Jason Tishler's credit, if it's broken it's my fault ...
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.69 2001/04/02 03:21:23 tgl Exp $
d100 1
a100 1
	prereqdir=`cd $(dir $<) && pwd` && \
@


1.69
log
@Remove duplicate definition of DLLLIBS, per gripe from Fred Yankowski.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.68 2000/11/30 20:36:10 petere Exp $
d46 1
a46 1
postgres: $(DLLOBJS) $(top_builddir)/src/utils/dllinit.o postgres.def libpostgres.a
d48 1
a48 1
	gcc -g -o $@@$(X) -Wl,--base-file,$@@.base $@@.exp $(DLLOBJS) $(DLLLIBS)
d50 1
a50 1
	gcc -g -o $@@$(X) $@@.exp $(DLLOBJS) $(DLLLIBS)
d67 2
a68 1
DLLOBJS := $(OBJS)
d70 1
a70 4
postgres.def: $(DLLOBJS)
	$(DLLTOOL) --export-all --output-def $@@ $(DLLOBJS)

libpostgres.a: $(DLLOBJS) $(top_builddir)/src/utils/dllinit.o postgres.def
@


1.68
log
@Make all commands that link a program look like

$(CC) $(CFLAGS) $(LDFLAGS) <object files> <extra-libraries> $(LIBS) -o $@@

This form seemed to be the most portable, readable, and logical, but in any
case it's better than having a dozen different ones in the tree.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.67 2000/10/20 21:03:39 petere Exp $
d66 1
a67 1
DLLLIBS := -L/usr/local/lib -lcygipc -lcrypt -lcygwin -lkernel32
d74 1
@


1.67
log
@Add support for VPATH builds, that is, building somewhere else than in the
source directory.  This involves mostly makefiles using $(srcdir) when they
might have used ".".  (Regression tests don't work with this, yet.)

Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS).  Add "override" keyword
in most places, to preserve necessary flags even when the user overrode the
flags.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.66 2000/10/07 18:43:22 petere Exp $
d40 1
a40 1
	$(CC) $(CFLAGS) -o $@@ $^ $(LDFLAGS) $(export_dynamic)
d83 1
a83 1
	$(CC) $(LDREL) $(LDOUT) $@@ $^ $(LDFLAGS)
d196 1
a196 1
	$(CC) -o postgres $(OBJS) $(LDFLAGS) $(export_dynamic)
@


1.66
log
@Separate -Wl,-E or equivalent into separate make variable, since it's only
necessary for the postgres/postmaster link, not every link.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.65 2000/09/17 13:02:30 petere Exp $
d61 1
a61 1
$(DIRS:%=%-recursive): $(top_srcdir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
d101 3
a103 2
	cd $(dir $@@) && rm -f $(notdir $@@) && \
	    $(LN_S) ../../../$(subdir)/parser/parse.h .
d127 3
a129 3
	$(INSTALL_DATA) libpq/pg_hba.conf.sample $(DESTDIR)$(datadir)/pg_hba.conf.sample
	$(INSTALL_DATA) libpq/pg_ident.conf.sample $(DESTDIR)$(datadir)/pg_ident.conf.sample
	$(INSTALL_DATA) utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample
@


1.65
log
@Support for DESTDIR make variable. This is used as in `make install
DESTDIR=/else/where' and prepends the value of DESTDIR to the full
installation paths (e.g., /else/where/usr/local/pgsql/bin). This allows
users to install the package into a location different from the one that
was configured and hard-coded into various scripts, e.g., for creating
binary packages.

DESTDIR is in many cases preferrable over `make install
prefix=/else/where' because

a) `prefix' affects the path that is hard-coded into the files, which can
lead to a `make install prefix=xxx' (as done by the regression test
driver) corrupting the files in the source tree with wrong paths.

b) it doesn't work at all if a directory was overridden to not depend on
`prefix', e.g., --sysconfdir=/etc.

(Updating the regression test driver to use DESTDIR is a separate
undertaking.)

See also autoconf@@gnu.org, From: Akim Demaille <akim@@epita.fr>, Date: 08
Sep 2000 12:48:59 +0200, Message-ID:
<mv4em2vb1lw.fsf@@nostromo.lrde.epita.fr>, Subject: Re: HTML format
documentation.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.64 2000/08/31 16:09:23 petere Exp $
d40 1
a40 1
	$(CC) $(CFLAGS) -o $@@ $^ $(LDFLAGS)
d195 1
a195 1
	$(CC) -o postgres $(OBJS) $(LDFLAGS)
@


1.64
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.63 2000/07/19 16:29:44 petere Exp $
d122 1
a122 1
	$(INSTALL_DATA) libpostgres.a $(libdir)/libpostgres.a
d126 3
a128 3
	$(INSTALL_DATA) libpq/pg_hba.conf.sample $(datadir)/pg_hba.conf.sample
	$(INSTALL_DATA) libpq/pg_ident.conf.sample $(datadir)/pg_ident.conf.sample
	$(INSTALL_DATA) utils/misc/postgresql.conf.sample $(datadir)/postgresql.conf.sample
d131 1
a131 1
	$(mkinstalldirs) $(bindir) $(libdir) $(datadir)
d134 3
a136 3
	$(INSTALL_PROGRAM) postgres$(X) $(bindir)/postgres$(X)
	@@rm -f $(bindir)/postmaster
	ln -s postgres$(X) $(bindir)/postmaster
d138 1
a138 1
	$(INSTALL_DATA) $(POSTGRES_IMP) $(libdir)/$(POSTGRES_IMP)
d146 1
a146 1
	rm -f $(bindir)/postgres$(X) $(bindir)/postmaster
d148 1
a148 1
	rm -f $(libdir)/$(POSTGRES_IMP)
d152 1
a152 1
	rm -f $(libdir)/libpostgres.a
d156 3
a158 3
	rm -f $(datadir)/pg_hba.conf.sample \
	      $(datadir)/pg_ident.conf.sample \
	      $(datadir)/postgresql.conf.sample
@


1.63
log
@Add distprep target to take some of the job of the release_prep script.
The latter updated accordingly. Also add `dist' and `distcheck' targets
to play with, but caveat packager.

Updated backend/bootstrap and backend/parser makefile to make them
marginally builddir aware and fix the usual set of things.

Add rule to automatically remake config.h dependent on config.h.in and
config.status. (Adopted from Autoconf manual and about every other
package.) On a good day we should now have a complete and accurate set
of dependencies throughout everything.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.62 2000/07/16 14:50:44 petere Exp $
d13 1
a13 1
include ../Makefile.global
@


1.62
log
@Automatic dependency tracking

The .DEFAULT rule in backend/Makefile is harmful -- removed.
Replace `::' rules by `:'.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.61 2000/07/14 15:30:56 thomas Exp $
d111 8
d133 1
a133 1
install-bin:
d141 1
a141 1
.PHONY: install installdirs install-bin
@


1.61
log
@Change order of builds to get parser before commands.
 This will ensure building parse.h for commands, though this is also
 covered with other build rules.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.60 2000/07/13 16:06:42 petere Exp $
a189 3
	for i in $(DIRS); do $(MAKE) -C $$i $@@; done

.DEFAULT:
@


1.60
log
@Repair parallel make in backend tree (and make it really parallel).
Make Gen_fmgrtab.sh reasonably robust against concurrent invocation.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.59 2000/07/08 02:40:27 tgl Exp $
d15 2
a16 2
DIRS := access bootstrap catalog commands executor lib libpq \
	main parser nodes optimizer port postmaster regex rewrite \
@


1.59
log
@Put back separate install-bin target ... I was using that,
thank you ...
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.58 2000/07/06 21:33:14 petere Exp $
a36 5
# Note that this is bogus. The desired effect is to build these
# commonly used headers before doing much else. However, nothing says
# that make is required to update these dependencies in any particular
# order, it just happens to do that. Parallel make is broken though.

d39 2
a40 2
postgres: $(top_srcdir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h $(OBJS)
	$(CC) $(CFLAGS) -o $@@ $(OBJS) $(LDFLAGS)
d46 1
a46 2
postgres: $(top_srcdir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h \
	  $(DLLOBJS) $(top_builddir)/src/utils/dllinit.o postgres.def libpostgres.a
d57 1
a57 1
$(OBJS): $(DIRS:%=%.dir)
d59 4
a62 3
.PHONY: $(DIRS:%=%.dir)
$(DIRS:%=%.dir):
	$(MAKE) -C $(subst .dir,,$@@) all
d164 1
a164 1
	for i in $(DIRS); do $(MAKE) -C $$i clean; done
@


1.58
log
@Backend makefile cleanup. make maintainer-clean is now completely
functional.

Handle include file installation in src/include/Makefile

genbki.sh improvements: Don't substitute anything by config.status,
instead pass in AWK and CPP through environment. Change calling
convention to support named output files, so we get to see error
messages on stderr.

Rename bootstrap template files and install them into PREFIX/share.
Update initdb to that effect and other readability improvements
in initdb.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.57 2000/07/02 15:20:44 petere Exp $
d116 1
a116 7
install: all installdirs
	$(INSTALL_PROGRAM) postgres$(X) $(bindir)/postgres$(X)
	@@rm -f $(bindir)/postmaster
	ln -s postgres$(X) $(bindir)/postmaster
ifeq ($(MAKE_EXPORTS), true)
	$(INSTALL_DATA) $(POSTGRES_IMP) $(libdir)/$(POSTGRES_IMP)
endif
d130 9
@


1.57
log
@Version number now set in configure, available through Makefile.global
and config.h. Adjusted all referring code.

Scrapped pg_version and changed initdb accordingly. Integrated
src/utils/version.c into src/backend/utils/init/miscinit.c. Changed all
callers.

Set version number to `7.1devel'. (Non-numeric version suffixes now allowed.)
@
text
@d3 1
a3 2
# Makefile--
#   Makefile for the postgres backend (and the postmaster)
d7 1
a7 30
# Functional notes:
#
#   Parallel make:  
#
#     This make file is set up so that you can do a parallel make (with 
#     the --jobs option of make) and make multiple subdirectories at 
#     once.  
#
#     However, the subdirectory make files are not so careful.
#     Normally, the --jobs option would get passed down to those
#     subdirectory makes, like any other make option, and they would
#     fail.  But there's a trick: Put a value (max number of
#     processes) on the --jobs option, e.g. --jobs=4.  Now, due to a
#     special feature of make, the --jobs option will not get passed
#     to the subdirectory makes.  (make does this because if you only
#     want 4 tasks running, then splitting the subdirectory makes into
#     multiple tasks would violate your wishes).
#
#
#
# Implementation notes:
#
#   We don't use $(LD) for linking.  We use $(CC) instead.  This is because
#   the $(CC) program apparently can do linking too, and it has certain
#   things like default options and search paths for libraries set up for 
#   it that the more primitive $(LD) doesn't have.
#
#
# IDENTIFICATION
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.56 2000/06/28 03:30:57 tgl Exp $
d11 3
a13 2
SRCDIR = ..
include $(SRCDIR)/Makefile.global
d15 1
a15 1
DIRS = access bootstrap catalog commands executor lib libpq \
d23 1
a23 1
OBJS = $(DIRS:%=%/SUBSYS.o)
d26 3
a28 2
# This file crashes qnx4's wlink and is therefore not in bootstrap/SUBSYS.o
# on that platform.  (Wotta hack ... is it still necessary?)
a31 3
ifeq ($(MAKE_DLL), true)
DLLOBJS= $(OBJS)
DLLLIBS= -L/usr/local/lib -lcygipc -lcrypt -lcygwin -lkernel32
d33 1
a33 2
postgres.def: $(DLLOBJS)
	$(DLLTOOL) --export-all --output-def $@@ $(DLLOBJS)
d35 1
a35 3
libpostgres.a: $(DLLOBJS) $(SRCDIR)/utils/dllinit.o postgres.def
	$(DLLTOOL) --dllname postgres.exe --def postgres.def --output-lib $@@
endif
d37 4
a40 1
all: prebuildheaders postgres $(POSTGRES_IMP)
d44 2
a45 2
postgres: $(OBJS)
	$(CC) $(CFLAGS) -o postgres $(OBJS) $(LDFLAGS)
d47 1
a47 1
else
d49 4
a52 1
postgres: $(DLLOBJS) $(SRCDIR)/utils/dllinit.o postgres.def libpostgres.a
d59 2
a60 1
endif
d62 1
d65 1
d67 1
a67 1
	$(MAKE) -C $(subst .dir,,$@@) all 
d69 15
a83 2
$(SRCDIR)/utils/dllinit.o: $(SRCDIR)/utils/dllinit.c
	$(MAKE) -C $(SRCDIR)/utils dllinit.o
d88 2
a89 1
	$(CC) $(LDREL) $(LDOUT) postgres.o $(OBJS) $(LDFLAGS)
d91 6
a96 2
# These header files should be up-to-date before we do much else...
.PHONY: prebuildheaders
d98 2
a99 2
prebuildheaders: $(SRCDIR)/include/parser/parse.h \
		$(SRCDIR)/include/utils/fmgroids.h
d101 3
a103 4
############################################################################
# The following targets are specified in make commands that appear in the
# make files in our subdirectories.  Note that it's important we match the
# dependencies shown in the subdirectory makefiles!
d105 3
a107 2
$(SRCDIR)/include/parser/parse.h: parser/parse.h
	cp parser/parse.h $(SRCDIR)/include/parser
d109 3
a111 2
parser/parse.h: parser/gram.y
	$(MAKE) -C parser parse.h
a112 2
$(SRCDIR)/include/utils/fmgroids.h: utils/fmgroids.h
	cp utils/fmgroids.h $(SRCDIR)/include/utils
d114 1
a114 2
utils/fmgroids.h: utils/Gen_fmgrtab.sh $(SRCDIR)/include/catalog/pg_proc.h
	$(MAKE) -C utils fmgroids.h
d116 7
a122 5
#############################################################################
clean:
	rm -f postgres$(X) $(POSTGRES_IMP) \
		$(SRCDIR)/include/parser/parse.h \
		$(SRCDIR)/include/utils/fmgroids.h
d125 1
a125 1
	rm -f postgres.dll postgres.def libpostgres.a
d128 7
a134 1
	for i in $(DIRS); do $(MAKE) -C $$i clean; done
a135 2
depend dep: prebuildheaders
	for i in $(DIRS); do $(MAKE) -C $$i $@@; done
d137 1
a137 2
.DEFAULT:
	for i in $(DIRS); do $(MAKE) -C $$i $@@; done
d139 2
a140 28
#############################################################################
#
# Installation.
#
# Install the backend program (postgres) to the binary directory and 
# make a link as "postmaster".  Install the bki files, templates, and sample
# files to the library directory.  Install exported headers to the include
# directory (these headers are the minimal ones needed to build loadable
# backend extensions).
#
# (History:  Before Release 2, make install generated a bki.source file
# and then used build parameters to convert it to a bki file, then installed
# that bki file in the /files subdirectory of the default data directory.
# Initdb then used the bki file to generate the database catalog classes.
# That had to change because (1) there can be more than one database system,
# and (2) the parameters of a database system should be set at initdb time,
# not at postgres build time.

.PHONY: install install-bin install-templates install-headers

install: $(LIBDIR) $(BINDIR) $(HEADERDIR) $(TEMPLATEDIR) \
         postgres $(POSTGRES_IMP) \
         install-bin install-templates install-headers

install-bin: $(BINDIR) postgres$(X) $(POSTGRES_IMP)
	$(INSTALL) $(INSTL_EXE_OPTS) postgres$(X) $(BINDIR)/postgres$(X)
	@@rm -f $(BINDIR)/postmaster
	ln -s postgres$(X) $(BINDIR)/postmaster
d142 1
a142 1
	$(INSTALL) $(INSTLOPTS) $(POSTGRES_IMP) $(LIBDIR)/$(POSTGRES_IMP)
d146 1
a146 2
#	$(INSTALL) $(INSTLOPTS) postgres.dll $(BINDIR)/postgres.dll
	$(INSTALL) $(INSTLOPTS) libpostgres.a $(LIBDIR)/libpostgres.a
d149 4
a153 65
install-templates: $(TEMPLATEDIR) \
         libpq/pg_hba.conf.sample libpq/pg_ident.conf.sample \
         utils/misc/postgresql.conf.sample
	$(MAKE) -C catalog install-bki-templates
	$(INSTALL) $(INSTLOPTS) libpq/pg_hba.conf.sample \
	  $(TEMPLATEDIR)/pg_hba.conf.sample
	$(INSTALL) $(INSTLOPTS) libpq/pg_ident.conf.sample \
	  $(TEMPLATEDIR)/pg_ident.conf.sample
	$(INSTALL) $(INSTLOPTS) utils/misc/postgresql.conf.sample \
	  $(TEMPLATEDIR)/postgresql.conf.sample

install-headers: prebuildheaders $(SRCDIR)/include/config.h
	-@@if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi
	-@@if [ ! -d $(HEADERDIR)/port ]; then mkdir $(HEADERDIR)/port; fi
	-@@if [ ! -d $(HEADERDIR)/port/$(PORTNAME) ]; \
		then mkdir $(HEADERDIR)/port/$(PORTNAME); fi
	-@@if [ ! -d $(HEADERDIR)/lib ]; \
		then mkdir $(HEADERDIR)/lib; fi
	-@@if [ ! -d $(HEADERDIR)/libpq ]; \
		then mkdir $(HEADERDIR)/libpq; fi
	-@@if [ ! -d $(HEADERDIR)/utils ]; \
		then mkdir $(HEADERDIR)/utils; fi
	-@@if [ ! -d $(HEADERDIR)/access ]; \
		then mkdir $(HEADERDIR)/access; fi
	-@@if [ ! -d $(HEADERDIR)/executor ]; \
		then mkdir $(HEADERDIR)/executor; fi
	-@@if [ ! -d $(HEADERDIR)/commands ]; \
		then mkdir $(HEADERDIR)/commands; fi
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/os.h \
          $(HEADERDIR)/os.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/config.h \
          $(HEADERDIR)/config.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/c.h \
          $(HEADERDIR)/c.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/postgres.h \
          $(HEADERDIR)/postgres.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/postgres_ext.h \
          $(HEADERDIR)/postgres_ext.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/fmgr.h \
          $(HEADERDIR)/fmgr.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/libpq/pqcomm.h \
          $(HEADERDIR)/libpq/pqcomm.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/libpq/libpq-fs.h \
          $(HEADERDIR)/libpq/libpq-fs.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/lib/dllist.h \
          $(HEADERDIR)/lib/dllist.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/geo_decls.h \
          $(HEADERDIR)/utils/geo_decls.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/elog.h \
          $(HEADERDIR)/utils/elog.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/fmgroids.h \
          $(HEADERDIR)/utils/fmgroids.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/palloc.h \
          $(HEADERDIR)/utils/palloc.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/access/attnum.h \
          $(HEADERDIR)/access/attnum.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/executor/spi.h \
          $(HEADERDIR)/executor/spi.h
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/commands/trigger.h \
          $(HEADERDIR)/commands/trigger.h
ifeq ($(PORTNAME), hpux)
# is this still necessary?
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/backend/port/hpux/fixade.h \
          $(HEADERDIR)/port/hpux/fixade.h
endif
d155 1
a155 2
$(BINDIR):
	mkdir $@@
d157 10
a166 5
$(LIBDIR):
	mkdir $@@

$(HEADERDIR):
	mkdir $@@
d168 2
a169 3
# TEMPLATEDIR is commonly the same as LIBDIR, but it might be different.
# We don't want duplicate rules if they are the same.
ifneq ($(TEMPLATEDIR),$(LIBDIR))
d171 8
a178 4
$(TEMPLATEDIR):
	mkdir $@@

endif
d181 1
a181 1
#############################################################################
d191 2
a192 7
#
# Build the file, "./ID", used by the "gid" (grep-for-identifier) tool
#
IDFILE=	ID
.PHONY: $(IDFILE)
$(IDFILE):
	./makeID 
d194 2
a195 10
#
# Special rule to generate cpp'd version of a .c file.  This is
# especially useful given all the hellish macro processing going on.
# The cpp'd version has a .C suffix.  To create foo.C from foo.c, just
# type
#	make foo.C
#
%.cpp:	%.c
	$(CC) -E $(CPPFLAGS) $(<:.C=.c) | cat -s | cb | tr -s '\012*' '\012' \
	    > $(@@F)
@


1.56
log
@First phase of memory management rewrite (see backend/utils/mmgr/README
for details).  It doesn't really do that much yet, since there are no
short-term memory contexts in the executor, but the infrastructure is
in place and long-term contexts are handled reasonably.  A few long-
standing bugs have been fixed, such as 'VACUUM; anything' in a single
query string crashing.  Also, out-of-memory is now considered a
recoverable ERROR, not FATAL.
Eliminate a large amount of crufty, now-dead code in and around
memory management.
Fix problem with holding off SIGTRAP, SIGSEGV, etc in postmaster and
backend startup.
@
text
@d37 1
a37 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.55 2000/06/17 00:09:34 petere Exp $
a59 2
VERSIONOBJ = $(SRCDIR)/utils/version.o

d61 1
a61 1
DLLOBJS= $(OBJS) $(VERSIONOBJ)
d75 2
a76 2
postgres: $(OBJS) $(VERSIONOBJ)
	$(CC) $(CFLAGS) -o postgres $(OBJS) $(VERSIONOBJ) $(LDFLAGS)
a92 3

$(VERSIONOBJ): $(SRCDIR)/utils/version.c $(SRCDIR)/include/version.h
	$(MAKE) -C $(SRCDIR)/utils version.o
@


1.55
log
@Remove fmgrstamp-h business -- not needed and confusing

Add options to configure to automatically build for Kerberos
support; no more editing of make files.
@
text
@d37 1
a37 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.54 2000/06/05 07:16:12 tgl Exp $
a239 2
	$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/mcxt.h \
          $(HEADERDIR)/utils/mcxt.h
@


1.54
log
@Simplify build/install process for bki and description files.  There's
no reason for them to be copied into src/backend rather than being
installed straight from the catalog subdirectory.  This also avoids
some peculiar behavior (bugs?) present in at least gmake 3.78.1: it
won't always update the bki files in backend/ even when the ones in
backend/catalog/ are newer.
@
text
@d37 1
a37 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.53 2000/06/04 01:44:28 petere Exp $
a61 7
# kerberos flags

ifdef KRBVERS
CFLAGS+= $(KRBFLAGS)
LDFLAGS+= $(KRBLIBS)
endif

d299 1
a299 1
	$(CC) -E $(CFLAGS) $(<:.C=.c) | cat -s | cb | tr -s '\012*' '\012' \
@


1.53
log
@New ps display code, works on more platforms.

Install a default configuration file.

Clean up some funny business in the config file code.
@
text
@d37 1
a37 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.52 2000/05/31 00:28:13 petere Exp $
d80 1
a80 3
all: prebuildheaders postgres $(POSTGRES_IMP) \
		global1.bki.source local1_template1.bki.source \
		global1.description local1_template1.description
a108 8
global1.bki.source local1_template1.bki.source \
global1.description local1_template1.description: catalog/$@@
	cp catalog/$@@ .

catalog/global1.bki.source catalog/local1_template1.bki.source \
catalog/global1.description catalog/local1_template1.description:
	$(MAKE) -C catalog $@@

d141 1
a141 3
		$(SRCDIR)/include/utils/fmgroids.h \
	    global1.bki.source local1_template1.bki.source \
	    global1.description local1_template1.description
a193 2
         global1.bki.source local1_template1.bki.source \
         global1.description local1_template1.description \
d196 1
a196 8
	$(INSTALL) $(INSTLOPTS) global1.bki.source \
	  $(TEMPLATEDIR)/global1.bki.source
	$(INSTALL) $(INSTLOPTS) global1.description \
	  $(TEMPLATEDIR)/global1.description
	$(INSTALL) $(INSTLOPTS) local1_template1.bki.source \
	  $(TEMPLATEDIR)/local1_template1.bki.source
	$(INSTALL) $(INSTLOPTS) local1_template1.description \
	  $(TEMPLATEDIR)/local1_template1.description
@


1.52
log
@The heralded `Grand Unified Configuration scheme' (GUC)

That means you can now set your options in either or all of $PGDATA/configuration,
some postmaster option (--enable-fsync=off), or set a SET command. The list of
options is in backend/utils/misc/guc.c, documentation will be written post haste.

pg_options is gone, so is that pq_geqo config file. Also removed were backend -K,
-Q, and -T options (no longer applicable, although -d0 does the same as -Q).

Added to configure an --enable-syslog option.

changed all callers from TPRINTF to elog(DEBUG)
@
text
@d37 1
a37 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.51 2000/05/30 16:36:14 momjian Exp $
d208 2
a209 1
         libpq/pg_hba.conf.sample libpq/pg_ident.conf.sample
d222 2
@


1.51
log
@Copy pg_ident.conf.sample into /lib directory.  Rename USERAUTH to
AUTHTYPE in config file.  Patch both branches.
@
text
@d37 1
a37 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.50 2000/05/29 20:51:35 tgl Exp $
d208 1
a208 3
         libpq/pg_hba.conf.sample libpq/pg_ident.conf.sample \
	 optimizer/geqo/pg_geqo.sample \
         pg_options.sample
a220 4
	$(INSTALL) $(INSTLOPTS) optimizer/geqo/pg_geqo.sample \
	  $(TEMPLATEDIR)/pg_geqo.sample
	$(INSTALL) $(INSTLOPTS) pg_options.sample \
	  $(TEMPLATEDIR)/pg_options.sample
@


1.50
log
@Neglected to add fmgr.h to set of installed headers...
@
text
@d37 1
a37 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.49 2000/05/29 05:44:33 tgl Exp $
d208 2
a209 1
         libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample \
d221 2
@


1.49
log
@Generated header files parse.h and fmgroids.h are now copied into
the src/include tree, so that -I backend is no longer necessary anywhere.
Also, clean up some bit rot in contrib tree.
@
text
@d37 1
a37 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.48 2000/05/28 17:55:51 tgl Exp $
d252 2
@


1.48
log
@First round of changes for new fmgr interface.  fmgr itself and the
key call sites are changed, but most called functions are still oldstyle.
An exception is that the PL managers are updated (so, for example, NULL
handling now behaves as expected in plperl and plpgsql functions).
NOTE initdb is forced due to added column in pg_proc.
@
text
@d32 1
a32 1
#   thinks like default options and search paths for libraries set up for 
d37 1
a37 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.47 2000/05/11 17:46:28 momjian Exp $
d53 1
d55 3
a57 2
# This file chrashes wlink and is therefore not in bootstrap/SUBSYS.o.
OBJS1 = bootstrap/bootstrap.o
d80 3
a82 2
all: postgres $(POSTGRES_IMP) global1.bki.source local1_template1.bki.source \
				global1.description local1_template1.description
d85 4
a88 2
postgres: utils/fmgroids.h $(OBJS) $(VERSIONOBJ)
	$(CC) $(CFLAGS) -o postgres $(OBJS) $(OBJS1) $(VERSIONOBJ) $(LDFLAGS)
d90 1
d97 1
a99 2
#.PHONY: postgres

d122 7
a128 1
	$(CC) $(LDREL) $(LDOUT) postgres.o $(OBJS) $(OBJS1) $(LDFLAGS)
d132 2
a133 1
# make files in our subdirectories.
d135 2
a136 2
parse.h: parser/parse.h
	cp parser/parse.h .
d138 1
a138 1
parser/parse.h:
d141 4
a144 1
utils/fmgroids.h:
d149 3
a151 1
	rm -f postgres$(X) $(POSTGRES_IMP) parse.h \
d161 3
d225 1
a225 1
install-headers: utils/fmgroids.h $(SRCDIR)/include/config.h
d262 1
a262 1
	$(INSTALL) $(INSTLOPTS) utils/fmgroids.h \
d307 1
a307 1
	$(CC) -o postgres $(OBJS) $(OBJS1) $(LDFLAGS)
@


1.47
log
@Makefile CFLAGS cleanups.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.46 2000/04/08 19:38:00 momjian Exp $
d82 1
a82 1
postgres: fmgr.h $(OBJS) $(VERSIONOBJ)
d129 2
a130 5
fmgr.h: utils/fmgr.h
	cp utils/fmgr.h .

utils/fmgr.h:
	$(MAKE) -C utils fmgr.h
d134 1
a134 1
	rm -f postgres$(X) $(POSTGRES_IMP) fmgr.h parse.h \
d205 1
a205 1
install-headers: fmgr.h $(SRCDIR)/include/config.h
a221 2
	$(INSTALL) $(INSTLOPTS) fmgr.h \
          $(HEADERDIR)/fmgr.h
d242 2
@


1.47.2.1
log
@Copy pg_ident.conf.sample into /lib directory.  Rename USERAUTH to
AUTHTYPE in config file.  Patch both branches.
@
text
@d37 1
a37 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/Makefile,v 1.47 2000/05/11 17:46:28 momjian Exp $
d191 1
a191 2
         libpq/pg_hba.conf.sample libpq/pg_ident.conf.sample \
	 optimizer/geqo/pg_geqo.sample \
a202 2
	$(INSTALL) $(INSTLOPTS) libpq/pg_ident.conf.sample \
	  $(TEMPLATEDIR)/pg_ident.conf.sample
@


1.46
log
@Add new pg_options.sample file.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.45 2000/03/08 22:00:19 tgl Exp $
d83 1
a83 1
	$(CC) -o postgres $(OBJS) $(OBJS1) $(VERSIONOBJ) $(LDFLAGS)
@


1.45
log
@Clean up gmake warning caused by recent NetBSD patch.  <grumble>
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.44 2000/03/08 01:58:16 momjian Exp $
d191 2
a192 1
         libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample
d205 2
@


1.44
log
@I've made a diff against the 7.0beta1 tree that accomplishes several things:

        1) adds NetBSD shared lib support on both ELF and a.out platforms

        2) replaces "-L$(LIBPQDIR) -lpq" with "$(LIBPQ)" defined in
           Makefile.global.  This makes it much easier to build stuff in
           the source tree after you've already installed the libraries.

        3) adds TEMPLATEDIR in Makefile.global that indicates where the
           database templates are stored.  This separates the template files
           from real libraries that are installed in $(LIBDIR).
        4) changes include order of <readline/readline.h> and <readline.h>.
           The latest GNU readline installs its headers under a readline
           subdirectory.

In addition to applying the patch below the following files need to be copied:

        backend/port/dynloader:
                bsd.h -> netbsd.h
                bsd.c -> netbsd.c
        include/port:
                bsd.h -> netbsd.h
        makefiles:
                Makefile.bsd -> Makefile.netbsd

It would be great to see this incorporated into the source tree before
the 7.0 release is cut.

        Thanks!

     -- Johnny C. Lam <lamj@@stat.cmu.edu>
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.43 2000/02/27 01:26:12 tgl Exp $
a259 1

d262 1
d265 1
d268 5
d275 3
@


1.43
log
@Clean up dependencies for version.o.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.42 1999/12/16 01:25:00 momjian Exp $
d168 1
a168 1
.PHONY: install install-bin install-lib install-headers
d170 3
a172 2
install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(POSTGRES_IMP) \
         install-bin install-lib install-headers
d188 1
a188 1
install-lib: $(LIBDIR) \
d193 1
a193 1
	  $(LIBDIR)/global1.bki.source
d195 1
a195 1
	  $(LIBDIR)/global1.description
d197 1
a197 1
	  $(LIBDIR)/local1_template1.bki.source
d199 1
a199 1
	  $(LIBDIR)/local1_template1.description
d201 1
a201 1
	  $(LIBDIR)/pg_hba.conf.sample
d203 1
a203 1
	  $(LIBDIR)/pg_geqo.sample
d266 2
@


1.42
log
@I have done the QNX4 port with the current source tree. The number of
backend/Makefiles to be patched could significantly be reduced since
they
have been adopted to the QNX4 needs.

Andreas Kardos
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.41 1999/12/13 22:32:16 momjian Exp $
d42 1
a42 1
include ../Makefile.global
d58 2
d68 1
a68 2
DLLOBJS=$(OBJS)
DLLOBJS+= ../utils/version.o
d74 1
a74 1
libpostgres.a: $(DLLOBJS) ../utils/dllinit.o postgres.def
d82 2
a83 2
postgres: fmgr.h $(OBJS) ../utils/version.o
	$(CC) -o postgres $(OBJS) $(OBJS1) ../utils/version.o $(LDFLAGS)
d85 1
a85 1
postgres: $(DLLOBJS) ../utils/dllinit.o postgres.def libpostgres.a
d100 2
a101 2
../utils/version.o:
	$(MAKE) -C ../utils version.o
d103 2
a104 2
../utils/dllinit.c:
	$(MAKE) -C ../utils dllinit.o
@


1.41
log
@New LDOUT makefile variable for QNX os.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.40 1999/12/09 19:14:23 momjian Exp $
d53 4
d82 1
a82 1
	$(CC) -o postgres $(OBJS) ../utils/version.o $(LDFLAGS)
d116 1
a116 1
	$(CC) $(LDREL) $(LDOUT) postgres.o $(OBJS) $(LDFLAGS)
d204 3
a206 3
	@@if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi
	@@if [ ! -d $(HEADERDIR)/port ]; then mkdir $(HEADERDIR)/port; fi
	@@if [ ! -d $(HEADERDIR)/port/$(PORTNAME) ]; \
d208 1
a208 1
	@@if [ ! -d $(HEADERDIR)/lib ]; \
d210 1
a210 1
	@@if [ ! -d $(HEADERDIR)/libpq ]; \
d212 1
a212 1
	@@if [ ! -d $(HEADERDIR)/utils ]; \
d214 1
a214 1
	@@if [ ! -d $(HEADERDIR)/access ]; \
d216 1
a216 1
	@@if [ ! -d $(HEADERDIR)/executor ]; \
d218 1
a218 1
	@@if [ ! -d $(HEADERDIR)/commands ]; \
d274 1
a274 1
	$(CC) -o postgres $(OBJS) $(LDFLAGS)
@


1.40
log
@Make LD -r as macros that can be changed for QNX.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.39 1999/11/14 17:12:42 tgl Exp $
d112 1
a112 1
	$(CC) $(LDREL) -o postgres.o $(OBJS) $(LDFLAGS)
@


1.39
log
@Tweak make rules for parse.h and fmgr.h to avoid bug in old
versions of gmake.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.38 1999/03/07 23:05:56 tgl Exp $
d112 1
a112 1
	$(CC) -r -o postgres.o $(OBJS) $(LDFLAGS)
@


1.38
log
@Export include/utils/mcxt.h so that external stuff can include
palloc.h again.  Move exporting of backend header files out of libpq's
Makefile (whatever was it doing there in the first place?) and into
backend/Makefile.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.37 1999/02/23 07:24:02 thomas Exp $
d119 3
a122 1
	cp parser/parse.h .
d124 4
a127 1
fmgr.h:
a128 1
	cp utils/fmgr.h .
@


1.37
log
@Rearrange order of subdirectory creation to help generate parse.h
 file early enough to use in nodes/.
Try to be more complete for rules on generating parse.h,
 but it still does not work any better than before. Should be able to
 make correctly if parser/gram.y is updated even without a "make clean"
 but so far not there yet.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.36 1999/01/21 16:08:36 vadim Exp $
d146 4
a149 2
# make a link as "postmaster".  Install the bki files templates and sample 
# files to the library directory.
d159 6
a164 4
install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(POSTGRES_IMP) fmgr.h \
         global1.bki.source local1_template1.bki.source \
         global1.description local1_template1.description \
         libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample
d166 2
a170 2
	@@rm -f $(BINDIR)/postmaster
	ln -s postgres$(X) $(BINDIR)/postmaster
d177 5
a181 1
	$(INSTALL) $(INSTLOPTS) fmgr.h $(HEADERDIR)/fmgr.h
d195 56
a250 2
#$(BINDIR) $(LIBDIR) $(HEADERDIR):
#	mkdir $@@
@


1.36
log
@FOR UPDATE is in parser & rules.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.35 1999/01/17 06:18:11 momjian Exp $
d45 1
a45 1
	main nodes optimizer parser port postmaster regex rewrite \
d118 1
a118 1
parse.h: 
d157 1
a157 1
install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(POSTGRES_IMP) fmgr.h\
@


1.35
log
@Apply Win32 patch from Horak Daniel.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.34 1998/11/27 19:51:27 vadim Exp $
a111 3
	$(CC) -r -o postgres.o $(OBJS) $(LDFLAGS)

fast:
@


1.34
log
@New HeapTuple structure/interface.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.33 1998/04/27 04:04:05 momjian Exp $
d61 11
d76 1
d79 10
d96 4
a99 1
	$(MAKE) -C ../utils version.o        
a116 1

d131 1
a131 1
	rm -f postgres $(POSTGRES_IMP) fmgr.h parse.h \
d134 5
d164 1
a164 1
	$(INSTALL) $(INSTL_EXE_OPTS) postgres $(BINDIR)/postgres
d169 7
a175 1
	ln -s postgres $(BINDIR)/postmaster
d190 7
a196 1
$(BINDIR) $(LIBDIR) $(HEADERDIR): 
@


1.33
log
@This patch...

1. Removes the unnecessary "#define AbcRegProcedure 123"'s from
pg_proc.h.

2. Changes those #defines to use the names already defined in
fmgr.h.

3. Forces the make of fmgr.h in backend/Makefile instead of having
it
   made as a dependency in access/common/Makefile  *hack*hack*hack*

4. Rearranged the #includes to a less helter-skelter arrangement,
also
    changing <file.h> to "file.h" to signify a non-system header.

5. Removed "pg_proc.h" from files where its only purpose was for
the
   #defines removed in item #1.

6. Added "fmgr.h" to each file changed for completeness sake.

Turns out that #6 was not necessary for some files because fmgr.h
was being included in a roundabout way SIX levels deep by the first
include.

"access/genam.h"
 ->"access/relscan.h"
   ->"utils/rel.h"
     ->"access/strat.h"
       ->"access/skey.h"
	 ->"fmgr.h"

So adding fmgr.h really didn't add anything to the compile, hopefully
just made it clearer to the programmer.

S Darren.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.32 1998/04/06 16:49:14 momjian Exp $
d87 3
@


1.32
log
@DESTDIR removed, again.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.31 1998/04/06 01:35:19 momjian Exp $
d65 1
a65 1
postgres: $(OBJS) ../utils/version.o
@


1.31
log
@Make DESTDIR consistent, and verious Linux cleanups.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.30 1998/01/04 19:12:02 scrappy Exp $
d128 1
a128 1
install: $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(HEADERDIR) postgres $(POSTGRES_IMP) fmgr.h\
d132 1
a132 1
	$(INSTALL) $(INSTL_EXE_OPTS) postgres $(DESTDIR)$(BINDIR)/postgres
d134 1
a134 1
	$(INSTALL) $(INSTLOPTS) $(POSTGRES_IMP) $(DESTDIR)$(LIBDIR)/$(POSTGRES_IMP)
d136 3
a138 3
	@@rm -f $(DESTDIR)$(BINDIR)/postmaster
	ln -s postgres $(DESTDIR)$(BINDIR)/postmaster
	$(INSTALL) $(INSTLOPTS) fmgr.h $(DESTDIR)$(HEADERDIR)/fmgr.h
d140 1
a140 1
	  $(DESTDIR)$(LIBDIR)/global1.bki.source
d142 1
a142 1
	  $(DESTDIR)$(LIBDIR)/global1.description
d144 1
a144 1
	  $(DESTDIR)$(LIBDIR)/local1_template1.bki.source
d146 1
a146 1
	  $(DESTDIR)$(LIBDIR)/local1_template1.description
d148 1
a148 1
	  $(DESTDIR)$(LIBDIR)/pg_hba.conf.sample
d150 1
a150 1
	  $(DESTDIR)$(LIBDIR)/pg_geqo.sample
d152 1
a152 1
$(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(HEADERDIR): 
@


1.30
log
@Various fixes NETBSD/sparc related

From: Tom I Helbekkmo <tih@@Hamartun.Priv.NO>
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.29 1997/12/20 00:22:06 scrappy Exp $
d128 1
a128 1
install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(POSTGRES_IMP) fmgr.h\
d132 1
a132 1
	$(INSTALL) $(INSTL_EXE_OPTS) postgres $(BINDIR)/postgres
d134 1
a134 1
	$(INSTALL) $(INSTLOPTS) $(POSTGRES_IMP) $(LIBDIR)/$(POSTGRES_IMP)
d136 3
a138 3
	@@rm -f $(BINDIR)/postmaster
	ln -s postgres $(BINDIR)/postmaster
	$(INSTALL) $(INSTLOPTS) fmgr.h $(HEADERDIR)/fmgr.h
d140 1
a140 1
	  $(LIBDIR)/global1.bki.source
d142 1
a142 1
	  $(LIBDIR)/global1.description
d144 1
a144 1
	  $(LIBDIR)/local1_template1.bki.source
d146 1
a146 1
	  $(LIBDIR)/local1_template1.description
d148 1
a148 1
	  $(LIBDIR)/pg_hba.conf.sample
d150 1
a150 1
	  $(LIBDIR)/pg_geqo.sample
d152 1
a152 1
$(BINDIR) $(LIBDIR) $(HEADERDIR): 
@


1.29
log
@Major cleanout of PORTNAME variables from Makefiles...bound to screw up
some of the ports...
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.28 1997/12/17 04:58:19 scrappy Exp $
d54 8
a131 1
	
@


1.28
log
@First pass through, of many to come, towards making the whole source
tree "non-PORTNAME" dependent.  Technically, anything that is PORTNAME
dependent should be able to be derived at compile time, through configure
or through gcc
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.27 1997/11/13 03:22:10 momjian Exp $
a62 3
ifdef PORTNAME
	$(MAKE) -C $(subst .dir,,$@@) all PORTNAME=$(PORTNAME)
else
a63 1
endif
a98 3
ifdef PORTNAME
	for i in $(DIRS); do $(MAKE) -C $$i clean PORTNAME=$(PORTNAME); done
else
a99 1
endif
a101 3
ifdef PORTNAME
	for i in $(DIRS); do $(MAKE) -C $$i $@@ PORTNAME=$(PORTNAME); done
else
a102 1
endif
d164 1
a164 1
	./makeID $(PORTNAME)
@


1.27
log
@Add pg_description table for info on tables, columns, operators, types, and aggregates.  Modify psql with new \dd operator to access description
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.26 1997/09/20 16:08:24 thomas Exp $
d63 1
d65 3
d103 1
d105 3
d110 1
d112 3
@


1.26
log
@Replace missing directory delimiter for postmaster installation command.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.25 1997/09/19 19:44:30 scrappy Exp $
d54 2
a55 1
all: postgres $(POSTGRES_IMP) global1.bki.source local1_template1.bki.source
d68 2
a69 1
global1.bki.source local1_template1.bki.source: catalog/$@@
d72 2
a73 1
catalog/global1.bki.source catalog/local1_template1.bki.source:
d97 2
a98 1
	    global1.bki.source local1_template1.bki.source
d122 1
d134 2
d138 2
@


1.25
log
@1997-06-15  Paul Eggert  <eggert@@twinsun.com>

        * (src/backend/Makefile): Use `ln', not `cd;ln' so that installers
        can wrap ln.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/Makefile,v 1.24 1997/05/22 00:11:23 scrappy Exp $
d125 1
a125 1
	ln -s postgres $(BINDIR)postmaster
@


1.24
log
@From: Darren King <aixssd!darrenk@@abs.net>
Subject: [PATCHES] AIX make patch resubmitted.

Misc patches for AIX from Darren:

1)  New src/makefiles/Makefile.aix  This patch should only be
    applied if the following patch (4) is applied to backend/Makefile!
    Still looking into having configure determine the last line to do
    the shared link.  The 325 code will work for 41, so I put that in
    as the default.  Included a commented out 41 line for completeness.

*and*

4)  Patch the backend Makefile.  I've reviewed this patch with respect to the
    other ports that use MAKE_EXPORTS (svr4 and univel) as closely as I could
    and I don't see where it will break them.  If it does, please let me know
    and I'll rework it somehow.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.23 1997/04/04 10:38:49 scrappy Exp $
d125 1
a125 1
	cd $(BINDIR); ln -s postgres postmaster
@


1.23
log
@This commit represents a clean compile with the new templates under
FreeBSD

The Makefile(s) have all been cleaned up such that there is a single
LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE.  The Makefile(s)
should be alot more straightforward then they were before...and
consistent
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.22 1997/04/02 00:34:23 scrappy Exp $
d54 1
a54 7
ifeq ($(MAKE_EXPORTS), true)
EXP = postgres$(EXPSUFF)
else
EXP =
endif

all: postgres $(EXP) global1.bki.source local1_template1.bki.source
d93 1
a93 1
	rm -f postgres fmgr.h parse.h \
d116 1
a116 1
install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(EXP) fmgr.h\
d122 1
a122 1
	$(INSTALL) $(INSTLOPTS) postgres$(EXPSUFF) $(LIBDIR)/postgres$(EXPSUFF)
@


1.22
log
@Use $(CC), not gcc, to compile

Pointed out by: igor@@cs.cs.miami.edu
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.21 1997/03/25 08:14:25 scrappy Exp $
d63 1
a63 1
	$(CC) -o postgres $(LDFLAGS) $(OBJS) ../utils/version.o $(LD_ADD) 
d82 1
a82 1
	$(CC) $(LDFLAGS) -r -o postgres.o $(OBJS) $(LD_ADD)
d153 1
a153 1
	$(CC) $(LDFLAGS) -o postgres $(OBJS) $(LD_ADD)
@


1.21
log
@Use $(LD_ADD) from Makefile.global instead of $(LDADD), which doesn't exist...

Pointed out indirectly by D'Arcy
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.20 1997/03/12 20:44:57 scrappy Exp $
d63 1
a63 1
	gcc -o postgres $(LDFLAGS) $(OBJS) ../utils/version.o $(LD_ADD) 
@


1.20
log
@From: Dan McGuirk <mcguirk@@indirect.com>
Subject: [HACKERS] backend Makefile patch

This patch cleans up backend/Makefile a little bit, and prevents it from
relinking the backend binary when no changes have been made.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.19 1997/02/19 13:09:29 scrappy Exp $
d63 1
a63 1
	gcc -o postgres $(LDFLAGS) $(OBJS) ../utils/version.o $(LDADD) -lm -ldl
@


1.19
log
@Add and install the pg_geqo.sample file
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.18 1997/01/05 21:17:21 bryanh Exp $
d44 3
a46 7
OBJS = access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o  \
       commands/SUBSYS.o executor/SUBSYS.o  \
       lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o \
       optimizer/SUBSYS.o parser/SUBSYS.o port/SUBSYS.o \
       postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o \
       storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o \
       ../utils/version.o
d49 1
a49 1
OBJS += tioga/SUBSYS.o
d52 2
d62 4
a65 2
postgres: postgres_group1 postgres_group2 postgres_group3 postgres_group4 
	$(CC) $(LDFLAGS) -o postgres $(OBJS) $(LD_ADD)
d67 4
a70 25
postgres_group1:
	$(MAKE) -C access     all   
	$(MAKE) -C bootstrap  all   
	$(MAKE) -C catalog    SUBSYS.o
	$(MAKE) -C commands   all   
postgres_group2:
	$(MAKE) -C executor   all   
	$(MAKE) -C lib        all   
	$(MAKE) -C libpq      all   
	$(MAKE) -C main       all   
	$(MAKE) -C nodes      all   
postgres_group3:
	$(MAKE) -C optimizer  all   
	$(MAKE) -C parser     all   
	$(MAKE) -C port       all   PORTNAME=$(PORTNAME)
	$(MAKE) -C postmaster all   
	$(MAKE) -C regex      all   
postgres_group4:
	$(MAKE) -C rewrite    all   
	$(MAKE) -C storage    all   
	$(MAKE) -C tcop       all   
	$(MAKE) -C utils      all   
ifdef TIOGA
	$(MAKE) -C tioga      all   
endif
d73 4
a76 1
global1.bki.source local1_template1.bki.source: 
a77 1
	cp catalog/$@@ .
d101 1
a101 21
	$(MAKE) -C access     clean
	$(MAKE) -C bootstrap  clean
	$(MAKE) -C catalog    clean
	$(MAKE) -C commands   clean
	$(MAKE) -C executor   clean
	$(MAKE) -C lib        clean
	$(MAKE) -C libpq      clean
	$(MAKE) -C main       clean
	$(MAKE) -C nodes      clean
	$(MAKE) -C optimizer  clean
	$(MAKE) -C parser     clean
	$(MAKE) -C port       clean   PORTNAME=$(PORTNAME)
	$(MAKE) -C postmaster clean
	$(MAKE) -C regex      clean
	$(MAKE) -C rewrite    clean
	$(MAKE) -C storage    clean
	$(MAKE) -C tcop       clean
	$(MAKE) -C utils      clean
ifdef TIOGA
	$(MAKE) -C tioga      clean
endif
d104 1
a104 22
	$(MAKE) -C access     $@@
	$(MAKE) -C bootstrap  $@@
	$(MAKE) -C catalog    $@@
	$(MAKE) -C commands   $@@
	$(MAKE) -C executor   $@@
	$(MAKE) -C lib        $@@
	$(MAKE) -C libpq      $@@
	$(MAKE) -C main       $@@
	$(MAKE) -C nodes      $@@
	$(MAKE) -C optimizer  $@@
	$(MAKE) -C parser     $@@
	$(MAKE) -C port       $@@  PORTNAME=$(PORTNAME)
	$(MAKE) -C postmaster $@@
	$(MAKE) -C regex      $@@
	$(MAKE) -C rewrite    $@@
	$(MAKE) -C storage    $@@
	$(MAKE) -C tcop       $@@
	$(MAKE) -C utils      $@@
ifdef TIOGA
	$(MAKE) -C tioga      $@@
endif

@


1.18
log
@Standardize all LDADD to LD_ADD.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.16 1996/11/18 02:23:41 bryanh Exp $
d184 1
a184 1
         libpq/pg_hba.conf.sample 
d199 2
@


1.17
log
@First pass at getting shared libraries on AIX properly built.
@
text
@d65 1
a65 1
	$(CC) $(LDFLAGS) -o postgres $(OBJS) $(LDADD)
d101 1
a101 1
	$(CC) $(LDFLAGS) -r -o postgres.o $(OBJS) $(LDADD)
d211 1
a211 1
	$(CC) $(LDFLAGS) -o postgres $(OBJS) $(LDADD)
@


1.16
log
@Make port-specific link libraries defined for linking backend more global
so you can also link pgtclsh.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.14 1996/11/03 09:05:30 bryanh Exp $
d56 7
a62 1
all: postgres global1.bki.source local1_template1.bki.source
d98 5
d182 1
a182 4
D_LIBDIR = $(DESTDIR)$(LIBDIR)
D_BINDIR = $(DESTDIR)$(BINDIR)

install: $(D_LIBDIR) $(D_BINDIR) $(HEADERDIR) postgres fmgr.h\
d184 1
a184 1
         libpq/pg_hba.conf.sample
d186 6
a191 3
	$(INSTALL) $(INSTL_EXE_OPTS) postgres $(D_BINDIR)/postgres
	@@rm -f $(D_BINDIR)/postmaster
	cd $(D_BINDIR); ln -s postgres postmaster
d194 1
a194 1
	  $(D_LIBDIR)/global1.bki.source
d196 1
a196 1
	  $(D_LIBDIR)/local1_template1.bki.source
d198 1
a198 1
	  $(D_LIBDIR)/pg_hba.conf.sample
d200 1
a200 1
$(D_BINDIR) $(D_LIBDIR) $(HEADERDIR): 
@


1.15
log
@Use new utils/version.c instead of backend/utils/init/magic.c.
@
text
@a43 85

##########################################################################
# Determine linker flags for this platform (mainly, the libraries with
# which to link).
##########################################################################

# All systems except NEXTSTEP require the math library.
# Loader flags for system-dependent libraries are appended in
#	src/backend/port/$(PORTNAME)/Makefile.inc
#
ifneq ($(PORTNAME), next)
LDADD+=	-lm
endif

ifeq ($(PORTNAME), aix)
LDADD+= -ll -lld
endif

ifeq ($(PORTNAME), alpha)
LDADD+= -lln
endif

ifeq ($(PORTNAME), bsdi)
  ifeq ($(PRE_BSDI_2_1), false)
    LDADD+= -ldl -lipc
  else
    LDADD+= -ldld -lipc
  endif
endif

ifeq ($(PORTNAME), hpux)
# HP-UX needs:
# -W l,-E	export symbols for linking with the shared libraries 
#		dynamic loader
# -W p,-H400000	expand cpp #define table size so the Nodes files don't 
#		break it
#
# -W p,-H400000
ifeq ($(CC), cc)
CFLAGS+= -W l,-E 
LDFLAGS+= -W l,-E
LDADD+= -ll -ldld
else
ifeq ($(CC), gcc)
LDADD+= -ll /usr/lib/libdld.sl
endif
endif
endif

ifeq ($(PORTNAME), i386_solaris)
LDADD+= -ll -ldl
endif

ifeq ($(PORTNAME), irix5)
LDADD+= -ll
endif

ifeq ($(PORTNAME), linux)
ifdef LINUX_ELF
LDADD+= -ldl
else
LDADD+= -ldld
endif
endif

ifeq ($(PORTNAME), sparc)
LDADD+= -lln -ldl
endif

ifeq ($(PORTNAME), sparc_solaris)
LDADD+= -ll -ldl
endif

ifeq ($(PORTNAME), svr4)
LDADD+= -ll -ldl
# the following is special for Reliant UNIX SVR4 (formerly SINIX)
LDFLAGS+= -LD-Blargedynsym
endif

ifeq ($(PORTNAME), ultrix4)
LDADD+= -ldl -lln
endif

#############################################################################

@


1.14
log
@Keep the generated .h files in the local directory, like other object files,
rather than in src/include with normal header files.  Necessary to make
dependancies work out so they don't keep getting rebuilt for no reason.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.13 1996/11/01 03:35:43 momjian Exp $
d134 2
a135 1
       storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o
d143 1
a143 1
postgres: postgres_group1 postgres_group2 postgres_group3 postgres_group4
d171 1
@


1.13
log
@More chanes for bsdi_2_1 removal
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.12 1996/11/01 01:46:00 momjian Exp $
d146 4
a149 4
	$(MAKE) -C access     SUBSYS.o   
	$(MAKE) -C bootstrap  SUBSYS.o   
	$(MAKE) -C catalog    SUBSYS.o   
	$(MAKE) -C commands   SUBSYS.o   
d151 5
a155 5
	$(MAKE) -C executor   SUBSYS.o   
	$(MAKE) -C lib        SUBSYS.o   
	$(MAKE) -C libpq      SUBSYS.o   
	$(MAKE) -C main       SUBSYS.o   
	$(MAKE) -C nodes      SUBSYS.o   
d157 5
a161 5
	$(MAKE) -C optimizer  SUBSYS.o   
	$(MAKE) -C parser     SUBSYS.o   
	$(MAKE) -C port       SUBSYS.o   PORTNAME=$(PORTNAME)
	$(MAKE) -C postmaster SUBSYS.o   
	$(MAKE) -C regex      SUBSYS.o   
d163 4
a166 4
	$(MAKE) -C rewrite    SUBSYS.o   
	$(MAKE) -C storage    SUBSYS.o   
	$(MAKE) -C tcop       SUBSYS.o   
	$(MAKE) -C utils      SUBSYS.o   
d168 1
a168 1
	$(MAKE) -C tioga      SUBSYS.o   
d173 1
a173 1
	cp catalog/$@@ ../include
d182 1
a182 1
	cp parser/parse.h ../include
d186 1
a186 1
	cp utils/fmgr.h ../include
d279 5
@


1.12
log
@Removal of bsdi_2_1 port.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.11 1996/10/31 07:25:15 scrappy Exp $
d67 1
a67 1
  ifeq ($(PRE_BSDI_2_1), N)
@


1.11
log
@Even compile generated .h files should be in ${SRCDIR}/include...
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.10 1996/10/27 09:45:39 bryanh Exp $
d67 5
a71 5
LDADD+= -ldld -lipc
endif

ifeq ($(PORTNAME), bsdi_2_1)
LDADD+= -ldl -lipc
@


1.10
log
@Simplify make files, add full dependencies.
@
text
@d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.9 1996/10/12 07:44:39 bryanh Exp $
d173 1
a173 1
	cp catalog/$@@ .
d182 1
a182 1
	cp parser/parse.h .
d186 1
a186 1
	cp utils/fmgr.h .
@


1.9
log
@New host-based authentication -- install pg_hba.conf instead of pg_hba
@
text
@d8 27
d37 1
a37 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.8 1996/09/26 15:40:24 momjian Exp $
d41 12
d54 2
a55 44
# The following turns on intermediate linking of partial objects to speed
# the link cycle during development. (To turn this off, put "BIGOBJS=false"
# in your custom makefile, ../Makefile.custom.)
BIGOBJS= true

PROG=	postgres global1.bki.source local1_template1.bki.source

MKDIR=	../mk
include $(MKDIR)/postgres.mk

include $(CURDIR)/access/Makefile.inc
include $(CURDIR)/bootstrap/Makefile.inc
include $(CURDIR)/catalog/Makefile.inc
include $(CURDIR)/commands/Makefile.inc
include $(CURDIR)/executor/Makefile.inc
include $(CURDIR)/include/Makefile.inc
include $(CURDIR)/lib/Makefile.inc
include $(CURDIR)/libpq/Makefile.inc
include $(CURDIR)/main/Makefile.inc
include $(CURDIR)/nodes/Makefile.inc
include $(CURDIR)/optimizer/Makefile.inc
include $(CURDIR)/parser/Makefile.inc
include $(CURDIR)/port/Makefile.inc
include $(CURDIR)/postmaster/Makefile.inc
include $(CURDIR)/regex/Makefile.inc
include $(CURDIR)/rewrite/Makefile.inc
include $(CURDIR)/storage/Makefile.inc
include $(CURDIR)/tcop/Makefile.inc
include $(CURDIR)/tioga/Makefile.inc
include $(CURDIR)/utils/Makefile.inc

SRCS:=	${SRCS_ACCESS} ${SRCS_BOOTSTRAP} $(SRCS_CATALOG) ${SRCS_COMMANDS} \
	${SRCS_EXECUTOR} $(SRCS_LIB) $(SRCS_LIBPQ) ${SRCS_MAIN} \
	${SRCS_NODES} ${SRCS_OPTIMIZER} ${SRCS_PARSER} ${SRCS_PORT} \
	$(SRCS_POSTMASTER) ${SRCS_REGEX} ${SRCS_REWRITE} ${SRCS_STORAGE} \
	${SRCS_TCOP} ${SRCS_UTILS} 

ifeq ($(BIGOBJS), true)
OBJS= ACCESS.o BOOTSTRAP.o COMMANDS.o EXECUTOR.o MAIN.o MISC.o NODES.o \
	PARSER.o OPTIMIZER.o REGEX.o REWRITE.o STORAGE.o TCOP.o UTILS.o
CLEANFILES+= $(subst .s,.o,$(SRCS:.c=.o)) $(OBJS)
else
OBJS:= $(subst .s,.o,$(SRCS:%.c=$(objdir)/%.o))
CLEANFILES+= $(notdir $(OBJS))
d58 3
d62 6
a67 14
#############################################################################
#
# TIOGA stuff
#
ifdef TIOGA
SRCS+= $(SRCS_TIOGA) 
   ifeq ($(BIGOBJS), true)
TIOGA.o: 	$(SRCS_TIOGA:%.c=$(objdir)/%.o)
	$(make_partial)
OBJS+= TIOGA.o
CLEANFILES+= $(SRCS_TIOGA:%.c=%.o) TIOGA.o
   else
OBJS+= $(SRCS_TIOGA:%.c=$(objdir)/%.o)
   endif
d70 3
d74 6
a79 1
#############################################################################
d81 10
a90 18
# Compiling the postgres backend.
#
CFLAGS+=  -DPOSTGRESDIR='"$(POSTGRESDIR)"' \
	-DPGDATADIR='"$(DATADIR)"' \
	-I$(CURDIR)/$(objdir) \
	-I$(CURDIR)/include \
	-I$(CURDIR)/port/$(PORTNAME) \
	-I../include

# turn this on if you prefer European style dates instead of American
# style dates
ifdef EUROPEAN_DATES
CFLAGS += -DEUROPEAN_STYLE
endif

# host based access flags
ifdef HBA
CFLAGS+= $(HBAFLAGS)
d92 3
a94 8
 
#
# All systems except NEXTSTEP require the math library.
# Loader flags for system-dependent libraries are appended in
#	src/backend/port/$(PORTNAME)/Makefile.inc
#
ifneq ($(PORTNAME), next)
LDADD+=	-lm
d97 2
a98 4
# kerberos flags
ifdef KRBVERS
CFLAGS+= $(KRBFLAGS)
LDADD+= $(KRBLIBS)
a100 1
# statically link in libc for linux
d102 9
a110 1
LDADD+= -lc
d113 6
a119 1
ifeq ($(PORTNAME), svr4)
d123 52
a174 2
postgres: $(POSTGRES_DEPEND) $(OBJS) $(EXPORTS)
	$(CC) $(LDFLAGS) -o $(objdir)/$(@@F) $(addprefix $(objdir)/,$(notdir $(OBJS))) $(LDADD)
d176 3
a178 4
# Make this target first if you are doing a parallel make.
# The targets in 'first' need to be made sequentially because of dependencies.
# Then, you can make 'all' with parallelism turned on.
first: $(POSTGRES_DEPEND)
d180 7
d189 24
a212 4
#
# Partial objects for platforms with slow linkers.
#
ifeq ($(BIGOBJS), true)
d214 21
a234 47
OBJS_ACCESS:=	   $(SRCS_ACCESS:%.c=$(objdir)/%.o)
OBJS_BOOTSTRAP:=   $(SRCS_BOOTSTRAP:%.c=$(objdir)/%.o)
OBJS_CATALOG:=	   $(SRCS_CATALOG:%.c=$(objdir)/%.o)
OBJS_COMMANDS:=	   $(SRCS_COMMANDS:%.c=$(objdir)/%.o)
OBJS_EXECUTOR:=	   $(SRCS_EXECUTOR:%.c=$(objdir)/%.o)
OBJS_MAIN:=	   $(SRCS_MAIN:%.c=$(objdir)/%.o)
OBJS_POSTMASTER:=  $(SRCS_POSTMASTER:%.c=$(objdir)/%.o)
OBJS_LIB:=	   $(SRCS_LIB:%.c=$(objdir)/%.o)
OBJS_LIBPQ:=	   $(SRCS_LIBPQ:%.c=$(objdir)/%.o)
OBJS_PORT:=	   $(addprefix $(objdir)/,$(subst .s,.o,$(SRCS_PORT:.c=.o)))
OBJS_NODES:=	   $(SRCS_NODES:%.c=$(objdir)/%.o)
OBJS_PARSER:=	   $(SRCS_PARSER:%.c=$(objdir)/%.o)
OBJS_OPTIMIZER:=   $(SRCS_OPTIMIZER:%.c=$(objdir)/%.o)
OBJS_REGEX:=	   $(SRCS_REGEX:%.c=$(objdir)/%.o)
OBJS_REWRITE:=	   $(SRCS_REWRITE:%.c=$(objdir)/%.o)
OBJS_STORAGE:=	   $(SRCS_STORAGE:%.c=$(objdir)/%.o)
OBJS_TCOP:=	   $(SRCS_TCOP:%.c=$(objdir)/%.o)
OBJS_UTILS:=	   $(SRCS_UTILS:%.c=$(objdir)/%.o)

ACCESS.o:	$(OBJS_ACCESS)
	$(make_partial)
BOOTSTRAP.o:	$(OBJS_BOOTSTRAP)
	$(make_partial)
COMMANDS.o:	$(OBJS_COMMANDS)
	$(make_partial)
EXECUTOR.o:	$(OBJS_EXECUTOR)
	$(make_partial)
MAIN.o:		$(OBJS_MAIN) $(OBJS_POSTMASTER)
	$(make_partial)
MISC.o:		$(OBJS_CATALOG) $(OBJS_LIB) $(OBJS_LIBPQ) $(OBJS_PORT)
	$(make_partial)
NODES.o:	$(OBJS_NODES)
	$(make_partial)
PARSER.o:	$(OBJS_PARSER)
	$(make_partial)
OPTIMIZER.o:	$(OBJS_OPTIMIZER)
	$(make_partial)
REGEX.o:	$(OBJS_REGEX)
	$(make_partial)
REWRITE.o:	$(OBJS_REWRITE)
	$(make_partial)
STORAGE.o:	$(OBJS_STORAGE)
	$(make_partial)
TCOP.o:		$(OBJS_TCOP)
	$(make_partial)
UTILS.o:	$(OBJS_UTILS)
	$(make_partial)
d237 1
d254 4
a257 1
install: beforeinstall postgres fmgr.h\
d261 8
a268 9
	$(INSTALL) $(INSTL_EXE_OPTS) $(objdir)/postgres \
	  $(DESTDIR)$(BINDIR)/postgres
	@@rm -f $(DESTDIR)$(BINDIR)/postmaster
	cd $(DESTDIR)$(BINDIR); ln -s postgres postmaster
	$(INSTALL) $(INSTLOPTS) $(objdir)/fmgr.h $(HEADERDIR)/fmgr.h
	$(INSTALL) $(INSTLOPTS) $(objdir)/global1.bki.source \
	  $(DESTDIR)$(LIBDIR)/global1.bki.source
	$(INSTALL) $(INSTLOPTS) $(objdir)/local1_template1.bki.source \
	  $(DESTDIR)$(LIBDIR)/local1_template1.bki.source
d270 1
a270 12
	  $(DESTDIR)$(LIBDIR)/pg_hba.conf.sample

# so we can get the UID of the postgres owner (w/o moving pg_id to
# src/tools). We just want the vanilla LDFLAGS for pg_id
IDLDFLAGS:= $(LDFLAGS)
ifeq ($(PORTNAME), hpux)
ifeq ($(CC), cc)
IDLDFLAGS+= -Aa -D_HPUX_SOURCE
endif
endif

CLEANFILES+= postgres pg_id fmgr.h
d272 2
d286 1
a286 1
	$(CURDIR)/makeID $(PORTNAME)
d293 1
a293 1
#	bmake foo.C
d296 2
a297 17
	$(CC) -E $(CFLAGS) $(<:.C=.c) | cat -s | cb | tr -s '\012*' '\012' > $(objdir)/$(@@F)

cppall: $(SRCS:.c=.cpp)

#
# To use Purify (SunOS only), define PURIFY to be the path (and
# options) with which to invoke the Purify loader.  Only the executable
# needs to be loaded with Purify.
#
# PURIFY = /usr/sww/bin/purify -cache-dir=/usr/local/postgres/src/backend/purify-cache
#.if defined(PURIFY)
#${PROG}: $(POSTGRES_DEPEND) $(OBJS) $(EXPORTS)
#	${PURIFY} ${CC} ${LDFLAGS} -o $(objdir)/$(@@F) $(addprefix $(objdir)/,$(notdir $(OBJS))) $(LDADD)
#
#CLEANFILES+= .purify* .pure .lock.*.o *_pure_*.o *.pure_*link*
#.endif

@


1.8
log
@Fixed YACC depenencies and 'make clean' now cleans totally.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.7 1996/09/23 08:21:52 scrappy Exp $
d208 1
a208 1
         libpq/pg_hba.sample
d219 2
a220 2
	$(INSTALL) $(INSTLOPTS) libpq/pg_hba.sample \
	  $(DESTDIR)$(LIBDIR)/pg_hba.sample
@


1.7
log
@Here's a patch that I discussed recently on pg95-dev that changes the
way one creates a database system.  Parts that were in "make install"
are not either in "make all" or initdb.  Nothing goes in the PGDATA
directory besides user data.  Creating multiple database systems is
easier.

In addition to applying the patch, it is necessary to move the file
libpq/pg_hba to backend/libpq/pg_hba.sample.

Submitted by: Bryan Henderson <bryanh@@giraffe.netgate.net>
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.6 1996/09/21 06:27:11 scrappy Exp $
d231 1
a231 1
CLEANFILES+= postgres
@


1.6
log
@Nothing patched...just testing something with CVS...
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.5 1996/08/28 02:18:00 scrappy Exp $
d20 1
a20 2

PROG=	postgres
a24 1

d61 1
d88 1
a88 1
	-I$(SRCDIR)/include
d194 18
a211 15
# Install the bki files to the data directory.  We also copy a version
# of them that has "PGUID" intact, so one can change the value of the
# postgres userid before running initdb in the case of customizing the
# binary release (i.e., fixing up PGUID w/o recompiling the system).
# Those files are copied out as foo.source.  The program newbki(1) can
# be run later to reset the postgres login id (but it must be run before
# initdb is run, or after clearing the data directory with
# cleardbdir(1)). [newbki distributed with v4r2 but not with Postgres95.]
#

# 	NAMEDATALEN=`egrep "^#define NAMEDATALEN" $(CURDIR)/include/postgres.h | awk '{print $$3}'`; \
# 	OIDNAMELEN=`egrep "^#define OIDNAMELEN" $(CURDIR)/include/postgres.h | awk '{print $$3}'`; \

install: beforeinstall pg_id $(BKIFILES) postgres
	$(INSTALL) $(INSTL_EXE_OPTS) $(objdir)/postgres $(DESTDIR)$(BINDIR)/postgres
d214 7
a220 29
	@@cd $(objdir); \
	PG_UID=`./pg_id $(POSTGRESLOGIN)`; \
	POSTGRESLOGIN=$(POSTGRESLOGIN);\
 	echo "NAMEDATALEN = $(NAMEDATALEN)"; \
 	echo "OIDNAMELEN = $(OIDNAMELEN)"; \
	case $$PG_UID in "NOUSER") \
		echo "Warning: no account named $(POSTGRESLOGIN), using yours";\
		POSTGRESLOGIN=`whoami`; \
		PG_UID=`./pg_id`;; \
	esac ;\
	for bki in $(BKIFILES); do \
		sed \
		    -e "s/postgres PGUID/$$POSTGRESLOGIN $$PG_UID/" \
		    -e "s/NAMEDATALEN/$(NAMEDATALEN)/g" \
		    -e "s/OIDNAMELEN/$(OIDNAMELEN)/g" \
		    -e "s/PGUID/$$PG_UID/" \
		    < $$bki > $$bki.sed ; \
		echo "Installing $(DESTDIR)$(DATADIR)/files/$$bki."; \
		$(INSTALL) $(INSTLOPTS) \
		    $$bki.sed $(DESTDIR)$(DATADIR)/files/$$bki; \
		rm -f $$bki.sed; \
		echo "Installing $(DESTDIR)$(DATADIR)/files/$$bki.source."; \
		$(INSTALL) $(INSTLOPTS) \
		    $$bki $(DESTDIR)$(DATADIR)/files/$$bki.source; \
	done;
	@@echo "Installing $(DATADIR)/pg_hba";
	@@cp $(srcdir)/libpq/pg_hba $(DATADIR)
	@@chmod 644 $(DATADIR)/pg_hba

a229 2
pg_id:	$(srcdir)/bin/pg_id/pg_id.c
	$(CC) $(IDLDFLAGS) -o $(objdir)/$(@@F) $<
d231 1
a231 1
CLEANFILES+= pg_id postgres
@


1.5
log
@Went back one directory too far for the -I include
@
text
@d4 1
a4 1
#    Makefile for the postgres backend (and the postmaster)
d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.4 1996/08/27 06:10:50 scrappy Exp $
@


1.4
log
@Create support for a "common" include directory for the source
tree, instead of having include files all over the place...

Immediate goal...a 'config.h' file so that we can make #ifdef's
being used throughout the code more a rarity as far as porting
is concerned
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.3 1996/08/19 13:51:55 scrappy Exp $
a85 1
	-I$(CURDIR)/. \
d89 1
a89 1
	-I$(CURDIR)/../include
@


1.3
log
@Added a SVR4 port

---

below my signature, there are a coupls of diffs and files in a shell
archive, which were needed to build postgres95 1.02 on Siemens Nixdorfs
MIPS based SINIX systems. Except for the compiler switches "-W0" and
"-LD-Blargedynsym" these diffs should also apply for other SVR4 based
systems. The changes in "Makefile.global" and "genbki.sh" can probably
be ignored (I needed gawk, to make the script run).

There is one bugfix thou. In "src/backend/parser/sysfunc.c" the
function in this file didn't honor the EUROPEAN_DATES ifdef.

---

Submitted by:  Frank Ridderbusch <ridderbusch.pad@@sni.de>
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.2 1996/07/31 17:19:49 scrappy Exp $
d86 2
a87 1
	-I$(CURDIR)/. -I$(CURDIR)/$(objdir) \
d89 2
a90 1
	-I$(CURDIR)/port/$(PORTNAME)
@


1.2
log
@Re-arrange KRBVERS postition

Suggested by: Daniel Kalchev <daniel@@digsys.bg>
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.1.1.1 1996/07/09 06:21:08 scrappy Exp $
d119 5
@


1.2.2.1
log
@Added a SVR4 port

---

below my signature, there are a coupls of diffs and files in a shell
archive, which were needed to build postgres95 1.02 on Siemens Nixdorfs
MIPS based SINIX systems. Except for the compiler switches "-W0" and
"-LD-Blargedynsym" these diffs should also apply for other SVR4 based
systems. The changes in "Makefile.global" and "genbki.sh" can probably
be ignored (I needed gawk, to make the script run).

There is one bugfix thou. In "src/backend/parser/sysfunc.c" the
function in this file didn't honor the EUROPEAN_DATES ifdef.

---

Submitted by:  Frank Ridderbusch <ridderbusch.pad@@sni.de>
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/Makefile,v 1.2 1996/07/31 17:19:49 scrappy Exp $
a118 5
endif

# the following is special for Reliant UNIX SVR4 (formerly SINIX)
ifeq ($(PORTNAME), svr4)
LDFLAGS+= -LD-Blargedynsym
@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/postgres95/src/backend/Makefile,v 1.1.1.1 1996/07/09 05:31:24 scrappy Exp $
a95 6
# kerberos flags
ifdef KRBVERS
CFLAGS+= $(KRBFLAGS)
LDADD+= $(KRBLIBS)
endif

a100 2


d108 6
@


1.1.1.1
log
@Postgres95 1.01 Distribution - Virgin Sources
@
text
@@
