config.mk
author Radek Brich <radek.brich@devl.cz>
Wed, 26 Mar 2008 00:52:27 +0100
branchpyrit
changeset 46 6493fb65f0b1
parent 41 c1080cb5bd6d
child 49 558fde7da82a
permissions -rw-r--r--
Doxygen new Sampler object replacing rendering algorithm with more flexible one -- this breaks most of demos and disables threads and (over-/sub-)sampling functionality, need a rewrote

CCFLAGS=-g -Wall -Wno-write-strings -fno-strict-aliasing -I$(ROOT)/include
LDFLAGS=

PY_CCFLAGS=$(shell python-config --includes)
PY_LDFLAGS=$(shell python-config --libs)

SDL_CCFLAGS=$(shell sdl-config --cflags)
SDL_LDFLAGS=$(shell sdl-config --libs)

ifeq ($(OS), Windows_NT)
  CCFLAGS+=-DPTHREADS
  LDFLAGS+=-lpthreadGC2
  PY_CCFLAGS=-I"C:\Program Files\Python25\include"
  PY_LDFLAGS=-L"C:\Program Files\Python25\libs" -lpython25
  MODULENAME=raytracer.pyd
else
  CCFLAGS+=-pthread -DPTHREADS -fPIC
  LDFLAGS+=-pthread
  MODULENAME=raytracermodule.so
endif

# optimizations
CCFLAGS+=-O3 -pipe -ffast-math -msse3