forked from llvm/llvm-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.nagfortran
43 lines (34 loc) · 1.07 KB
/
Makefile.nagfortran
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
##===- Makefile.nagfortran ---------------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Chris Lattner and is distributed under
# the University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
#
# Enable running Fortran programs with LLVM by using NAGWare Fortran front-end
# to convert it to C.
#
##===----------------------------------------------------------------------===##
include $(LEVEL)/Makefile.config
# Make sure the correct targets come first.
ifdef TEST
test::
else
all::
endif
ifneq ($(USE_F95),1)
all test::
echo "NAG Fortran is not support?"
exit 1
endif
.PRECIOUS: %.c
clean::
rm -f $(Source:%.f=%.c)
%.c: %.f
$(F95) -w -S -O2 $< -o $@ $(NAGFORTRAN_FLAGS)
%.c: %.f90
$(F95) -w -S -O2 $< -o $@ $(NAGFORTRAN_FLAGS)
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