config.mk
author Radek Brich <radek.brich@devl.cz>
Wed, 05 Dec 2007 18:54:23 +0100
branchpyrit
changeset 24 d0d76e8a5203
parent 22 76b7bd51d64a
child 37 5f954c0d34fc
permissions -rw-r--r--
new C++ demo: realtime_dragon.cc class Container moved to its own source file (from kdtree.*) new directory for models and Makefile which downloads and prepares them fixed python module path in some forgotten demos ShapeList moved to scene.h

DEFS=-DPTHREADS

CCFLAGS=-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)
  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 -fPIC
  LDFLAGS+=-pthread
  MODULENAME=raytracermodule.so
endif

# optimizations
CCFLAGS+=-g -O0
#CCFLAGS+=-O3 -pipe -fomit-frame-pointer -ffast-math -msse3