[llvm-commits] CVS: llvm-test/Makefile.nagfortran Makefile.FORTRAN
Chris Lattner
lattner at cs.uiuc.edu
Tue Jul 19 11:25:34 PDT 2005
Changes in directory llvm-test:
Makefile.nagfortran added (r1.1)
Makefile.FORTRAN added (r1.1)
---
Log message:
initial support for NAG fortran
---
Diffs of the changes: (+75 -0)
Makefile.FORTRAN | 36 ++++++++++++++++++++++++++++++++++++
Makefile.nagfortran | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 75 insertions(+)
Index: llvm-test/Makefile.nagfortran
diff -c /dev/null llvm-test/Makefile.nagfortran:1.1
*** /dev/null Tue Jul 19 13:25:33 2005
--- llvm-test/Makefile.nagfortran Tue Jul 19 13:25:23 2005
***************
*** 0 ****
--- 1,39 ----
+ ##===- Makefile.nagfortran ---------------------------------*- Makefile -*-===##
+ #
+ # The LLVM Compiler Infrastructure
+ #
+ # This file was developed by Chris Lattner and is distributed under
+ # the University of Illinois Open Source License. See LICENSE.TXT for details.
+ #
+ #===------------------------------------------------------------------------===#
+ #
+ # 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 "The f2c program was not found"
+ exit 1
+ endif
+
+ .PRECIOUS: %.c
+
+ clean::
+ rm -f $(Source:%.f=%.c)
+
+ %.c: %.f
+ $(F95) -w -S -O2 $< -o $@ $(NAGFORTRAN_FLAGS)
+
+ CPPFLAGS = -I$(F95_DIR)/lib/NAGWare
+ LDFLAGS += $(F95_DIR)/lib/NAGWare/libf97.dylib $(F95_DIR)/lib/NAGWare/libf96.a
Index: llvm-test/Makefile.FORTRAN
diff -c /dev/null llvm-test/Makefile.FORTRAN:1.1
*** /dev/null Tue Jul 19 13:25:34 2005
--- llvm-test/Makefile.FORTRAN Tue Jul 19 13:25:23 2005
***************
*** 0 ****
--- 1,36 ----
+ ##===- Makefile.FORTRAN ------------------------------------*- Makefile -*-===##
+ #
+ # The LLVM Compiler Infrastructure
+ #
+ # This file was developed by Chris Lattner and is distributed under
+ # the University of Illinois Open Source License. See LICENSE.TXT for details.
+ #
+ #===------------------------------------------------------------------------===#
+ #
+ # Enable running FORTRAN programs with LLVM using any available FORTRAN support.
+ #
+ ##===----------------------------------------------------------------------===##
+
+ include $(LEVEL)/Makefile.config
+
+ # Make sure the correct targets come first.
+ ifdef TEST
+ test::
+ else
+ all::
+ endif
+
+ # Include the correct Makefile given how FORTRAN is currently being supported.
+
+ ifeq ($(USE_F95),1)
+ include $(LEVEL)/Makefile.nagfortran
+ else
+ ifeq ($(USE_F2C),1)
+ include $(LEVEL)/Makefile.f2c
+ else
+
+ ## If FORTRAN is not supported, do nothing.
+ bytecode:
+
+ endif
+ endif
More information about the llvm-commits
mailing list