Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita431aae

Browse files
committed
Export include/utils/mcxt.h so that external stuff can include
palloc.h again. Move exporting of backend header files out of libpq'sMakefile (whatever was it doing there in the first place?) and intobackend/Makefile.
1 parent86c2ead commita431aae

File tree

2 files changed

+78
-72
lines changed

2 files changed

+78
-72
lines changed

‎src/backend/Makefile

Lines changed: 74 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#
3535
#
3636
# IDENTIFICATION
37-
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.37 1999/02/23 07:24:02 thomas Exp $
37+
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.38 1999/03/07 23:05:56 tgl Exp $
3838
#
3939
#-------------------------------------------------------------------------
4040

@@ -143,8 +143,10 @@ endif
143143
# Installation.
144144
#
145145
# Install the backend program (postgres) to the binary directory and
146-
# make a link as "postmaster". Install the bki files templates and sample
147-
# files to the library directory.
146+
# make a link as "postmaster". Install the bki files, templates, and sample
147+
# files to the library directory. Install exported headers to the include
148+
# directory (these headers are the minimal ones needed to build loadable
149+
# backend extensions).
148150
#
149151
# (History: Before Release 2, make install generated a bki.source file
150152
# and then used build parameters to convert it to a bki file, then installed
@@ -154,23 +156,29 @@ endif
154156
# and (2) the parameters of a database system should be set at initdb time,
155157
# not at postgres build time.
156158

157-
install:$(LIBDIR)$(BINDIR)$(HEADERDIR) postgres$(POSTGRES_IMP) fmgr.h\
158-
global1.bki.source local1_template1.bki.source \
159-
global1.description local1_template1.description \
160-
libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample
159+
.PHONY: install install-bin install-lib install-headers
160+
161+
install:$(LIBDIR)$(BINDIR)$(HEADERDIR) postgres$(POSTGRES_IMP)\
162+
install-bin install-lib install-headers
163+
164+
install-bin:$(BINDIR) postgres$(X)$(POSTGRES_IMP)
161165
$(INSTALL)$(INSTL_EXE_OPTS) postgres$(X)$(BINDIR)/postgres$(X)
166+
@rm -f$(BINDIR)/postmaster
167+
ln -s postgres$(X)$(BINDIR)/postmaster
162168
ifeq ($(MAKE_EXPORTS), true)
163169
$(INSTALL) $(INSTLOPTS) $(POSTGRES_IMP) $(LIBDIR)/$(POSTGRES_IMP)
164170
endif
165-
@rm -f $(BINDIR)/postmaster
166-
ln -s postgres$(X) $(BINDIR)/postmaster
167171
ifeq ($(PORTNAME), win)
168172
ifeq ($(MAKE_DLL), true)
169173
#$(INSTALL) $(INSTLOPTS) postgres.dll $(BINDIR)/postgres.dll
170174
$(INSTALL) $(INSTLOPTS) libpostgres.a $(LIBDIR)/libpostgres.a
171175
endif
172176
endif
173-
$(INSTALL) $(INSTLOPTS) fmgr.h $(HEADERDIR)/fmgr.h
177+
178+
install-lib:$(LIBDIR)\
179+
global1.bki.source local1_template1.bki.source \
180+
global1.description local1_template1.description \
181+
libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample
174182
$(INSTALL) $(INSTLOPTS) global1.bki.source \
175183
$(LIBDIR)/global1.bki.source
176184
$(INSTALL) $(INSTLOPTS) global1.description \
@@ -184,8 +192,62 @@ endif
184192
$(INSTALL) $(INSTLOPTS) optimizer/geqo/pg_geqo.sample \
185193
$(LIBDIR)/pg_geqo.sample
186194

187-
#$(BINDIR) $(LIBDIR) $(HEADERDIR):
188-
#mkdir $@
195+
install-headers: fmgr.h$(SRCDIR)/include/config.h
196+
@if [!-d$(HEADERDIR) ];then mkdir$(HEADERDIR);fi
197+
@if [!-d$(HEADERDIR)/port ];then mkdir$(HEADERDIR)/port;fi
198+
@if [!-d$(HEADERDIR)/port/$(PORTNAME) ];\
199+
then mkdir$(HEADERDIR)/port/$(PORTNAME);fi
200+
@if [!-d$(HEADERDIR)/lib ];\
201+
then mkdir$(HEADERDIR)/lib;fi
202+
@if [!-d$(HEADERDIR)/libpq ];\
203+
then mkdir$(HEADERDIR)/libpq;fi
204+
@if [!-d$(HEADERDIR)/utils ];\
205+
then mkdir$(HEADERDIR)/utils;fi
206+
@if [!-d$(HEADERDIR)/access ];\
207+
then mkdir$(HEADERDIR)/access;fi
208+
@if [!-d$(HEADERDIR)/executor ];\
209+
then mkdir$(HEADERDIR)/executor;fi
210+
@if [!-d$(HEADERDIR)/commands ];\
211+
then mkdir$(HEADERDIR)/commands;fi
212+
$(INSTALL)$(INSTLOPTS) fmgr.h\
213+
$(HEADERDIR)/fmgr.h
214+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/os.h \
215+
$(HEADERDIR)/os.h
216+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/config.h \
217+
$(HEADERDIR)/config.h
218+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/c.h \
219+
$(HEADERDIR)/c.h
220+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/postgres.h \
221+
$(HEADERDIR)/postgres.h
222+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/postgres_ext.h \
223+
$(HEADERDIR)/postgres_ext.h
224+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/libpq/pqcomm.h \
225+
$(HEADERDIR)/libpq/pqcomm.h
226+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/libpq/libpq-fs.h \
227+
$(HEADERDIR)/libpq/libpq-fs.h
228+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/lib/dllist.h \
229+
$(HEADERDIR)/lib/dllist.h
230+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/geo_decls.h \
231+
$(HEADERDIR)/utils/geo_decls.h
232+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/elog.h \
233+
$(HEADERDIR)/utils/elog.h
234+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/palloc.h \
235+
$(HEADERDIR)/utils/palloc.h
236+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/mcxt.h \
237+
$(HEADERDIR)/utils/mcxt.h
238+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/access/attnum.h \
239+
$(HEADERDIR)/access/attnum.h
240+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/executor/spi.h \
241+
$(HEADERDIR)/executor/spi.h
242+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/commands/trigger.h \
243+
$(HEADERDIR)/commands/trigger.h
244+
ifeq ($(PORTNAME), hpux)
245+
# is this still necessary?
246+
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/backend/port/hpux/fixade.h \
247+
$(HEADERDIR)/port/hpux/fixade.h
248+
endif
249+
250+
189251
$(BINDIR):
190252
mkdir$@
191253
$(LIBDIR):

