author | Radek Brich <radek.brich@devl.cz> |
Mon, 17 Dec 2007 22:03:50 +0100 | |
branch | pyrit |
changeset 40 | 929aad02c5f2 |
parent 37 | 5f954c0d34fc |
child 41 | c1080cb5bd6d |
permissions | -rw-r--r-- |
22 | 1 |
DEFS=-DPTHREADS |
2 |
||
37
5f954c0d34fc
octree traversal rewritten to avoid recursion
Radek Brich <radek.brich@devl.cz>
parents:
22
diff
changeset
|
3 |
CCFLAGS=-g -Wall -Wno-write-strings -fno-strict-aliasing -I$(ROOT)/include |
22 | 4 |
LDFLAGS= |
5 |
||
6 |
PY_CCFLAGS=$(shell python-config --includes) |
|
7 |
PY_LDFLAGS=$(shell python-config --libs) |
|
8 |
||
9 |
SDL_CCFLAGS=$(shell sdl-config --cflags) |
|
10 |
SDL_LDFLAGS=$(shell sdl-config --libs) |
|
11 |
||
12 |
ifeq ($(OS), Windows_NT) |
|
13 |
LDFLAGS+=-lpthreadGC2 |
|
14 |
PY_CCFLAGS=-I"C:/Program Files/Python25/include" |
|
15 |
PY_LDFLAGS=-L"C:\Program Files\Python25\libs" -lpython25 |
|
16 |
MODULENAME=raytracer.pyd |
|
17 |
else |
|
18 |
CCFLAGS+=-pthread -fPIC |
|
19 |
LDFLAGS+=-pthread |
|
20 |
MODULENAME=raytracermodule.so |
|
21 |
endif |
|
22 |
||
23 |
# optimizations |
|
37
5f954c0d34fc
octree traversal rewritten to avoid recursion
Radek Brich <radek.brich@devl.cz>
parents:
22
diff
changeset
|
24 |
CCFLAGS+=-O3 -pipe -ffast-math -msse3 |