mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
More refactoring, so that the SUBSYS.o rules are now all in one place.
This commit is contained in:
@ -13,7 +13,7 @@
|
|||||||
# be converted to Method 2.
|
# be converted to Method 2.
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.25 2008/02/19 10:30:07 petere Exp $
|
# $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.26 2008/02/19 15:29:58 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -21,29 +21,17 @@ subdir = src/backend/port
|
|||||||
top_builddir = ../../..
|
top_builddir = ../../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
OBJS+=dynloader.o pg_sema.o pg_shmem.o
|
OBJS = dynloader.o pg_sema.o pg_shmem.o $(TAS)
|
||||||
|
|
||||||
OBJS+=$(TAS)
|
|
||||||
|
|
||||||
ifeq ($(PORTNAME), darwin)
|
ifeq ($(PORTNAME), darwin)
|
||||||
OBJS+=darwin/SUBSYS.o
|
SUBDIRS += darwin
|
||||||
endif
|
endif
|
||||||
ifeq ($(PORTNAME), win32)
|
ifeq ($(PORTNAME), win32)
|
||||||
OBJS+=win32/SUBSYS.o
|
SUBDIRS += win32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(top_srcdir)/src/backend/common.mk
|
include $(top_srcdir)/src/backend/common.mk
|
||||||
|
|
||||||
darwin/SUBSYS.o: darwin.dir
|
|
||||||
|
|
||||||
darwin.dir:
|
|
||||||
$(MAKE) -C darwin all
|
|
||||||
|
|
||||||
win32/SUBSYS.o: win32.dir
|
|
||||||
|
|
||||||
win32.dir:
|
|
||||||
$(MAKE) -C win32 all
|
|
||||||
|
|
||||||
tas.o: tas.s
|
tas.o: tas.s
|
||||||
ifeq ($(PORTNAME), solaris)
|
ifeq ($(PORTNAME), solaris)
|
||||||
# preprocess assembler file with cpp, used by x86
|
# preprocess assembler file with cpp, used by x86
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Makefile for port/darwin
|
# Makefile for port/darwin
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $PostgreSQL: pgsql/src/backend/port/darwin/Makefile,v 1.5 2007/01/20 17:16:12 petere Exp $
|
# $PostgreSQL: pgsql/src/backend/port/darwin/Makefile,v 1.6 2008/02/19 15:29:58 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -14,10 +14,4 @@ include $(top_builddir)/src/Makefile.global
|
|||||||
|
|
||||||
OBJS = system.o
|
OBJS = system.o
|
||||||
|
|
||||||
all: SUBSYS.o
|
include $(top_srcdir)/src/backend/common.mk
|
||||||
|
|
||||||
SUBSYS.o: $(OBJS)
|
|
||||||
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f SUBSYS.o $(OBJS)
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Makefile for port/nextstep
|
# Makefile for port/nextstep
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $PostgreSQL: pgsql/src/backend/port/nextstep/Makefile,v 1.10 2007/01/20 17:16:12 petere Exp $
|
# $PostgreSQL: pgsql/src/backend/port/nextstep/Makefile,v 1.11 2008/02/19 15:29:58 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -14,10 +14,4 @@ include $(top_builddir)/src/Makefile.global
|
|||||||
|
|
||||||
OBJS = port.o
|
OBJS = port.o
|
||||||
|
|
||||||
all: SUBSYS.o
|
include $(top_srcdir)/src/backend/common.mk
|
||||||
|
|
||||||
SUBSYS.o: $(OBJS)
|
|
||||||
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f SUBSYS.o $(OBJS)
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Makefile for backend/port/win32
|
# Makefile for backend/port/win32
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $PostgreSQL: pgsql/src/backend/port/win32/Makefile,v 1.11 2007/10/29 12:35:41 mha Exp $
|
# $PostgreSQL: pgsql/src/backend/port/win32/Makefile,v 1.12 2008/02/19 15:29:58 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -14,10 +14,4 @@ include $(top_builddir)/src/Makefile.global
|
|||||||
|
|
||||||
OBJS = timer.o socket.o signal.o security.o mingwcompat.o
|
OBJS = timer.o socket.o signal.o security.o mingwcompat.o
|
||||||
|
|
||||||
all: SUBSYS.o
|
include $(top_srcdir)/src/backend/common.mk
|
||||||
|
|
||||||
SUBSYS.o: $(OBJS)
|
|
||||||
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f SUBSYS.o $(OBJS)
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Makefile for the timezone library
|
# Makefile for the timezone library
|
||||||
|
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.28 2007/08/25 20:29:25 tgl Exp $
|
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.29 2008/02/19 15:29:58 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -32,15 +32,12 @@ ifneq (,$(with_system_tzdata))
|
|||||||
override CPPFLAGS += '-DSYSTEMTZDIR="$(with_system_tzdata)"'
|
override CPPFLAGS += '-DSYSTEMTZDIR="$(with_system_tzdata)"'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: SUBSYS.o
|
include $(top_srcdir)/src/backend/common.mk
|
||||||
|
|
||||||
ifeq (,$(with_system_tzdata))
|
ifeq (,$(with_system_tzdata))
|
||||||
all: submake-libpgport zic
|
all: submake-libpgport zic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SUBSYS.o: $(OBJS)
|
|
||||||
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
|
||||||
|
|
||||||
zic: $(ZICOBJS)
|
zic: $(ZICOBJS)
|
||||||
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
|
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
|
||||||
|
|
||||||
@ -60,4 +57,4 @@ endif
|
|||||||
$(MAKE) -C tznames $@
|
$(MAKE) -C tznames $@
|
||||||
|
|
||||||
clean distclean maintainer-clean:
|
clean distclean maintainer-clean:
|
||||||
rm -f SUBSYS.o zic$(X) $(OBJS) $(ZICOBJS)
|
rm -f zic$(X) $(ZICOBJS)
|
||||||
|
Reference in New Issue
Block a user