1 Star 0 Fork 0

WangYue0426/idwarp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile_CS 2.38 KB
一键复制 编辑 原始数据 按行查看 历史
# ******************************************************************
# * *
# * File: Makefile *
# * Author: Gaetan Kenway *
# * Starting date: 05-23-2010 *
# * Last modified: 12-23-2012 *
# * *
# ******************************************************************
REAL_SRC = src/modules \
src/IO \
src/utils \
src/warp \
SUBDIR_SRC = src_cs/modules \
src_cs/IO \
src_cs/utils \
src_cs/warp \
WARP_SUBDIRS = $(SUBDIR_SRC_CS)
WARP_CLEAN_SUBDIRS = $(SUBDIR_SRC_CS)
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 -f Makefile_CS warp;\
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
# (cd src_cs/f2py && make clean)
rm -f *~ config.mk;
rm -f lib_cs/lib* mod_cs/* obj_cs/*
warp:
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)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangyue0426/idwarp.git
git@gitee.com:wangyue0426/idwarp.git
wangyue0426
idwarp
idwarp
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385