Add Makefile

This commit is contained in:
Armin Friedl 2022-07-25 19:36:18 +02:00
parent 0d7a04c58d
commit 0c8191be28
2 changed files with 20 additions and 0 deletions

2
.gitignore vendored
View file

@ -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
View 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