config.mk
branchpyrit
changeset 41 c1080cb5bd6d
parent 37 5f954c0d34fc
child 49 558fde7da82a
equal deleted inserted replaced
40:929aad02c5f2 41:c1080cb5bd6d
     1 DEFS=-DPTHREADS
       
     2 
       
     3 CCFLAGS=-g -Wall -Wno-write-strings -fno-strict-aliasing -I$(ROOT)/include
     1 CCFLAGS=-g -Wall -Wno-write-strings -fno-strict-aliasing -I$(ROOT)/include
     4 LDFLAGS=
     2 LDFLAGS=
     5 
     3 
     6 PY_CCFLAGS=$(shell python-config --includes)
     4 PY_CCFLAGS=$(shell python-config --includes)
     7 PY_LDFLAGS=$(shell python-config --libs)
     5 PY_LDFLAGS=$(shell python-config --libs)
     8 
     6 
     9 SDL_CCFLAGS=$(shell sdl-config --cflags)
     7 SDL_CCFLAGS=$(shell sdl-config --cflags)
    10 SDL_LDFLAGS=$(shell sdl-config --libs)
     8 SDL_LDFLAGS=$(shell sdl-config --libs)
    11 
     9 
    12 ifeq ($(OS), Windows_NT)
    10 ifeq ($(OS), Windows_NT)
       
    11   CCFLAGS+=-DPTHREADS
    13   LDFLAGS+=-lpthreadGC2
    12   LDFLAGS+=-lpthreadGC2
    14   PY_CCFLAGS=-I"C:/Program Files/Python25/include"
    13   PY_CCFLAGS=-I"C:\Program Files\Python25\include"
    15   PY_LDFLAGS=-L"C:\Program Files\Python25\libs" -lpython25
    14   PY_LDFLAGS=-L"C:\Program Files\Python25\libs" -lpython25
    16   MODULENAME=raytracer.pyd
    15   MODULENAME=raytracer.pyd
    17 else
    16 else
    18   CCFLAGS+=-pthread -fPIC
    17   CCFLAGS+=-pthread -DPTHREADS -fPIC
    19   LDFLAGS+=-pthread
    18   LDFLAGS+=-pthread
    20   MODULENAME=raytracermodule.so
    19   MODULENAME=raytracermodule.so
    21 endif
    20 endif
    22 
    21 
    23 # optimizations
    22 # optimizations