Description: allows FLAGS modification from debian/rules
Author: Ruben Molina <rmolina@udea.edu.co>
Last-Update: 2013-06-04
Forwarded: no

--- a/src/Makefile
+++ b/src/Makefile
@@ -18,7 +18,7 @@
 TR = tr
 SED = sed
 NULL = /dev/null
-CPPFLAGS = -E
+CPPFLAGS += -E
 OMPFLAGS =
 # gcc with OpenMP
 #OMPFLAGS = -fopenmp
@@ -30,11 +30,11 @@
 #OMPFLAGS = -openmp
 # Sun Studio with OpenMP (set the OMP_NUM_THREADS env var at runtime)
 #OMPFLAGS = -xopenmp
-CFLAGS = -c -Wall -O2 -fomit-frame-pointer $(OMPFLAGS)
+CFLAGS += -c -Wall -O2 -fomit-frame-pointer $(OMPFLAGS)
 # CFLAGS for use on the main john.c file only
 CFLAGS_MAIN = $(CFLAGS)
 ASFLAGS = -c $(OMPFLAGS)
-LDFLAGS = -s $(OMPFLAGS)
+LDFLAGS += -s $(OMPFLAGS)
 OPT_NORMAL = -funroll-loops
 # Remove the "-Os" if you're using an ancient version of gcc
 OPT_INLINE = -Os -funroll-loops -finline-functions
