SHARE
TWEET

Untitled

a guest Feb 17th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ########################################
  2. ##
  3. ## Makefile
  4. ## LINUX compilation
  5. ##
  6. ##############################################
  7.  
  8.  
  9.  
  10.  
  11.  
  12. #FLAGS
  13. C++FLAG = -g -std=c++11 -Wall
  14.  
  15. #Math Library
  16. MATH_LIBS = -lm
  17. EXEC_DIR=.
  18.  
  19.  
  20. #Rule for .cpp files
  21. # .SUFFIXES : .cc.o
  22.  
  23. .cc.o:
  24.     g++ $(C++FLAG) $(INCLUDES)  -c $< -o $@
  25.  
  26.  
  27. #Including
  28. INCLUDES=  -I.
  29.  
  30.  
  31. LIBS_ALL =  -L/usr/lib -L/usr/local/lib $(MATH_LIBS)
  32.  
  33.  
  34. #ZEROTH PROGRAM
  35. ALL_OBJ0=test_points2.o
  36. PROGRAM_0=test_points2
  37. $(PROGRAM_0): $(ALL_OBJ0)
  38.     g++ $(C++FLAG) -o $(EXEC_DIR)/$@ $(ALL_OBJ0) $(INCLUDES) $(LIBS_ALL)
  39.  
  40. #Compiling all
  41.  
  42. all:
  43.         make $(PROGRAM_0)
  44.  
  45.  
  46. #Clean obj files
  47.  
  48. clean:
  49.     (rm -f *.o; rm -f test_points2)
  50.  
  51. (:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top