mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Improved parallel make support
Replace for loops in makefiles with proper dependencies. Parallel make can now span across directories. Also, make -k and make -q work properly. GNU make 3.80 or newer is now required.
This commit is contained in:
@ -16,9 +16,9 @@ override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
|
||||
|
||||
OBJS= findoidjoins.o
|
||||
|
||||
all: submake-libpq submake-libpgport findoidjoins
|
||||
all: findoidjoins
|
||||
|
||||
findoidjoins: findoidjoins.o $(libpq_builddir)/libpq.a
|
||||
findoidjoins: findoidjoins.o | submake-libpq submake-libpgport
|
||||
$(CC) $(CFLAGS) findoidjoins.o $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
||||
|
||||
clean distclean maintainer-clean:
|
||||
|
@ -16,9 +16,9 @@ override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
|
||||
|
||||
OBJS= test_fsync.o
|
||||
|
||||
all: submake-libpq submake-libpgport test_fsync
|
||||
all: test_fsync
|
||||
|
||||
test_fsync: test_fsync.o $(libpq_builddir)/libpq.a
|
||||
test_fsync: test_fsync.o | submake-libpq submake-libpgport
|
||||
$(CC) $(CFLAGS) test_fsync.o $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
||||
|
||||
clean distclean maintainer-clean:
|
||||
|
Reference in New Issue
Block a user