mirror of
https://github.com/postgres/postgres.git
synced 2025-11-26 23:43:30 +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:
@@ -23,6 +23,7 @@ override CFLAGS += $(PTHREAD_CFLAGS)
|
||||
|
||||
SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
|
||||
$(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
|
||||
SHLIB_PREREQS = submake-ecpglib submake-pgtypeslib
|
||||
|
||||
SHLIB_EXPORTS = exports.txt
|
||||
|
||||
@@ -33,6 +34,14 @@ OBJS= informix.o $(filter snprintf.o, $(LIBOBJS))
|
||||
|
||||
all: all-lib
|
||||
|
||||
.PHONY: submake-ecpglib submake-pgtypeslib
|
||||
|
||||
submake-ecpglib:
|
||||
$(MAKE) -C $(top_builddir)/src/interfaces/ecpg/ecpglib all
|
||||
|
||||
submake-pgtypeslib:
|
||||
$(MAKE) -C $(top_builddir)/src/interfaces/ecpg/pgtypeslib all
|
||||
|
||||
# Shared library stuff
|
||||
include $(top_srcdir)/src/Makefile.shlib
|
||||
|
||||
|
||||
Reference in New Issue
Block a user