-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathmakefile
More file actions
25 lines (17 loc) · 803 Bytes
/
makefile
File metadata and controls
25 lines (17 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
NVCC = /usr/local/cuda/bin/nvcc -m64
CC = /usr/bin/gcc -m64
GLFW_INCLUDE_PATH = -Iglfw/include/
GLFW_LIB_PATH = -Lglfw/lib/
GLFW = $(GLFW_INCLUDE_PATH) $(GLFW_LIB_PATH)
CUDA_INCLUDE = -I/usr/local/cuda/include
CUDASDK_C_LIB_PATH = -L/Developer/GPU\ Computing/C/lib
CUDASDK_C_INCLUDE_PATH = -I/Developer/GPU\ Computing/C/common/inc
CUDA = $(CUDA_INCLUDE) $(CUDASDK_C_LIB_PATH) $(CUDASDK_C_INCLUDE_PATH)
XLINKER = -Xlinker -framework,OpenGL,-framework,GLUT
LFLAGS = $(GLFW) $(CUDA) $(XLINKER) -lglfw
all: rasterizer
rasterizer: ../src/main.cpp
$(NVCC) $(GLEW_PATH) $(LFLAGS) ../src/main.cpp ../src/rasterizeKernels.cu ../src/glslUtility.cpp ../src/utilities.cpp ../src/ObjCore/obj.cpp ../src/ObjCore/objloader.cpp -o bin/rasterizer
clean:
rm bin/rasterizer
.PHONY : bin/rasterizer