equal
deleted
inserted
replaced
1 CXX=ccache g++ |
|
2 |
|
3 CCFLAGS=-g -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 CCFLAGS+=-DPTHREADS |
|
14 LDFLAGS+=-lpthreadGC2 |
|
15 PY_CCFLAGS=-I"C:\Program Files\Python25\include" |
|
16 PY_LDFLAGS=-L"C:\Program Files\Python25\libs" -lpython25 |
|
17 MODULENAME=raytracer.pyd |
|
18 else |
|
19 CCFLAGS+=-pthread -DPTHREADS -fPIC |
|
20 LDFLAGS+=-pthread |
|
21 MODULENAME=raytracermodule.so |
|
22 endif |
|
23 |
|
24 # optimizations |
|
25 CCFLAGS+=-O3 -pipe -ffast-math -msse3 |
|