Sfoglia il codice sorgente

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

Jens Steube 10 anni fa
parent
commit
dd86a4ddea
1 ha cambiato i file con 2 aggiunte e 13 eliminazioni
  1. 2 13
      src/Makefile

+ 2 - 13
src/Makefile

@@ -4,27 +4,16 @@
 ##
 
 ##
-##  Makefile for hashcat
+## Detect host OS
 ##
 
-##
-## Detect number of processors
-##
-
-NPROCS   := 1
 OS       := $(shell uname)
 
-ifeq ($(OS),Linux)
-  NPROCS := $(shell grep -c ^processor /proc/cpuinfo)
-else ifeq ($(OS),Darwin)
-  NPROCS := $(shell system_profiler | awk '/Number of CPUs/ {print $$4}{next;}')
-endif
-
 ##
 ## Makefile flags
 ##
 
-MAKEFLAGS += -l -j $(NPROCS) -rR --no-print-directory
+MAKEFLAGS += -l -j -rR --no-print-directory
 
 ifneq ($(findstring clean,$(MAKECMDGOALS)),)
 MAKEFLAGS += -j 1