Skip to content

Commit c7054a6

Browse files
committed
More refactoring, so that the SUBSYS.o rules are now all in one place.
1 parent e2f16cd commit c7054a6

File tree

5 files changed

+13
-46
lines changed

5 files changed

+13
-46
lines changed

src/backend/port/Makefile

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,25 @@
1313
# be converted to Method 2.
1414
#
1515
# IDENTIFICATION
16-
# $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.25 2008/02/19 10:30:07 petere Exp $
16+
# $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.26 2008/02/19 15:29:58 petere Exp $
1717
#
1818
#-------------------------------------------------------------------------
1919

2020
subdir = src/backend/port
2121
top_builddir = ../../..
2222
include $(top_builddir)/src/Makefile.global
2323

24-
OBJS+=dynloader.o pg_sema.o pg_shmem.o
25-
26-
OBJS+=$(TAS)
24+
OBJS = dynloader.o pg_sema.o pg_shmem.o $(TAS)
2725

2826
ifeq ($(PORTNAME), darwin)
29-
OBJS+=darwin/SUBSYS.o
27+
SUBDIRS += darwin
3028
endif
3129
ifeq ($(PORTNAME), win32)
32-
OBJS+=win32/SUBSYS.o
30+
SUBDIRS += win32
3331
endif
3432

3533
include $(top_srcdir)/src/backend/common.mk
3634

37-
darwin/SUBSYS.o: darwin.dir
38-
39-
darwin.dir:
40-
$(MAKE) -C darwin all
41-
42-
win32/SUBSYS.o: win32.dir
43-
44-
win32.dir:
45-
$(MAKE) -C win32 all
46-
4735
tas.o: tas.s
4836
ifeq ($(PORTNAME), solaris)
4937
# preprocess assembler file with cpp, used by x86

src/backend/port/darwin/Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for port/darwin
55
#
66
# IDENTIFICATION
7-
# $PostgreSQL: pgsql/src/backend/port/darwin/Makefile,v 1.5 2007/01/20 17:16:12 petere Exp $
7+
# $PostgreSQL: pgsql/src/backend/port/darwin/Makefile,v 1.6 2008/02/19 15:29:58 petere Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -14,10 +14,4 @@ include $(top_builddir)/src/Makefile.global
1414

1515
OBJS = system.o
1616

17-
all: SUBSYS.o
18-
19-
SUBSYS.o: $(OBJS)
20-
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
21-
22-
clean:
23-
rm -f SUBSYS.o $(OBJS)
17+
include $(top_srcdir)/src/backend/common.mk

src/backend/port/nextstep/Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for port/nextstep
55
#
66
# IDENTIFICATION
7-
# $PostgreSQL: pgsql/src/backend/port/nextstep/Makefile,v 1.10 2007/01/20 17:16:12 petere Exp $
7+
# $PostgreSQL: pgsql/src/backend/port/nextstep/Makefile,v 1.11 2008/02/19 15:29:58 petere Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -14,10 +14,4 @@ include $(top_builddir)/src/Makefile.global
1414

1515
OBJS = port.o
1616

17-
all: SUBSYS.o
18-
19-
SUBSYS.o: $(OBJS)
20-
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
21-
22-
clean:
23-
rm -f SUBSYS.o $(OBJS)
17+
include $(top_srcdir)/src/backend/common.mk

src/backend/port/win32/Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for backend/port/win32
55
#
66
# IDENTIFICATION
7-
# $PostgreSQL: pgsql/src/backend/port/win32/Makefile,v 1.11 2007/10/29 12:35:41 mha Exp $
7+
# $PostgreSQL: pgsql/src/backend/port/win32/Makefile,v 1.12 2008/02/19 15:29:58 petere Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -14,10 +14,4 @@ include $(top_builddir)/src/Makefile.global
1414

1515
OBJS = timer.o socket.o signal.o security.o mingwcompat.o
1616

17-
all: SUBSYS.o
18-
19-
SUBSYS.o: $(OBJS)
20-
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
21-
22-
clean:
23-
rm -f SUBSYS.o $(OBJS)
17+
include $(top_srcdir)/src/backend/common.mk

src/timezone/Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for the timezone library
55

66
# IDENTIFICATION
7-
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.28 2007/08/25 20:29:25 tgl Exp $
7+
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.29 2008/02/19 15:29:58 petere Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -32,15 +32,12 @@ ifneq (,$(with_system_tzdata))
3232
override CPPFLAGS += '-DSYSTEMTZDIR="$(with_system_tzdata)"'
3333
endif
3434

35-
all: SUBSYS.o
35+
include $(top_srcdir)/src/backend/common.mk
3636

3737
ifeq (,$(with_system_tzdata))
3838
all: submake-libpgport zic
3939
endif
4040

41-
SUBSYS.o: $(OBJS)
42-
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
43-
4441
zic: $(ZICOBJS)
4542
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
4643

@@ -60,4 +57,4 @@ endif
6057
$(MAKE) -C tznames $@
6158

6259
clean distclean maintainer-clean:
63-
rm -f SUBSYS.o zic$(X) $(OBJS) $(ZICOBJS)
60+
rm -f zic$(X) $(ZICOBJS)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy