forked from adaptive-cfd/WABBIT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
72 lines (63 loc) · 3 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
##################################################################
##################################################################
# MAKEFILE for WABBIT
##################################################################
##################################################################
all: directories wabbit wabbit-post #python
##################################################################
include LIB/fortran.mk # includes the makefile of fortran library
include LIB/python.mk # includes the makefile of python library
##################################################################
#================================================================
# Information about the makefile
#================================================================
info:
@echo -e "\n\n\n"
@echo -e "command \t \t info"
@echo -e "-------------------------------------------------------"
@echo -e "\e[1m make\e[0m \t\t \t generates all fortran binaries"
@echo -e "\e[1m make lib\e[0m \t\t fortran wabbit library libwabbit.a"
@echo -e "\e[1m make wabbit\e[0m \t\t generates wabbit main"
@echo -e "\e[1m make test\e[0m \t\t performs unit tests"
@echo -e "\e[1m make doc\e[0m \t \t generates documentation"
@echo -e "\e[1m make python\e[0m \t \t generate wabbit python lib"
@echo -e "\e[1m make clean\e[0m \t \t cleans binaries"
@echo -e "\e[1m make clean-python\e[0m \t clean python binaries"
@echo -e "\e[1m make clean-fortran\e[0m \t clean fortran binaries"
@echo -e "-------------------------------------------------------"
@echo -e "\n\n\n"
.PHONY: doc test directories
#================================================================
# Library of all wabbit modules
#================================================================
lib: directories libwabbit.a
#================================================================
# Documentation using doxygen
#================================================================
doc:
doxygen doc/doc_configuration
firefox doc/output/html/index.html &
#================================================================
# Unit Testing
#================================================================
test: all
./TESTING/runtests.py
compression_test: all
cd ./TESTING/compression; ./compression_test.py --wabbit-dir="../../" -p
#================================================================
# If the object directory doesn't exist, create it.
#================================================================
directories: ${OBJDIR}
${OBJDIR}:
mkdir -p ${OBJDIR}
#================================================================
# If the object directory doesn't exist, create it.
#================================================================
clean: clean-fortran clean-python
##################################################################
# Remarks:
# 1. the @ forces make to execute the command without printing it
# first
# 2. to execute a make in another directory append the command using
# semicolon (;)
##################################################################