1 # Makefile for nbody program
2 # Compiles on Ubuntu 12.04 and Debian 6.0.4
3 # NOTE: This file is identical for both the single-threaded and multi-threaded versions of the program
5 LIBRARIES = -lm -lGL -lglut -lGLU -lpthread
6 FLAGS = --std=c99 -Wall -pedantic -g
7 PREPROCESSOR_FLAGS = -fopenmp
8 SINGLE_THREAD_OBJ = main.o nbody.o graphics.o
9 LINK_OBJ = main.o nbody.o graphics.o
14 $(CXX) -o $(BIN) $(LINK_OBJ) $(LIBRARIES)
19 $(CXX) $(FLAGS) $(PREPROCESSOR_FLAGS) -c $<
22 $(RM) $(BIN) $(OBJ) $(LINK_OBJ)
24 clean_full: #cleans up all backup files
25 $(RM) $(BIN) $(OBJ) $(LINK_OBJ)