equal
deleted
inserted
replaced
|
1 DEFS=-DPTHREADS |
|
2 |
|
3 CCFLAGS=-Wall -Wno-write-strings -fno-strict-aliasing -I$(ROOT)/include |
|
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 |
|
24 CCFLAGS+=-g -O0 |
|
25 #CCFLAGS+=-O3 -pipe -fomit-frame-pointer -ffast-math -msse3 |