[llvm-commits] CVS: llvm-test/Makefile.f2c

Chris Lattner lattner at cs.uiuc.edu
Wed Jul 13 23:30:50 PDT 2005



Changes in directory llvm-test:

Makefile.f2c updated: 1.6 -> 1.7
---
Log message:

Clean out a layer of PR100: http://llvm.cs.uiuc.edu/PR100  related cruft, making use of the new autoconf
machinery that Reid installed


---
Diffs of the changes:  (+16 -14)

 Makefile.f2c |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)


Index: llvm-test/Makefile.f2c
diff -u llvm-test/Makefile.f2c:1.6 llvm-test/Makefile.f2c:1.7
--- llvm-test/Makefile.f2c:1.6	Sat Apr  9 01:15:22 2005
+++ llvm-test/Makefile.f2c	Thu Jul 14 01:30:39 2005
@@ -1,5 +1,12 @@
 ##===- Makefile.f2c ----------------------------------------*- Makefile -*-===##
 #
+#                     The LLVM Compiler Infrastructure
+#
+# This file was developed by the LLVM research group and is distributed under
+# the University of Illinois Open Source License. See LICENSE.TXT for details.
+# 
+#===------------------------------------------------------------------------===#
+#
 # Enable running Fortran programs with LLVM by using f2c to convert to C and
 # link with libf2c, but only until we have a Fortran front-end.
 #
@@ -8,25 +15,20 @@
 # FIXME: This would be autoconf'd
 include $(LEVEL)/Makefile.config
 
-ifndef TEST
-all::
-else
+# Make sure the correct targets come first.
+ifdef TEST
 test::
+else
+all::
 endif
 
-.PRECIOUS: %.c
-
-ifeq ($(ARCH),x86)
-F2C_DIR = /home/vadve/shared/localtools/x86
-else
-	ifeq ($(ARCH),Sparc)
-		F2C_DIR = /home/vadve/shared/localtools/sparc
-	endif
+ifneq ($(USE_F2C),1)
+all test::
+	echo "The f2c program was not found"
+	exit 1
 endif
 
-F2C     = $(F2C_DIR)/bin/f2c
-F2C_INC = $(F2C_DIR)/include
-F2C_LIB = $(F2C_DIR)/lib
+.PRECIOUS: %.c
 
 clean::
 	rm -f $(Source:%.f=%.c)






More information about the llvm-commits mailing list