From 0474dcb60833c635c011ec3c4642f65fc2e1dcb0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 19 Feb 2008 10:30:09 +0000 Subject: Refactor backend makefiles to remove lots of duplicate code --- src/backend/port/Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/backend/port/Makefile') diff --git a/src/backend/port/Makefile b/src/backend/port/Makefile index 3608cd5c4b7..a3617af986f 100644 --- a/src/backend/port/Makefile +++ b/src/backend/port/Makefile @@ -13,7 +13,7 @@ # be converted to Method 2. # # IDENTIFICATION -# $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.24 2007/01/07 08:49:31 petere Exp $ +# $PostgreSQL: pgsql/src/backend/port/Makefile,v 1.25 2008/02/19 10:30:07 petere Exp $ # #------------------------------------------------------------------------- @@ -32,10 +32,7 @@ ifeq ($(PORTNAME), win32) OBJS+=win32/SUBSYS.o endif -all: SUBSYS.o - -SUBSYS.o: $(OBJS) - $(LD) $(LDREL) $(LDOUT) $@ $^ +include $(top_srcdir)/src/backend/common.mk darwin/SUBSYS.o: darwin.dir @@ -62,6 +59,6 @@ ipc_test: ipc_test.o pg_sema.o pg_shmem.o $(CC) $(CFLAGS) $(LDFLAGS) $(export_dynamic) $^ $(LIBS) -o $@ distclean clean: - rm -f SUBSYS.o $(OBJS) ipc_test ipc_test.o tas_cpp.s + rm -f ipc_test ipc_test.o tas_cpp.s $(MAKE) -C darwin clean $(MAKE) -C win32 clean -- cgit v1.2.3