mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Refactor backend makefiles to remove lots of duplicate code
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
#
|
||||
# Makefile for the bootstrap module
|
||||
#
|
||||
# $PostgreSQL: pgsql/src/backend/bootstrap/Makefile,v 1.35 2007/01/20 17:16:11 petere Exp $
|
||||
# $PostgreSQL: pgsql/src/backend/bootstrap/Makefile,v 1.36 2008/02/19 10:30:07 petere Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@ -14,10 +14,7 @@ override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
|
||||
|
||||
OBJS= bootparse.o bootstrap.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) $(LDREL) $(LDOUT) $@ $^
|
||||
include $(top_srcdir)/src/backend/common.mk
|
||||
|
||||
|
||||
# bootscanner is compiled as part of bootparse
|
||||
@ -50,6 +47,5 @@ bootstrap.o bootparse.o: $(srcdir)/bootstrap_tokens.h
|
||||
# bootparse.c, bootstrap_tokens.h, and bootscanner.c are in the distribution
|
||||
# tarball, so they are not cleaned here.
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
# And the garbage that might have been left behind by partial build:
|
||||
@rm -f y.tab.h y.tab.c y.output lex.yy.c
|
||||
|
Reference in New Issue
Block a user