Repository navigation
Expand file tree
/
Copy pathrap_make_f_targets
More file actions
66 lines (51 loc) · 1.59 KB
/
Copy pathrap_make_f_targets
File metadata and controls
66 lines (51 loc) · 1.59 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
# ** Copyright UCAR (c) 1992 - 2010
# ** University Corporation for Atmospheric Research(UCAR)
# ** National Center for Atmospheric Research(NCAR)
# ** Research Applications Laboratory(RAL)
# ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA
# ** 2010/10/7 16:53:3
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
##########################################################################
#
# Makefile targets for FORTRAN programs
#
# Mike Dixon
#
# RAP,NCAR,Boulder,Colorado,80307,USA
#
# Dec 1998
#
###########################################################################
#
# Include the recursive targets for C, C++ and FORTRAN
#
all: debug
include $(RAP_MAKE_INC_DIR)/rap_make_cf_recursive_targets
#
# compile target
#
target:
echo Making FORTRAN program ... ; \
$(MAKE) MAKEFLAGS="$(MAKEFLAGS)" _CC="$(_CC)" _CPPC="$(_CPPC)" _FC="$(_FC)" DBUG_OPT_FLAGS="$(DBUG_OPT_FLAGS)" DEBUG_CFLAGS="$(DEBUG_CFLAGS)" DEBUG_LIBS="$(DEBUG_LIBS)" DEBUG_LDFLAGS="$(DEBUG_LDFLAGS)" SYS_LIBS="$(SYS_LIBS)" SYS_CFLAGS="$(SYS_CFLAGS)" $(TARGET_FILE);
#
# link target
#
$(TARGET_FILE): $(OBJS) Makefile
echo Linking FORTRAN program ...
$(RM) $(TARGET_FILE)
$(_FC) $(DBUG_OPT_FLAGS) -o $(TARGET_FILE) \
$(OBJS) $(DEBUG_LDFLAGS) $(LDFLAGS) $(LIBS)
#
# Include the bin targets for C, C++ and FORTRAN
#
include $(RAP_MAKE_INC_DIR)/rap_make_cf_bin_targets
#
# miscellaneous targets
#
include $(RAP_MAKE_INC_DIR)/rap_make_misc_targets
clean_all: clean clean_bin clean_insure
#
# Include the suffixes
#
include $(RAP_MAKE_INC_DIR)/rap_make_suffixes