import os BUILDDIR = '#build/debug' DISTDIR = '#dist' CXX = 'g++' CC = 'gcc' CXXFLAGS = ['-O0', '-Wall', '-g', '-pipe', '-march=nocona', '-msse2', '-ftree-vectorize', '-mfpmath=sse', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fomit-frame-pointer', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp'] LINKFLAGS = [] SHLINKFLAGS = ['-rdynamic', '-shared', '-fPIC', '-lstdc++'] BASEINCLUDE = ['#include'] BASELIB = ['dl', 'm', 'pthread', 'gomp'] OEXRINCLUDE = ['/usr/include/OpenEXR'] OEXRLIB = ['Half', 'IlmImf', 'z'] PNGLIB = ['png'] JPEGLIB = ['jpeg'] XERCESINCLUDE = [] XERCESLIB = ['xerces-c'] GLLIB = ['GL', 'GLU', 'GLEWmx', 'Xxf86vm', 'X11'] GLFLAGS = ['-DGLEW_MX'] BOOSTLIB = ['boost_system', 'boost_filesystem'] COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4'] COLLADALIB = ['collada14dom'] PYTHONINCLUDE = [] PYTHONLIB = ['boost_python'] for entry in os.popen("python-config --cflags --libs").read().split(): if entry[:2] == '-I': PYTHONINCLUDE += [entry[2:]] if entry[:2] == '-l': PYTHONLIB += [entry[2:]]