mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
Fix makefile so it works for VPATH case.
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
# Makefile for PL/Perl
|
# Makefile for PL/Perl
|
||||||
# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.38 2010/01/09 02:40:50 adunstan Exp $
|
# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.39 2010/01/09 03:53:40 tgl Exp $
|
||||||
|
|
||||||
subdir = src/pl/plperl
|
subdir = src/pl/plperl
|
||||||
top_builddir = ../../..
|
top_builddir = ../../..
|
||||||
@ -27,7 +27,7 @@ override CPPFLAGS += -DPLPERL_HAVE_UID_GID
|
|||||||
override CFLAGS += -Wno-comment
|
override CFLAGS += -Wno-comment
|
||||||
endif
|
endif
|
||||||
|
|
||||||
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE
|
override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE
|
||||||
|
|
||||||
rpathdir = $(perl_archlibexp)/CORE
|
rpathdir = $(perl_archlibexp)/CORE
|
||||||
|
|
||||||
@ -36,6 +36,8 @@ NAME = plperl
|
|||||||
|
|
||||||
OBJS = plperl.o spi_internal.o SPI.o
|
OBJS = plperl.o spi_internal.o SPI.o
|
||||||
|
|
||||||
|
PERLCHUNKS = plc_perlboot.pl plc_safe_bad.pl plc_safe_ok.pl
|
||||||
|
|
||||||
SHLIB_LINK = $(perl_embed_ldflags)
|
SHLIB_LINK = $(perl_embed_ldflags)
|
||||||
|
|
||||||
REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-language=plperl
|
REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-language=plperl
|
||||||
@ -47,8 +49,8 @@ include $(top_srcdir)/src/Makefile.shlib
|
|||||||
|
|
||||||
plperl.o: perlchunks.h
|
plperl.o: perlchunks.h
|
||||||
|
|
||||||
perlchunks.h: plc_*.pl
|
perlchunks.h: $(PERLCHUNKS)
|
||||||
$(PERL) text2macro.pl --strip='^(\#.*|\s*)$$' plc_*.pl > perlchunks.htmp
|
$(PERL) $(srcdir)/text2macro.pl --strip='^(\#.*|\s*)$$' $^ > perlchunks.htmp
|
||||||
mv perlchunks.htmp perlchunks.h
|
mv perlchunks.htmp perlchunks.h
|
||||||
|
|
||||||
all: all-lib
|
all: all-lib
|
||||||
|
Reference in New Issue
Block a user