1 INCLUDE_PATH = -I/usr/include
2 LIBRARY_PATH = -L/usr/lib64
3 CCFLAGS = -std=c99 #-framework GLUT -framework OpenGL -framework Cocoa
4 LDFLAGS = -lglut -lGL -lGLU -lpthread -lm
6 # the directories containing the OpenGL libraries, f90gl libraries, GLUT
7 # libraries, and f90gl GLUT libraries
8 OGLLIBDIR = -L/usr/X11/lib
10 # the fortran 90 libraries for OpenGL, including GLUT, GLU and OpenGL
11 F90GLUTLIB = -lf90glut -lf90GLU -lf90GL
14 X11LIB = -framework GLUT -framework OpenGL -framework Cocoa
16 # the f90 compiler flag for specifying the location of MOD files
17 MODS = -I/usr/X11/include/GL
19 # the directory containing the X11 libraries
22 # fortran 90 compiler and compiler flags
24 F90 = /usr/local/gfortran/bin/gfortran
26 F90FLAGS2 = -fopenmp -O
35 # gcc $^ -o $@ $(INCLUDE_PATH) $(CCFLAGS) $(LIBRARY_PATH) $(LDFLAGS)
41 $(F90) nbodyf.f90 -o nbodyf $(F90FLAGS) $(MODS) $(OGLLIBDIR) $(F90GLUTLIB) $(X11LIBDIR) $(X11LIB)
44 $(GCC) -o nbody nbody.c $(INCLUDE_PATH) $(CCFLAGS) $(LIBRARY_PATH) $(LDFLAGS)