mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
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.
This commit is contained in:
@@ -6,4 +6,5 @@ MK_NO_LORDER= true
|
||||
%.so: %.o
|
||||
$(LD) -G -Bdynamic -shared -o $@ $<
|
||||
|
||||
CFLAGS+= -U_NO_XOPEN4 -woff 1164,1171,1185,1195,1552 -Wl,-woff,15 -Wl,-woff,84
|
||||
override CPPFLAGS += -U_NO_XOPEN4
|
||||
override CFLAGS += -woff 1164,1171,1185,1195,1552 -Wl,-woff,15 -Wl,-woff,84
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
CFLAGS += -dy
|
||||
override CFLAGS += -dy
|
||||
export_dynamic = -W l,-Bexport
|
||||
|
||||
%.so: %.o
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
# install creates intermediate directories
|
||||
NO_BEFOREINSTL= true
|
||||
SHELL=/bin/sh5
|
||||
|
||||
#
|
||||
# "-G 0" works for both DEC cc and GNU cc.
|
||||
#
|
||||
%.so: %.c
|
||||
$(CC) -c -G 0 $(CFLAGS) -o $@ $<
|
||||
$(CC) -c -G 0 $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.5 2000/09/29 13:36:50 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.6 2000/10/20 21:04:13 petere Exp $
|
||||
LDFLAGS+= -g
|
||||
DLLTOOL= dlltool
|
||||
DLLWRAP= dllwrap
|
||||
@@ -18,5 +18,5 @@ LIBS:=$(filter-out -lm -lc, $(LIBS))
|
||||
|
||||
curdir:=$(shell pwd)
|
||||
ifeq ($(findstring backend,$(curdir)), backend)
|
||||
CPPFLAGS+= -DBUILDING_DLL=1
|
||||
override CPPFLAGS+= -DBUILDING_DLL=1
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user