-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) · 778 Bytes
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
CXX = g++
CXXFLAGS = -std=c++17 -Wall -Wextra -Wpedantic -Wshadow -Wnon-virtual-dtor \
-Wold-style-cast -Wcast-align -Wuseless-cast \
-Wdouble-promotion -Wnull-dereference -Wmisleading-indentation \
-Wduplicated-cond -Wformat=2 -g -O0
LDFLAGS = -lm
OPTFLAG = -O3
BIN = main
OBJ = simulation.o eulerData.o slopeLimiter.o levelSet.o twoVector.o \
euler2Dtests.o main.o
$(BIN): $(OBJ)
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $^
release: CXXFLAGS += $(OPTFLAG)
release: $(BIN)
DOCDIRS = html/ latex/
.PHONY: clean
clean:
$(RM) *.o
$(RM) $(BIN)
$(RM) *.dat
$(RM) *.gif *.png
$(RM) -r $(DOCDIRS)
tidy:
$(RM) *.o
rebuild: clean
rebuild: $(BIN)
run:
./$(BIN)
plot:
./$(BIN)
./*.plt 2> /dev/null
docs:
doxygen Doxyfile