ビルドする際のパラメータ(make)

Many installation-related parameters can be set in the building stage of Postgres installation.

Postgres のインストールに際しては、 設定可能なインストール関連パラメータがたくさんあります。

In most cases, these parameters should be placed in a file, Makefile.custom, intended just for that purpose. The default distribution does not contain this optional file, so you will create it using a text editor of your choice. When upgrading installations, you can simply copy your old Makefile.custom to the new installation before doing the build.

ほとんどのケースでは、これらのパラメータは、 Makefile.custom ファイルというのを作ってその中に記 述しなければなりません。デフォルトの配布物にはこのオプション ファイルは含まれていないので、お好みのテキストエディタで作成 して下さい。アップグレード・インストールの場合は、ビルドする 前に単にその古い Makefile.custom を新しいソースツリーの中にコ ピーすればいいのです。


    make [ variable=
    value [,...] ]
    make [ 変数名 =
     [,...] ]
   

A few of the many variables which can be specified are:

指定できる環境変数を以下に示します:

POSTGRESDIR

Top of the installation tree.

インストールするツリーのトップディレクトリ。

BINDIR

Location of applications and utilities.

アプリケーションとユーティリティの場所。

LIBDIR

Location of object libraries, including shared libraries.

オブジェクトライブラリの位置。共有ライブラリも含む。

HEADERDIR

psqlODBC(ODBC) 設定ファイルの配布物全体における位置。

There are other optional parameters which are not as commonly used. Many of those listed below are appropriate when doing Postgres server code development.

これ以外にも、あまり使われないオプション・パラメータがありま す。以下の多くは Postgres サーバ自 体の開発を行う場合に意味を持ちます。

CFLAGS

Set flags for the C compiler. Should be assigned with "+=" to retain relevant default parameters.

C コンパイラへのフラグをセットする。"+=" で値を代入すれば、 関連するパラメータのデフォルト値への追加となる。

YFLAGS

Set flags for the yacc/bison parser. -v might be used to help diagnose problems building a new parser. Should be assigned with "+=" to retain relevant default parameters.

yacc/bison パーサへのフラグをセットする。-v をセットすると、新しいパーサをビルドする際の問題を診断する際 のメッセージを表示する。"+=" で値を代入すれば、関連するパラ メータのデフォルト値への追加となる。

USE_TCL

Enable Tcl interface building.

tcl インターフェースをビルドする。

HSTYLE

DocBook HTML style sheets for building the documentation from scratch. Not used unless you are developing new documentation from the DocBook-compatible SGML source documents in doc/src/sgml/.

ドキュメントを1からビルドする際に使用する DocBook HTML スタイルシート。doc/src/sgml/ にある DocBook 互換のソースドキュメントから、新し いドキュメントを生成する場合にのみ使われる。

PSTYLE

DocBook style sheets for building printed documentation from scratch. Not used unless you are developing new documentation from the DocBook-compatible SGML source documents in doc/src/sgml/ .

印刷可能なドキュメントを1からビルドする際に使用する DocBook スタイルシート。doc/src/sgml/ にある DocBook 互換のソースドキュメントから、新しいドキュメントを生 成する場合にのみ使われる。

Here is an example Makefile.custom for a PentiumPro Linux system:

PentiumPro による Linux システムにおける Makefile.custom のサンプルを以下に示します:

# Makefile.custom
# Thomas Lockhart 1999-06-01

POSTGRESDIR= /opt/postgres/current
CFLAGS+= -m486 -O2

# documentation

HSTYLE= /home/tgl/SGML/db118.d/docbook/html
PSTYLE= /home/tgl/SGML/db118.d/docbook/print