title: Creating Makefile with libraries
body: <p>How can I create a simple Makefile using the below command?</p>
  
  <pre><code> g++ -Wall -I/usr/include/opencv -I/usr/include/opencv2 -L/usr/lib/ -g -o exe sourc1.cpp sourc2.cpp sourc3.cpp -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lv4l1 -lv4l2 -lv4lconvert -pthread  
  </code></pre>
  
  <p>I referenced this <a href="http://edndoc.esri.com/arcobjects/9.0/arcgisdevhelp/developmentenvs/cpp/makefiles/makefile.linux.htm" rel="nofollow">link</a> but I am getting confused. </p>