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