Skip to content

Commit 97cfa09

Browse files
committed
Add support for "preprocessed FORTRAN" source *shudder*
llvm-svn: 26423
1 parent 2421391 commit 97cfa09

File tree

2 files changed

+2735
-2
lines changed

2 files changed

+2735
-2
lines changed

Makefile.nagfortran

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ clean::
3939
$(F95) -w -S -O2 $< -o $@ $(NAGFORTRAN_FLAGS)
4040

4141
%.f: %.F
42-
$(CPP) -x c $< -o - $(CPPFLAGS) -traditional-cpp | $(SED) '/^# /d' > $@
42+
$(LEVEL)/filepp $< -o $@ -M $(SPEC_BENCH_DIR)/src/ $(FPPFLAGS)
4343

4444
%.c: %.f90
4545
$(F95) -w -S -O2 $< -o $@ $(NAGFORTRAN_FLAGS)
4646

4747
%.f90: %.F90
48-
$(CPP) -x c $< -o - $(CPPFLAGS) -traditional-cpp | $(SED) '/^# /d' > $@
48+
$(LEVEL)/filepp $< -o $@ -M $(SPEC_BENCH_DIR)/src/ $(FPPFLAGS)
4949

5050
CPPFLAGS += -I$(F95_DIR)/lib/NAGWare
5151
LDFLAGS += $(F95_DIR)/lib/NAGWare/quickfit.o -Xlinker -flat_namespace $(F95_DIR)/lib/NAGWare/libf97.dylib $(F95_DIR)/lib/NAGWare/libf96.a

0 commit comments

Comments
 (0)