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

Chris Lattner lattner at cs.uiuc.edu
Thu Oct 7 10:21:17 PDT 2004



Changes in directory llvm-test:

Makefile.f2c updated: 1.1 -> 1.2
---
Log message:

Make sure to clean the .c file.  For some reason f2cdir doesn't get set
if it's indented for me...


---
Diffs of the changes:  (+10 -1)

Index: llvm-test/Makefile.f2c
diff -u llvm-test/Makefile.f2c:1.1 llvm-test/Makefile.f2c:1.2
--- llvm-test/Makefile.f2c:1.1	Wed Oct  6 14:18:44 2004
+++ llvm-test/Makefile.f2c	Thu Oct  7 12:20:59 2004
@@ -7,8 +7,13 @@
 
 # FIXME: This would be autoconf'd
 include $(LEVEL)/Makefile.config
+
+all::
+
+.PRECIOUS: %.c
+
 ifeq ($(ARCH),x86)
-	F2C_DIR = /home/vadve/shared/localtools/x86
+F2C_DIR = /home/vadve/shared/localtools/x86
 else
 	ifeq ($(ARCH),Sparc)
 		F2C_DIR = /usr/dcs/software/unsupported
@@ -19,8 +24,12 @@
 F2C_INC = $(F2C_DIR)/include
 F2C_LIB = $(F2C_DIR)/lib
 
+clean::
+	rm -f $(Source:%.f=%.c)
+
 %.c: %.f
 	$(F2C) $< >& /dev/null
 	
 CPPFLAGS = -I $(F2C_INC) 
 LDFLAGS += -L $(F2C_LIB) -lf2c
+






More information about the llvm-commits mailing list