From: Eric Cooper <ecc@cmu.edu>
Date: Fri, 25 Feb 2011 11:43:56 -0500
Subject: use internal ccopts variable

use $(ccopts) instead of $(CFLAGS) so that we still get
correct settings when CFLAGS is set by the build system

Signed-off-by: Eric Cooper <ecc@cmu.edu>
---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 64819c9..82bd445 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -Wall -O3 -funroll-loops -fPIC -DPIC
+ccopts = $(CFLAGS) -Wall -O3 -funroll-loops -fPIC -DPIC
 OCAMLC = ocamlc
 OCAMLOPT = ocamlopt
 OCAMLMKLIB = ocamlmklib
@@ -91,7 +91,7 @@ sha.test: sha1.cmxa sha256.cmxa sha512.cmxa sha.test.cmx
 	$(OCAMLOPT) $(OCAMLOPTFLAGS) -c -o $@ $<
 
 %.$(OBJ): %.c
-	$(OCAMLC) -ccopt "$(CFLAGS)" -c -o $@ $<
+	$(OCAMLC) -ccopt "$(ccopts)" -c -o $@ $<
 
 %.lib.$(OBJ): %.$(OBJ)
 	mv $< $@
-- 
