--- a/src/Makefile Mon Dec 17 22:03:50 2007 +0100
+++ b/src/Makefile Tue Dec 18 12:36:01 2007 +0100
@@ -14,11 +14,11 @@
libs-float:
mkdir -p $(ROOT)/bin/$@
- $(MAKE) -C $(ROOT)/bin/$@ -f $(ROOT)/src/Makefile libs ROOT="$(ROOT)"
+ $(MAKE) -C $(ROOT)/bin/$@ -f $(ROOT)/src/Makefile libs ROOT="$(ROOT)" CCFLAGS="$(CCFLAGS) -fsingle-precision-constant"
libs-double:
mkdir -p $(ROOT)/bin/$@
- $(MAKE) -C $(ROOT)/bin/$@ -f $(ROOT)/src/Makefile libs ROOT="$(ROOT)" DEFS="$(DEFS) -DPYRIT_DOUBLE"
+ $(MAKE) -C $(ROOT)/bin/$@ -f $(ROOT)/src/Makefile libs ROOT="$(ROOT)" CCFLAGS="$(CCFLAGS) -DPYRIT_DOUBLE"
libs: $(LIBOBJS)
@@ -36,7 +36,7 @@
### Rules ###
%.o: %.cc
- $(CXX) -c -o $@ $(DEFS) $(CCFLAGS) $<
+ $(CXX) -c -o $@ $(CCFLAGS) $<
### Dependencies ###
@@ -49,4 +49,4 @@
raytracer.o: raytracer.cc raytracer.h scene.h vector.h noise.h common.h
raytracermodule.o: raytracermodule.cc $(LIBOBJS)
- $(CXX) -c -o $@ $(DEFS) $(CCFLAGS) $(PY_CCFLAGS) $<
+ $(CXX) -c -o $@ $(CCFLAGS) $(PY_CCFLAGS) $<