Permalink
Browse files

misc build niceties and warning ignoring

  • Loading branch information...
1 parent ef3d9eb commit aa8913c9759768e427c8b5cdc34122c62f5b8513 @ctb ctb committed Jul 13, 2010
Showing with 20 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 CaperGCC/Makefile
  3. +14 −0 Makefile
  4. +1 −1 Pyrex/Makefile
  5. +3 −1 Pyrex/setup.py
View
@@ -18,3 +18,4 @@ CaperVS/Debug/
zlib123/contrib/vstudio/vc8/x64/
zlib123/contrib/vstudio/vc8/x86/
zlib123/contrib/vstudio/vc8/gvmat32.*
+*~
View
@@ -4,7 +4,7 @@ SRCDIR=../Caper
UISRCDIR=../CaperUI
ZLIBSRCDIR=../zlib123
CXXFLAGS=-g -fPIC -I$(SRCDIR) -I$(ZLIBSRCDIR)
-CFLAGS=-g -fPIC
+CFLAGS=-g -fPIC -Wno-write-strings
all: caper
View
@@ -0,0 +1,14 @@
+all: _Caper_ _Pyrex_
+
+test: _Caper_ _Pyrex_
+ nosetests -w Pyrex
+
+clean:
+ rm -f CaperGCC/caper
+ find . \( -name \*.o -o -name \*.so -o -name \*.pyc \) -exec rm -f {} \;
+
+_Caper_:
+ cd CaperGCC && make all
+
+_Pyrex_:
+ cd Pyrex && make all
View
@@ -16,7 +16,7 @@ clean:
# reset C++ source build
cd ../CaperGCC && make clean
-caper.so: ../CaperGCC/Caper caper.cpp
+caper.so: ../CaperGCC/caper caper.cpp
python setup.py build_ext -i
caper.cpp: caper.pyx
View
@@ -7,7 +7,9 @@
from distutils import sysconfig
sysconfig.get_config_vars("CFLAGS") # Set gcc's flags
-sysconfig._config_vars["CFLAGS"] = "-fno-strict-aliasing -DNDBUG -g -Wall"
+sysconfig._config_vars["CFLAGS"] = "-fno-strict-aliasing -DNDBUG -g -Wall " +\
+ "-Wno-write-strings"
+# @CTB don't suppress warnings... fix 'em!
caper_path = os.path.join("..", "Caper")
caper_ui_path = os.path.join("..", "CaperUI")

0 comments on commit aa8913c

Please sign in to comment.