cd6f0fee4aa4de29017185e486e58ff2b3fb83b4
[matches/honours.git] / course / semester2 / pprog / assignment1 / Makefile
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
5
6 # the directories containing the OpenGL libraries, f90gl libraries, GLUT
7 # libraries, and f90gl GLUT libraries
8 OGLLIBDIR = -L/usr/X11/lib
9
10 # the fortran 90 libraries for OpenGL, including GLUT, GLU and OpenGL
11 F90GLUTLIB = -lf90glut -lf90GLU -lf90GL
12
13 # the X11 libraries
14 X11LIB = -framework GLUT -framework OpenGL -framework Cocoa
15
16 # the f90 compiler flag for specifying the location of MOD files
17 MODS = -I/usr/X11/include/GL
18
19 # the directory containing the X11 libraries
20 X11LIBDIR =
21
22 # fortran 90 compiler and compiler flags
23 F95 = g95
24 F90 = /usr/local/gfortran/bin/gfortran
25 F90FLAGS = -O 
26 F90FLAGS2 = -fopenmp -O
27 GCC = gcc
28
29 APP = nbody 
30
31 all: $(APP)
32         @echo Make done
33
34 #%: %.c
35 #       gcc $^ -o $@ $(INCLUDE_PATH) $(CCFLAGS) $(LIBRARY_PATH) $(LDFLAGS)
36
37 clean:
38         @rm -f *.o $(APP)
39
40 nbodyf: nbodyf.f90
41         $(F90) nbodyf.f90 -o nbodyf $(F90FLAGS) $(MODS) $(OGLLIBDIR) $(F90GLUTLIB) $(X11LIBDIR) $(X11LIB)
42
43 nbody: nbody.c
44         $(GCC) -o nbody nbody.c $(INCLUDE_PATH) $(CCFLAGS) $(LIBRARY_PATH) $(LDFLAGS)
45

UCC git Repository :: git.ucc.asn.au