1 #Makefile for nbody program
4 LIBRARIES = -lm -lGL -lglut -lGLU -lpthread
5 FLAGS = --std=c99 -Wall -pedantic -g
6 PREPROCESSOR_FLAGS = -fopenmp
7 LINK_OBJ = main.o nbody.o graphics.o
12 $(CXX) -o $(BIN) $(LINK_OBJ) $(LIBRARIES)
15 $(CXX) $(FLAGS) $(PREPROCESSOR_FLAGS) -c $<
18 $(RM) $(BIN) $(OBJ) $(LINK_OBJ)
20 clean_full: #cleans up all backup files
21 $(RM) $(BIN) $(OBJ) $(LINK_OBJ)