1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-05-29 12:18:53 +00:00

Remove NPROCS from Makefile, make is able to automatically detect the optimal number of parallel threads

This commit is contained in:
Jens Steube 2015-12-05 14:30:09 +01:00
parent 490ff03fe1
commit e5adccbf38

View File

@ -4,17 +4,16 @@
## ##
## ##
## Detect number of processors ## Detect host OS
## ##
NPROCS := $(shell grep -c ^processor /proc/cpuinfo)
OS := $(shell uname) OS := $(shell uname)
## ##
## Makefile flags ## Makefile flags
## ##
MAKEFLAGS += -l -j $(NPROCS) -rR --no-print-directory MAKEFLAGS += -l -j -rR --no-print-directory
ifneq ($(findstring clean,$(MAKECMDGOALS)),) ifneq ($(findstring clean,$(MAKECMDGOALS)),)
MAKEFLAGS += -j 1 MAKEFLAGS += -j 1