Skip to content
Snippets Groups Projects
Commit c7054a6c authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

More refactoring, so that the SUBSYS.o rules are now all in one place.

parent e2f16cd0
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ ...@@ -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 ...@@ -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 @@ ...@@ -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 ...@@ -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 @@ ...@@ -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 ...@@ -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 @@ ...@@ -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 ...@@ -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 @@ ...@@ -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)) ...@@ -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 ...@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment