]> Dogcows Code - chaz/rasterize/blobdiff - Makefile
basic ray tracing with hard shadows
[chaz/rasterize] / Makefile
index 16e0ee76a0e655f45b7f5fe8efb9c388a3e47f49..62f6b7dd47bcddb1fd9c742db45710caf123f24d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
 
 PROJECT = raytrace
-IUSE    = EXTRA_INLINE
+IUSE    = EXTRA_INLINE SHADOWS
+
+VIEWER  = feh
 
 CXX     = g++
 EXEEXT  =
@@ -31,7 +33,7 @@ dist:
        git archive HEAD --prefix=$(PROJECT)/ --output=$(PROJECT).zip
 
 run: $(PROG)
-       ./$<
+       ./$< && $(VIEWER) scene.ppm
 
 debug: $(PROG)
        gdb ./$<
This page took 0.019701 seconds and 4 git commands to generate.