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

Misha Brukman brukman at cs.uiuc.edu
Wed Oct 6 12:18:54 PDT 2004



Changes in directory llvm-test:

Makefile.f2c added (r1.1)
---
Log message:

Utility for running Fortran tests via f2c until we have a Fortran front-end


---
Diffs of the changes:  (+26 -0)

Index: llvm-test/Makefile.f2c
diff -c /dev/null llvm-test/Makefile.f2c:1.1
*** /dev/null	Wed Oct  6 14:18:54 2004
--- llvm-test/Makefile.f2c	Wed Oct  6 14:18:44 2004
***************
*** 0 ****
--- 1,26 ----
+ ##===- Makefile.f2c ----------------------------------------*- Makefile -*-===##
+ #
+ # 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.
+ #
+ ##===----------------------------------------------------------------------===##
+ 
+ # FIXME: This would be autoconf'd
+ include $(LEVEL)/Makefile.config
+ ifeq ($(ARCH),x86)
+ 	F2C_DIR = /home/vadve/shared/localtools/x86
+ else
+ 	ifeq ($(ARCH),Sparc)
+ 		F2C_DIR = /usr/dcs/software/unsupported
+ 	endif
+ endif
+ 
+ F2C     = $(F2C_DIR)/bin/f2c
+ F2C_INC = $(F2C_DIR)/include
+ F2C_LIB = $(F2C_DIR)/lib
+ 
+ %.c: %.f
+ 	$(F2C) $< >& /dev/null
+ 	
+ CPPFLAGS = -I $(F2C_INC) 
+ LDFLAGS += -L $(F2C_LIB) -lf2c






More information about the llvm-commits mailing list