# be converted to Method 2.
#
# 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 $
#
#-------------------------------------------------------------------------
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
-OBJS+=dynloader.o pg_sema.o pg_shmem.o
-
-OBJS+=$(TAS)
+OBJS = dynloader.o pg_sema.o pg_shmem.o $(TAS)
ifeq ($(PORTNAME), darwin)
-OBJS+=darwin/SUBSYS.o
+SUBDIRS += darwin
endif
ifeq ($(PORTNAME), win32)
-OBJS+=win32/SUBSYS.o
+SUBDIRS += win32
endif
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
ifeq ($(PORTNAME), solaris)
# preprocess assembler file with cpp, used by x86
# Makefile for port/darwin
#
# 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 $
#
#-------------------------------------------------------------------------
OBJS = system.o
-all: SUBSYS.o
-
-SUBSYS.o: $(OBJS)
- $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
-
-clean:
- rm -f SUBSYS.o $(OBJS)
+include $(top_srcdir)/src/backend/common.mk
# Makefile for port/nextstep
#
# 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 $
#
#-------------------------------------------------------------------------
OBJS = port.o
-all: SUBSYS.o
-
-SUBSYS.o: $(OBJS)
- $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
-
-clean:
- rm -f SUBSYS.o $(OBJS)
+include $(top_srcdir)/src/backend/common.mk
# Makefile for backend/port/win32
#
# 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 $
#
#-------------------------------------------------------------------------
OBJS = timer.o socket.o signal.o security.o mingwcompat.o
-all: SUBSYS.o
-
-SUBSYS.o: $(OBJS)
- $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
-
-clean:
- rm -f SUBSYS.o $(OBJS)
+include $(top_srcdir)/src/backend/common.mk
# Makefile for the timezone library
# 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 $
#
#-------------------------------------------------------------------------
override CPPFLAGS += '-DSYSTEMTZDIR="$(with_system_tzdata)"'
endif
-all: SUBSYS.o
+include $(top_srcdir)/src/backend/common.mk
ifeq (,$(with_system_tzdata))
all: submake-libpgport zic
endif
-SUBSYS.o: $(OBJS)
- $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
-
zic: $(ZICOBJS)
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
$(MAKE) -C tznames $@
clean distclean maintainer-clean:
- rm -f SUBSYS.o zic$(X) $(OBJS) $(ZICOBJS)
+ rm -f zic$(X) $(ZICOBJS)