mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Refactor backend makefiles to remove lots of duplicate code
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user