📄 makefile.pl
字号:
#-------------------------------------------------------## $Id: Makefile.PL,v 1.14 1998/10/18 02:36:48 tgl Exp $## Copyright (c) 1997, 1998 Edmund Mergl##-------------------------------------------------------use ExtUtils::MakeMaker;use Config;use strict;my %opts;if (! $ENV{POSTGRES_HOME}) { # Check that we actually are inside the Postgres source tree if (! -d "../libpq") { die"To install Pg separately from the Postgres distribution,you must set environment variable POSTGRES_HOME to point towhere Postgres is installed (often /usr/local/pgsql).\n"; } # Setup for build/test inside a Postgres source tree # Perl may complain if path to libpq isn't absolute my $cwd = `pwd`; chop $cwd; %opts = ( NAME => 'Pg', VERSION_FROM => 'Pg.pm', INC => "-I../libpq -I../../include", OBJECT => "Pg\$(OBJ_EXT)", LIBS => ["-L$cwd/../libpq -lpq"], );} else { # Setup for final install of Pg using an already-installed libpq, # or for standalone installation when Postgres already is installed. %opts = ( NAME => 'Pg', VERSION_FROM => 'Pg.pm', INC => "-I$ENV{POSTGRES_HOME}/include", OBJECT => "Pg\$(OBJ_EXT)", LIBS => ["-L$ENV{POSTGRES_HOME}/lib -lpq"], );}WriteMakefile(%opts);exit(0);# end of Makefile.PL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -