Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########################################
- ##
- ## Makefile
- ## LINUX compilation
- ##
- ##############################################
- #FLAGS
- C++FLAG = -g -std=c++11 -Wall
- #Math Library
- MATH_LIBS = -lm
- EXEC_DIR=.
- #Rule for .cpp files
- # .SUFFIXES : .cc.o
- .cc.o:
- g++ $(C++FLAG) $(INCLUDES) -c $< -o $@
- #Including
- INCLUDES= -I.
- LIBS_ALL = -L/usr/lib -L/usr/local/lib $(MATH_LIBS)
- #ZEROTH PROGRAM
- ALL_OBJ0=test_points2.o
- PROGRAM_0=test_points2
- $(PROGRAM_0): $(ALL_OBJ0)
- g++ $(C++FLAG) -o $(EXEC_DIR)/$@ $(ALL_OBJ0) $(INCLUDES) $(LIBS_ALL)
- #Compiling all
- all:
- make $(PROGRAM_0)
- #Clean obj files
- clean:
- (rm -f *.o; rm -f test_points2)
- (:
Add Comment
Please, Sign In to add comment