From eb5fbb88245d8b8f4e291c0d6bc0abb382c3c043 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 8 Apr 2019 11:34:06 +0100 Subject: [PATCH] Use all available threads to compile. --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index 3d66d48..af17d6f 100644 --- a/makefile +++ b/makefile @@ -19,6 +19,9 @@ _OBJS += unixInit.o include common.mk +NPROCS = $(shell grep -c 'processor' /proc/cpuinfo) +MAKEFLAGS += -j$(NPROCS) + CXXFLAGS += `sdl2-config --cflags` -DVERSION=$(VERSION) -DREVISION=$(REVISION) -DDATA_DIR=\"$(DATA_DIR)\" -DLOCALE_DIR=\"$(LOCALE_DIR)\" CXXFLAGS += -ansi -pedantic CXXFLAGS += -g -lefence