forked from mdolab/pyhyp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (48 loc) · 1.7 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
# ******************************************************************
# * *
# * File: Makefile *
# * Author: Gaetan Kenway *
# * Starting date: 04-05-2013 *
# * Last modified: 04-05-2013 *
# * *
# ******************************************************************
SUBDIR_SRC = src/modules\
src/3D\
src/utils\
default:
# Check if the config.mk file is in the config dir.
@if [ ! -f "config/config.mk" ]; then \
echo "Before compiling, copy an existing config file from the "; \
echo "config/defaults/ directory to the config/ directory and "; \
echo "rename to config.mk. For example:"; \
echo " ";\
echo " cp config/defaults/config.LINUX_INTEL_OPENMPI.mk config/config.mk"; \
echo " ";\
echo "The modify this config file as required. Typically the CGNS directory "; \
echo "will have to be modified. With the config file specified, rerun "; \
echo "'make' and the build will start"; \
else make hyp;\
fi;
clean:
@echo " Making clean ... "
@for subdir in $(SUBDIR_SRC) ; \
do \
echo; \
echo "making $@ in $$subdir"; \
echo; \
(cd $$subdir && make $@) || exit 1; \
done
rm -f *~ config.mk;
rm -f lib/lib* mod/* obj/*
hyp:
mkdir -p obj
mkdir -p mod
ln -sf config/config.mk config.mk
@for subdir in $(SUBDIR_SRC) ; \
do \
echo "making $@ in $$subdir"; \
echo; \
(cd $$subdir && make) || exit 1; \
done
(cd lib && make)
(cd src/python/f2py && make)