-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
25 lines (23 loc) · 820 Bytes
/
Makefile
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
# -----------------------------------------------
GLEW_INC=external/glew/include
GLUT_INC=external/freeglut/include
INC_FLAGS=--include-path ${GLEW_INC},${GLUT_INC}
# -----------------------------------------------
GLEW_LIB=external/glew/lib/Release/x64/glew32
GLUT_LIB=external/freeglut/lib/x64/freeglut
LIB_FLAGS=--library ${GLEW_LIB},${GLUT_LIB}
# -----------------------------------------------
EXE=raytracer
OUT_FLAGS=-o ${EXE}
# -----------------------------------------------
SRC_DIR=src
SRC=$(wildcard ${SRC_DIR}/*.cpp ${SRC_DIR}/*.cc ${SRC_DIR}/*.cu)
# -----------------------------------------------
COMPILER=nvcc
FLAGS=--expt-extended-lambda ${OUT_FLAGS} ${INC_FLAGS} ${LIB_FLAGS}
# -----------------------------------------------
all: ${EXE}
${EXE}: ${SRC}
${COMPILER} ${SRC} ${FLAGS}
test: ${EXE}
${EXE}