diff --git a/src/Makefile b/src/Makefile index 895a7cb..92d2162 100644 --- a/src/Makefile +++ b/src/Makefile @@ -37,8 +37,7 @@ OMPFLAGS = # icc with OpenMP (for make target linux-x86-64-icc) #ICCOMPFLAGS = -openmp -# NSS (and NSPR) flag -HAVE_NSS = +# NSS (and NSPR) flag, un-comment if installed (needed for mozilla format) #HAVE_NSS = -DHAVE_NSS CFLAGS = -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include $(HAVE_NSS) $(OMPFLAGS) $(JOHN_CFLAGS) `pkg-config --cflags nss` @@ -1405,8 +1404,10 @@ cuda_rawsha224_fmt.o: cuda_rawsha224.o cuda_rawsha256_fmt.c cuda_rawsha256.h ln -s john ../run/rar2john ../run/mozilla2john: ../run/john +ifdef HAVE_NSS $(RM) ../run/mozilla2john ln -s john ../run/mozilla2john +endif ../run/racf2john: ../run/john $(RM) ../run/racf2john @@ -1443,7 +1444,9 @@ cuda_rawsha224_fmt.o: cuda_rawsha224.o cuda_rawsha256_fmt.c cuda_rawsha256.h copy john.com ..\run\rar2john.com ../run/mozilla2john.com: john.com +ifdef HAVE_NSS copy john.com ..\run\mozilla2john.com +endif ../run/racf2john.com: john.com copy john.com ..\run\racf2john.com @@ -1502,8 +1505,10 @@ john.com: john.asm strip ../run/rar2john.exe ../run/mozilla2john.exe: symlink.c +ifdef HAVE_NSS $(CC) symlink.c -o ../run/mozilla2john.exe strip ../run/mozilla2john.exe +endif ../run/racf2john.exe: symlink.c $(CC) symlink.c -o ../run/racf2john.exe