-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.linux
35 lines (24 loc) · 1.08 KB
/
Makefile.linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
CXX=g++
CC=gcc
CXX_FLAGS=-O3 -fopenmp
C_FLAGS=
INCLUDE_DIRS=
LIBRARY_DIRS=
LIBRARIES= -lfftw3 -lGL -lGLEW -Wl,-rpath, -lSDL2 -lpthread
DEFINES=
LINK_FLAGS=
convection: convection.o main.o rendering.o rendering_plugins.o color.o
$(CXX) $(CXX_FLAGS) convection.o rendering.o main.o rendering_plugins.o color.o -o interactive_earth $(LINK_FLAGS) $(DEFINES) $(LIBRARY_DIRS) $(LIBRARIES)
main.o: main.cpp convection.h regular_grid.h rendering_plugins.h
$(CXX) $(CXX_FLAGS) -c main.cpp $(LINK_FLAGS) $(INCLUDE_DIRS) $(DEFINES)
convection.o: convection.cpp convection.h regular_grid.h tridiagonal_matrix_solver.h
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_DIRS) $(DEFINES) convection.cpp
rendering.o: rendering.cpp convection.h regular_grid.h color.h
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_DIRS) $(DEFINES) rendering.cpp
rendering_plugins.o: rendering_plugins.cpp convection.h rendering_plugins.h color.h
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_DIRS) $(DEFINES) rendering_plugins.cpp
color.o: color.h color.cpp
$(CXX) -c $(CXX_FLAGS) $(INCLUDE_DIRS) $(DEFINES) color.cpp
.PHONY: clean
clean:
rm -f *.o interactive_earth