1 Star 0 Fork 14

Bogomolov Mikhail/llvm-test-suite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile.nagfortran 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
##===- Makefile.nagfortran ---------------------------------*- Makefile -*-===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===------------------------------------------------------------------------===#
#
# Enable running Fortran programs with LLVM by using NAGWare Fortran front-end
# to convert it to C.
#
##===----------------------------------------------------------------------===##
include $(LEVEL)/Makefile.config
# Make sure the correct targets come first.
ifdef TEST
test::
else
all::
endif
ifneq ($(USE_F95),1)
all test::
echo "NAG Fortran is not support?"
exit 1
endif
.PRECIOUS: %.c
clean::
rm -f $(patsubst %.f,%.c, $(filter %.f,$(Source))) \
$(patsubst %.F,%.c, $(filter %.F,$(Source))) \
$(patsubst %.f90,%.c, $(filter %.f90,$(Source))) \
$(patsubst %.F90,%.c, $(filter %.F90,$(Source)))
%.c: %.f
-$(F95) -w -S -O2 $< -o $@ $(NAGFORTRAN_FLAGS)
%.f: %.F
-$(PROJ_SRC_ROOT)/filepp $< -o $@ -M $(SPEC_BENCH_DIR)/src/ $(FPPFLAGS)
%.c: %.f90
-$(F95) -w -S -O2 $< -o $@ $(NAGFORTRAN_FLAGS)
%.f90: %.F90
-$(PROJ_SRC_ROOT)/filepp $< -o $@ -M $(SPEC_BENCH_DIR)/src/ $(FPPFLAGS)
CPPFLAGS += -I$(F95_DIR)/lib/NAGWare
LDFLAGS += $(F95_DIR)/lib/NAGWare/quickfit.o -Xlinker -flat_namespace $(F95_DIR)/lib/NAGWare/libf97.dylib $(F95_DIR)/lib/NAGWare/libf96.a
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bogomolovmikhail/llvm-test-suite.git
git@gitee.com:bogomolovmikhail/llvm-test-suite.git
bogomolovmikhail
llvm-test-suite
llvm-test-suite
main

搜索帮助