-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile_CS
71 lines (63 loc) · 1.83 KB
/
Makefile_CS
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
REAL_SRC = src/common \
src/utilities \
src/CGNSInterface \
src/ADT \
src/curveSearch \
src/intersections \
SUBDIR_SRC = src_cs/common \
src_cs/utilities \
src_cs/CGNSInterface \
src_cs/ADT \
src_cs/curveSearch \
src_cs/intersections \
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_GFORTRAN.mk config/config.mk"; \
echo " ";\
echo "Modify this config file as required. With the config file "; \
echo "specified, rerun 'make' and the build will start."; \
else make -f Makefile_CS discretesurf;\
fi;
dirs:
mkdir -p obj_cs
mkdir -p mod_cs
@for subdir in $(SUBDIR_SRC) ; \
do \
echo "Creating Complex Directory $$subdir"; \
(mkdir -p $$subdir) || exit 1; \
done
clean:
ln -sf common_CS.mk common.mk
@echo " Making clean ... "
@for subdir in $(SUBDIR_SRC) ; \
do \
echo "Removing Complex Directory $$subdir"; \
(rm -fr $$subdir) || exit 1; \
done
rm -f *~ config.mk;
rm -f lib_cs/lib* mod_cs/* obj_cs/*
rm -f pysurf/*.so
discretesurf:
make -f Makefile_CS dirs
ln -sf config/config.mk config.mk
ln -sf common_CS.mk common.mk
@for subdir in $(REAL_SRC) ; \
do \
echo "complexifying $@ in $$subdir"; \
echo; \
(cd $$subdir && make complexify) || exit 1; \
done
@for subdir in $(SUBDIR_SRC) ; \
do \
echo "making $@ in $$subdir"; \
echo; \
(cd $$subdir && make) || exit 1; \
done
(cd lib_cs && make)
(cd src/f2py && make complexify)
(cd src_cs/f2py && make)