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