-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·56 lines (39 loc) · 1.09 KB
/
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
48
49
50
51
52
53
54
#
# File name : Makefile
# Date :
# Version :
# Author :
#
DEST = .
HDRS = global.hpp \
math_libs/spline.h \
math_libs/math_function.hpp \
pre_process/airfoil.hpp \
pre_process/initialization.hpp \
grid_generator/o_grid_main.hpp \
grid_generator/c_grid_main.hpp \
grid_generator/grid_process.hpp \
misc/post_process.hpp \
LIBS =
INPS =
COMPILER = g++
OPTFLAG = -std=c++11 -O2
MAKEFILE = Makefile
PROGRAM = Structured_Grid
SRCS = main.cpp \
math_libs/math_function.cpp \
pre_process/airfoil.cpp \
pre_process/initialization.cpp \
grid_generator/o_grid_main.cpp \
grid_generator/c_grid_main.cpp \
grid_generator/grid_process.cpp \
misc/post_process.cpp \
OBJS = $(SRCS:.cpp=.o)
.cpp.o:
$(COMPILER) $(OPTFLAG) -c $*.cpp -o $*.o
all: $(PROGRAM)
$(PROGRAM): $(OBJS) $(LIBS)
@echo -n "Loading Program $(PROGRAM) ... "
@$(COMPILER) $(OPTFLAG) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
@echo "done"
clean:; @rm -f $(SRCS:.cpp=.o) $(SRCS:.cpp=.il) $(PROGRAM)