-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.osx
35 lines (23 loc) · 1.11 KB
/
Makefile.osx
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
C_FLAGS=
INCLUDE_DIRS= -I/opt/local/include
LIBRARY_DIRS= -L/opt/local/lib
LIBRARIES= -lfftw3 -lSDL2 -lGLEW -lpthread -framework Cocoa -framework OpenGL
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 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