[llvm-commits] CVS: llvm-test/Makefile.nagfortran
Nate Begeman
natebegeman at mac.com
Mon Feb 27 14:11:47 PST 2006
Changes in directory llvm-test:
Makefile.nagfortran updated: 1.4 -> 1.5
---
Log message:
Preprocess some kinds of fortran files
---
Diffs of the changes: (+7 -1)
Makefile.nagfortran | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletion(-)
Index: llvm-test/Makefile.nagfortran
diff -u llvm-test/Makefile.nagfortran:1.4 llvm-test/Makefile.nagfortran:1.5
--- llvm-test/Makefile.nagfortran:1.4 Fri Feb 24 13:11:45 2006
+++ llvm-test/Makefile.nagfortran Mon Feb 27 16:11:35 2006
@@ -31,15 +31,21 @@
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
+ $(CPP) -x c $< -o - $(CPPFLAGS) -traditional-cpp | $(SED) '/^# /d' > $@
+
%.c: %.f90
$(F95) -w -S -O2 $< -o $@ $(NAGFORTRAN_FLAGS)
+%.f90: %.F90
+ $(CPP) -x c $< -o - $(CPPFLAGS) -traditional-cpp | $(SED) '/^# /d' > $@
-CPPFLAGS = -I$(F95_DIR)/lib/NAGWare
+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
More information about the llvm-commits
mailing list