Improve toplevel Makefile "all" target to work better with parallel make
Change the all: target in the toplevel Makefile so that it doesn't try to resolve build dependencies at the top level - instead, it just recursively builds the all: target in source/ and dll/. Change the all: target in the source/Makefile so that it builds the EXTRAS (scr-bx and wserv) as well as the main client binary. The upshot of all this is that one "make" invocation is responsible for both scr-bx and wserv, which is necessary for parallel make (make -j) to work correctly as these binaries share some object files.
This commit is contained in:
@@ -171,7 +171,7 @@ OBJECTS = alias.o alist.o @ALLOCA@ array.o art.o banlist.o bot_link.o cdcc.o \
|
||||
|
||||
SOURCES = $(OBJECTS:%.o=%.c) #$(TCL_SRCS)
|
||||
|
||||
all: $(_VERSION_)
|
||||
all: $(_VERSION_) wserv scr-bx
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in
|
||||
cd $(topdir) \
|
||||
|
||||
Reference in New Issue
Block a user