You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
787 B

INCLUDE_DIR =
C = gcc -c
C_FLAGS = -O3 -msse -msse2 -msse3 -msse4.2 -fPIC -Wall
CXX = g++ -c
CXX_FLAGS = -O3 -std=c++11 -msse -msse2 -msse3 -msse4.2 -fPIC -Wall
CUDA = nvcc -c
CUDA_FLAGS = -x cu -Xcompiler -fPIC -std=c++11 --expt-extended-lambda
PYRENDER_DEPENDENCIES = setup.py \
render/render_cpu.cpp.o \
render/stdlib_cuda_dummy.cpp.o \
render/render_gpu_dummy.cpp.o
PYRENDER_DEPENDENCIES += render/render_gpu.cu.o \
render/stdlib_cuda.cu.o
all: pyrender
clean:
rm render/*.o
rm cyrender.cpp
rm ./*.so
rm -rf ./build/
pyrender: $(PYRENDER_DEPENDENCIES)
python setup.py build_ext --inplace
%.c.o: %.c
$(C) $(C_FLAGS) -o $@ $< $(INCLUDE_DIR)
%.cpp.o: %.cpp
$(CXX) $(CXX_FLAGS) -o $@ $< $(INCLUDE_DIR)
%.cu.o: %.cu
$(CUDA) -o $@ $< $(CUDA_FLAGS) $(INCLUDE_DIR)