make native build play well with external build systems
[hashcat.git] / src / Makefile
index a36bf34..15a205f 100644 (file)
@@ -58,13 +58,14 @@ OPENCL_HEADERS_KHRONOS   := deps/OpenCL-Headers
 ## Native compiler paths
 ##
 
-CC                       := gcc
-FIND                     := find
-INSTALL                  := install
-RM                       := rm
-SED                      := sed
+CC                       ?= gcc
+FIND                     ?= find
+INSTALL                  ?= install
+RM                       ?= rm
 ifeq ($(UNAME),Darwin,FreeBSD)
-SED                      := gsed
+SED                      ?= gsed
+else
+SED                      ?= sed
 endif
 
 ##