X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=course%2Fsemester2%2Fpprog%2Fassignment1%2Fsingle-thread%2FMakefile;h=b1640378053a4aa2419e82a6e1745836edda7588;hb=f2970e1b67ccd1adff8cd04a176efdc9682adf06;hp=fbece84847b3d5cd359112e0ac4f37ac73242190;hpb=7a341db1fbf5db94b711135b2a79e852c6fb1bc4;p=matches%2Fhonours.git diff --git a/course/semester2/pprog/assignment1/single-thread/Makefile b/course/semester2/pprog/assignment1/single-thread/Makefile index fbece848..b1640378 100644 --- a/course/semester2/pprog/assignment1/single-thread/Makefile +++ b/course/semester2/pprog/assignment1/single-thread/Makefile @@ -1,16 +1,17 @@ -#Makefile for nbody program - single threaded version - +# Makefile for nbody program +# Compiles on Ubuntu 12.04 and Debian 6.0.4 +# NOTE: This file is identical for both the single-threaded and multi-threaded versions of the program CXX = gcc -LIBRARIES = -lm -lGL -lglut -lGLU +LIBRARIES = -lm -lGL -lglut -lGLU -lpthread FLAGS = --std=c99 -Wall -pedantic -g -PREPROCESSOR_FLAGS = +PREPROCESSOR_FLAGS = -fopenmp SINGLE_THREAD_OBJ = main.o nbody.o graphics.o LINK_OBJ = main.o nbody.o graphics.o BIN = nbody $(BIN) : $(LINK_OBJ) - $(CXX) -o $(BIN) $(LINK_OBJ) $(LIBRARIES) + $(CXX) -o $(BIN) $(LINK_OBJ) $(PREPROCESSOR_FLAGS) $(LIBRARIES) nbody :