-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 790 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 790 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
26
27
28
#
# smallptGPU & smallptCPU Makefile
#
CC=nvcc
CCFLAGS=-g -I$(ATISTREAMSDKROOT)/inc -Iinclude
#-v
LIB = -lm -lGLU -lGL -lglut -lGLEW -lcurand --ptxas-options=-v
SRC_DIR = src
INC_DIR = include
SOURCES = $(SRC_DIR)/device.cu $(SRC_DIR)/smallpt_cpu.c $(SRC_DIR)/display_func.c $(SRC_DIR)/MersenneTwister_kernel.cu
HEADERS = $(INC_DIR)/vec.h $(INC_DIR)/camera.h $(INC_DIR)/geom.h $(INC_DIR)/display_func.h $(INC_DIR)/simplernd.h $(INC_DIR)/scene.h $(INC_DIR)/geomfunc.h
smallptCPU: $(SOURCES) $(HEADERS)
$(CC) $(CCFLAGS) -DSMALLPT_CPU -o smallptCPU $(SOURCES) $(LIB)
clean:
rm -rf smallptCPU smallptGPU image.ppm SmallptGPU-v1.6 smallptgpu-v1.6.tgz preprocessed_rendering_kernel.cl
cleanobj:
rm -f core *.o a.out
.f.o:
$(FC) $(FFLAGS) -c $*.f
.c.o:
$(CC) $(INC) $(CFLAGS) -c $*.c