‎src/interfaces/libpq/Makefile.in

Lines changed: 4 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1994, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.44 1999/02/0722:10:46 tgl Exp $
9+
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.45 1999/03/0723:05:57 tgl Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -72,70 +72,14 @@ $(SRCDIR)/backend/fmgr.h:
7272
$(MAKE) -C$(SRCDIR)/backend fmgr.h
7373

7474

75-
.PHONY: installbeforeinstall-headersinstall-headers
75+
.PHONY: install install-headers
7676

7777
install: install-headers install-lib$(install-shlib-dep)
7878

79-
# Many of the headers we install below have nothing to do with libpq,
80-
# so should be installed by someone else.
81-
#
82-
install-headers: beforeinstall-headers$(SRCDIR)/include/c.h\
83-
$(SRCDIR)/include/postgres.h $(SRCDIR)/include/postgres_ext.h \
84-
$(SRCDIR)/include/config.h $(SRCDIR)/include/libpq/pqcomm.h \
85-
$(SRCDIR)/include/libpq/libpq-fs.h $(SRCDIR)/include/lib/dllist.h \
86-
$(SRCDIR)/include/utils/geo_decls.h libpq-fe.h libpq-int.h
87-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/os.h \
88-
$(HEADERDIR)/os.h
89-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/config.h \
90-
$(HEADERDIR)/config.h
91-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/c.h \
92-
$(HEADERDIR)/c.h
93-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/postgres.h \
94-
$(HEADERDIR)/postgres.h
95-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/postgres_ext.h \
96-
$(HEADERDIR)/postgres_ext.h
97-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/libpq/pqcomm.h \
98-
$(HEADERDIR)/libpq/pqcomm.h
99-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/libpq/libpq-fs.h \
100-
$(HEADERDIR)/libpq/libpq-fs.h
101-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/lib/dllist.h \
102-
$(HEADERDIR)/lib/dllist.h
103-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/geo_decls.h \
104-
$(HEADERDIR)/utils/geo_decls.h
105-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/elog.h \
106-
$(HEADERDIR)/utils/elog.h
107-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/utils/palloc.h \
108-
$(HEADERDIR)/utils/palloc.h
109-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/access/attnum.h \
110-
$(HEADERDIR)/access/attnum.h
111-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/executor/spi.h \
112-
$(HEADERDIR)/executor/spi.h
113-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/include/commands/trigger.h \
114-
$(HEADERDIR)/commands/trigger.h
79+
install-headers: libpq-fe.h libpq-int.h
80+
@if [!-d$(HEADERDIR) ];then mkdir$(HEADERDIR);fi
11581
$(INSTALL)$(INSTLOPTS) libpq-fe.h$(HEADERDIR)/libpq-fe.h
11682
$(INSTALL)$(INSTLOPTS) libpq-int.h$(HEADERDIR)/libpq-int.h
117-
ifeq ($(PORTNAME), hpux)
118-
$(INSTALL) $(INSTLOPTS) $(SRCDIR)/backend/port/hpux/fixade.h \
119-
$(HEADERDIR)/port/hpux/fixade.h
120-
endif
121-
122-
beforeinstall-headers:
123-
@if [!-d$(HEADERDIR) ];then mkdir$(HEADERDIR);fi
124-
@if [!-d$(HEADERDIR)/port ];then mkdir$(HEADERDIR)/port;fi
125-
@if [!-d$(HEADERDIR)/port/$(PORTNAME) ];\
126-
then mkdir$(HEADERDIR)/port/$(PORTNAME);fi
127-
@if [!-d$(HEADERDIR)/lib ];\
128-
then mkdir$(HEADERDIR)/lib;fi
129-
@if [!-d$(HEADERDIR)/libpq ];\
130-
then mkdir$(HEADERDIR)/libpq;fi
131-
@if [!-d$(HEADERDIR)/utils ];\
132-
then mkdir$(HEADERDIR)/utils;fi
133-
@if [!-d$(HEADERDIR)/access ];\
134-
then mkdir$(HEADERDIR)/access;fi
135-
@if [!-d$(HEADERDIR)/executor ];\
136-
then mkdir$(HEADERDIR)/executor;fi
137-
@if [!-d$(HEADERDIR)/commands ];\
138-
then mkdir$(HEADERDIR)/commands;fi
13983

14084

14185
.PHONY: clean

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp