-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
58 lines (47 loc) · 1.15 KB
/
Makefile.am
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS= -Wall
AM_CXXFLAGS= -Wall
AM_CPPFLAGS = \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/src
lib_LTLIBRARIES = libraytracer.la
libraytracer_la_SOURCES = \
src/camera.hpp \
src/image.hpp \
src/image.cpp \
src/vector.hpp \
src/ray.hpp \
src/utils.hpp \
src/material/material.hpp \
src/shape/sphere.hpp \
src/shape/sphere.cpp \
src/shape/hitable.hpp \
src/shape/shape_list.hpp \
src/shape/shape_list.cpp \
src/material/lambertian.hpp \
src/material/dielectric.hpp \
src/material/metal.hpp
bin_PROGRAMS = raytracer
raytracer_SOURCES = \
stb/stb_image.h \
stb/stb_image_write.h \
src/raytracer.cpp
raytracer_CPPFLAGS = \
-I$(top_srcdir)/src \
-I$(top_srcdir)/lib \
-fopenmp
raytracer_LDFLAGS = /usr/local/opt/llvm/lib/libgomp.dylib
raytracer_LDADD = libraytracer.la
bin_PROGRAMS += cl_raytracer
cl_raytracer_SOURCES = \
stb/stb_image.h \
stb/stb_image_write.h \
src/raytracer_cl.cpp
cl_raytracer_CPPFLAGS = \
-I$(top_srcdir)/src \
-I$(top_srcdir)/lib \
-fopenmp
cl_raytracer_LDFLAGS = \
-framework opencl \
/usr/local/opt/llvm/lib/libgomp.dylib
cl_raytracer_LDADD = libraytracer.la