1 #Makefile for nbody program - pthread version
4 LIBRARIES = -lm -lGL -lglut -lGLU -lpthread
5 FLAGS = --std=c99 -Wall -pedantic -g
7 SINGLE_THREAD_OBJ = main.o nbody.o graphics.o
8 LINK_OBJ = main.o nbody.o graphics.o
13 $(CXX) -o $(BIN) $(LINK_OBJ) $(LIBRARIES)
18 $(CXX) $(FLAGS) $(PREPROCESSOR_FLAGS) -c $<
21 $(RM) $(BIN) $(OBJ) $(LINK_OBJ)
23 clean_full: #cleans up all backup files
24 $(RM) $(BIN) $(OBJ) $(LINK_OBJ)