Manko10

Makefile

Aug 18th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 2.45 KB | None | 0 0
  1. INC=-I../rt_framework/include -I../rt_framework/src -I.. -I../shape
  2.  
  3. default: clear color point vector glutwindow pixel ppmwriter matrix ray material light camera shape box sphere scene sdf_loader shapetest scenetest sdf_loader_test fwtest
  4.     #./shapetest
  5.     #./scenetest
  6.     #./sdf_loader_test
  7.     #./fwtest
  8.  
  9. point: ../rt_framework/src/point.cpp
  10.     g++ $(INC) -c ../rt_framework/src/point.cpp -std=c++0x
  11.  
  12. vector: ../rt_framework/src/vector.cpp
  13.     g++ $(INC) -c ../rt_framework/src/vector.cpp -std=c++0x
  14.  
  15. ray: ../ray.cpp
  16.     g++ $(INC) -c ../ray.cpp -std=c++0x
  17.  
  18. color: ../rt_framework/src/color.cpp
  19.     g++ $(INC) -c ../rt_framework/src/color.cpp -std=c++0x
  20.  
  21. glutwindow: ../rt_framework/src/glutwindow.cpp
  22.     g++ $(INC) -c ../rt_framework/src/glutwindow.cpp -std=c++0x
  23.  
  24. pixel: ../rt_framework/src/pixel.cpp
  25.     g++ $(INC) -c ../rt_framework/src/pixel.cpp -std=c++0x
  26.  
  27. ppmwriter: ../rt_framework/src/ppmwriter.cpp
  28.     g++ $(INC) -c ../rt_framework/src/ppmwriter.cpp -std=c++0x
  29.  
  30. matrix: ../rt_framework/src/matrix.cpp ../rt_framework/include/matrix.hpp
  31.     g++ $(INC) -c ../rt_framework/src/matrix.cpp -std=c++0x  
  32.  
  33. material: ../material.cpp
  34.     g++ $(INC) -c ../material.cpp -std=c++0x
  35.  
  36. light: ../light.cpp
  37.     g++ $(INC) -c ../light.cpp -std=c++0x
  38.  
  39. camera: ../camera.cpp
  40.     g++ $(INC) -c ../camera.cpp -std=c++0x
  41.  
  42. shape: ../shape/shape.cpp
  43.     g++ $(INC) -c ../shape/shape.cpp -std=c++0x
  44.  
  45. sphere: ../shape/sphere.cpp
  46.     g++ $(INC) -c ../shape/sphere.cpp -std=c++0x
  47.  
  48. box: ../shape/box.cpp
  49.     g++ $(INC) -c ../shape/box.cpp -std=c++0x
  50.  
  51. scene: ../scene.cpp
  52.     g++ $(INC) -c ../scene.cpp -std=c++0x
  53.  
  54. sdf_loader: ../sdf_loader.cpp
  55.     g++ $(INC) -c ../sdf_loader.cpp -std=c++0x
  56.  
  57. shapetest: shapetest.cpp
  58.     g++ $(INC) -c shapetest.cpp -std=c++0x
  59.     g++ shapetest.o point.o shape.o vector.o material.o sphere.o box.o color.o -o shapetest
  60.  
  61. scenetest: scenetest.cpp
  62.     g++ $(INC) -c scenetest.cpp -std=c++0x
  63.     g++ scenetest.o point.o shape.o vector.o material.o light.o camera.o sphere.o box.o scene.o color.o -o scenetest
  64.  
  65. sdf_loader_test: sdf_loader_test.cpp
  66.     g++ $(INC) -c sdf_loader_test.cpp -std=c++0x
  67.     g++ sdf_loader_test.o point.o shape.o vector.o material.o light.o camera.o sphere.o box.o scene.o color.o sdf_loader.o -o sdf_loader_test
  68.  
  69. fwtest: fwtest.cpp
  70.     g++ $(INC) -c fwtest.cpp -std=c++0x
  71.     g++ glutwindow.o pixel.o ppmwriter.o color.o point.o vector.o matrix.o fwtest.o -o fwtest -lglut -lGL
  72.  
  73. clear:
  74.     clear
  75.     rm -f shapetest
  76.     rm -f scenetest
  77.     rm -f sdf_loader_test
  78.     rm -f fwtest
Advertisement
Add Comment
Please, Sign In to add comment