Makefile
branchpyrit
changeset 16 20bceb605f48
parent 15 a0a3e334744f
child 17 5176ba000a67
equal deleted inserted replaced
15:a0a3e334744f 16:20bceb605f48
     1 CCFLAGS=-I./src -Wall -Wno-write-strings -g -O3 -fno-strict-aliasing -DPTHREADS
     1 CCFLAGS=-I./src -Wall -Wno-write-strings -fno-strict-aliasing -DPTHREADS
     2 LDFLAGS=
     2 LDFLAGS=
     3 
     3 
     4 ifeq ($(OS), Windows_NT)
     4 ifeq ($(OS), Windows_NT)
     5   CCFLAGS+=-I"C:/Program Files/Python25/include"
     5   CCFLAGS+=-I"C:/Program Files/Python25/include"
     6   LDFLAGS+=-L"C:\Program Files\Python25\libs" -lpython25 -lpthreadGC2
     6   LDFLAGS+=-L"C:\Program Files\Python25\libs" -lpython25 -lpthreadGC2
     9   CCFLAGS+=-pthread -fPIC `python-config --includes`
     9   CCFLAGS+=-pthread -fPIC `python-config --includes`
    10   MODULENAME=raytracermodule.so
    10   MODULENAME=raytracermodule.so
    11 endif
    11 endif
    12 
    12 
    13 # optimizations
    13 # optimizations
    14 #CCFLAGS+=-pipe -fomit-frame-pointer -ffast-math -msse3
    14 #CCFLAGS+=-g -O0
       
    15 CCFLAGS+=-O3 -pipe -fomit-frame-pointer -ffast-math -msse3
    15 
    16 
    16 
    17 
    17 # TARGETS
    18 # TARGETS
    18 #########
    19 #########
    19 
    20 
    22 python-module: $(MODULENAME)
    23 python-module: $(MODULENAME)
    23 
    24 
    24 tests: testvector testmatrix
    25 tests: testvector testmatrix
    25 
    26 
    26 clean:
    27 clean:
    27 	rm -f *.o $(MODULENAME) testvector testmatrix
    28 	rm -f *.o $(MODULENAME)
    28 
    29 
    29 
    30 
    30 # RULES
    31 # RULES
    31 #######
    32 #######
    32 
    33