Add Makefile
This commit is contained in:
parent
0d7a04c58d
commit
0c8191be28
2 changed files with 20 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
|||
image.ppm
|
||||
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/intellij+all,vim,emacs,linux,clion+all
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij+all,vim,emacs,linux,clion+all
|
||||
|
||||
|
|
18
Makefile
Normal file
18
Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
##
|
||||
# Ray Tracing in One Weekend
|
||||
#
|
||||
# @file
|
||||
# @version 0.1
|
||||
|
||||
mkdir = $(dir $(lastword $(MAKEFILE_LIST)))
|
||||
debugdir = $(mkdir)/rtiww/cmake-build-debug
|
||||
|
||||
all: trace
|
||||
|
||||
rtiww:
|
||||
cmake --build $(debugdir) --target rtiww -j9
|
||||
|
||||
trace: rtiww
|
||||
$(debugdir)/rtiww >> $(mkdir)/image.ppm
|
||||
|
||||
# end
|
Loading…
Reference in a new issue