Makeconf.in 4.63 KB
Newer Older
1 2
PACKAGE = @PACKAGE@
VERSION = @VERSION@
3

4 5 6 7 8
abs_top_srcdir = @abs_top_srcdir@
abs_top_builddir = @abs_top_builddir@

include $(top_srcdir)/share/make/vars.mk

9
AR = @AR@
10 11 12 13 14 15
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
BLAS_LIBS = @BLAS_LIBS@
BUILDDIR_IS_SRCDIR = @BUILDDIR_IS_SRCDIR@
16
CC = @CC@
17
CFLAGS = @CFLAGS@ @LTO@
18 19
CPICFLAGS = @CPICFLAGS@
CPPFLAGS = @CPPFLAGS@
20 21
CURL_CPPFLAGS = @CURL_CPPFLAGS@
CURL_LIBS = @CURL_LIBS@
22 23
## in case we want to link with this for UBSAN checks
CXX = @CXX@
24
DEFS = @DEFS@ @R_DEFS@
25
DISTDIR_TAR_EXCLUDE = --exclude=.svn --exclude=Makefile --exclude="*.o" --exclude="*$(SHLIB_EXT)" --exclude="*~"
26 27
DYLIB_EXT = @DYLIB_EXT@
DYLIB_LD = @DYLIB_LD@
28
DYLIB_LDFLAGS = @DYLIB_LDFLAGS@@BUILD_LTO_TRUE@ $(DYLIBS_LTO)
29
DYLIB_LINK = $(DYLIB_LD) $(DYLIB_LDFLAGS) $(LDFLAGS)
30
DYLIBS_LTO = $(CFLAGS) $(CPICFLAGS)
31
ECHO = echo
32 33 34
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
35
FFLAGS = @FFLAGS@ @LTO@
36
FLIBS = @FLIBS@
37
FLIBS_IN_SO = @FLIBS_IN_SO@
38
FPICFLAGS = @FPICFLAGS@
39 40
F77 = @F77@
GETWD = @GETWD@
41
GZIP = --best
42 43 44
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
45
INSTALL_SCRIPT = @INSTALL_SCRIPT@
46 47
INSTALL_DIR = ${INSTALL} -d
LDFLAGS = @LDFLAGS@
48
LIBINTL= @LIBINTL@
49
LIBM = @LIBM@
50 51 52
LIBR0 = @LIBR0@
LIBR1 = @LIBR1@
LIBR = @LIBR0@ @LIBR1@
53 54 55 56
## These are the libs which the final R.bin/libR is linked against.
## Many of these used to be optional: ICU libs still are.
## There may be platform-specific ones, e.g.
## -lrt -ldl on Linux, -lnsl -lsocket -lrt -lsunmath -ldl -liconv on Solaris.
57
LIBS = @LIBS@
58
LIBnn = @LIBnn@
59
LIBTOOL = @LIBTOOL@
60
## AFAICS unused
61
LN_S = @LN_S@
62 63
MAIN_CFLAGS = @MAIN_CFLAGS@
MAIN_FFLAGS = @MAIN_FFLAGS@
64
MAIN_LD = @MAIN_LD@@BUILD_LTO_TRUE@ $(CFLAGS)
65
MAIN_LDFLAGS = @MAIN_LDFLAGS@ @WANT_R_SHLIB_FALSE@ @USE_EXPORTFILES_TRUE@ -Wl,-bE:$(top_builddir)/etc/R.exp
66
MAIN_LINK = $(MAIN_LD) $(MAIN_LDFLAGS) $(LIBR0) $(LDFLAGS)
67 68
## need this for bootstrapping
MKINSTALLDIRS = @R_SHELL@ $(top_srcdir)/src/scripts/mkinstalldirs.in
69
NOTANGLE = @NOTANGLE@
70
R_ARCH = @R_ARCH@
71
R_DYLIB_EXT = @R_DYLIB_EXT@
72 73
R_FRAMEWORK_DIR = $(prefix)/R.framework
R_GZIPCMD = @R_GZIPCMD@
74
## needed for AIX only
75
@USE_EXPORTFILES_TRUE@ R_HOME = $(top_builddir)
76
R_OPENMP_CFLAGS = @R_OPENMP_CFLAGS@
77
## if ever used, need to check that this is compatible with C OpenMP
78
R_OPENMP_FFLAGS = @R_OPENMP_FFLAGS@
79 80 81
R_OSTYPE = @R_OSTYPE@
R_PKGS = $(R_PKGS_BASE) @USE_RECOMMENDED_PACKAGES_TRUE@ $(R_PKGS_RECOMMENDED)
R_PLATFORM = @R_PLATFORM@
82
R_XTRA_CFLAGS = @R_XTRA_CFLAGS@ 
83
R_XTRA_CPPFLAGS = @R_XTRA_CPPFLAGS@ -I. -I$(top_builddir)/src/include -I$(top_srcdir)/src/include
84 85 86
R_XTRA_FFLAGS = @R_XTRA_FFLAGS@
R_XTRA_LIBS = @R_XTRA_LIBS@
RANLIB = @RANLIB@
87
READLINE_LIBS = @READLINE_LIBS@
88
SED = @SED@
89
SHELL = @R_SHELL@
90 91 92 93
SHLIB_EXT = @SHLIB_EXT@
SHLIB_CFLAGS = @SHLIB_CFLAGS@
SHLIB_FFLAGS = @SHLIB_FFLAGS@
SHLIB_LD = @SHLIB_LD@
94
SHLIB_LDFLAGS = @SHLIB_LDFLAGS@@BUILD_LTO_TRUE@ $(SHLIB_LTO)
95
SHLIB_LINK = $(SHLIB_LD) $(SHLIB_LDFLAGS) $(LIBR0) $(LDFLAGS)
96
SHLIB_LTO = $(CFLAGS) $(CPICFLAGS)
97
STRIP_LIBS = @striplib@
98
STRIP_STATIC_LIBS = @stripstaticlib@
99
TAR = @TAR@
100
USE_NLS = @USE_NLS@
101 102 103 104 105 106
X_CFLAGS = @X_CFLAGS@
X_LIBS = @X_LIBS@
X_PRE_LIBS = @X_PRE_LIBS@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
YACC = @YACC@

107
ALL_CFLAGS = $(R_XTRA_CFLAGS) $(R_OPENMP_CFLAGS) $(MAIN_CFLAGS) $(CFLAGS)
108
ALL_CPPFLAGS = $(R_XTRA_CPPFLAGS) $(CPPFLAGS) $(DEFS)
109
## R_OPENMP_FFLAGS should not really be here: see above
110 111 112
ALL_FFLAGS = $(R_XTRA_FFLAGS) $(R_OPENMP_FFLAGS) $(MAIN_FFLAGS) $(FFLAGS)
ALL_CFLAGS_LO = $(R_XTRA_CFLAGS) $(R_OPENMP_CFLAGS) $(CPICFLAGS) $(SHLIB_CFLAGS) $(CFLAGS)
ALL_FFLAGS_LO = $(R_XTRA_FFLAGS) $(R_OPENMP_FFLAGS) $(FPICFLAGS) $(SHLIB_FFLAGS) $(FFLAGS)
113 114

.SUFFIXES:
115
.SUFFIXES: .c .f .m .d .o
116

117
@r_cc_rules_frag@
118 119
.f.o:
	$(F77) $(ALL_FFLAGS) -c $< -o $@
120

121 122
prefix = @prefix@
exec_prefix = @exec_prefix@
123
datarootdir = @datarootdir@
124
## only used for installing 'R'.
125
bindir = @bindir@
126
## not used
127
datadir = @datadir@
128
## used for 'rhome' and installation of standalone Rmath
129
libdir = @libdir@
130
## used for man page
131
mandir = @mandir@
132
## used for installation of standalone Rmath headers
133
includedir = @includedir@
134

135 136 137 138
rhome = ${libdir}/R
rsharedir = @rsharedir@
rincludedir = @rincludedir@
rdocdir = @rdocdir@
139

140
## Overrides for installing R as a framework (MacOS X).
141 142
@WANT_R_FRAMEWORK_TRUE@FW_VERSION = @FW_VERSION@
@WANT_R_FRAMEWORK_TRUE@rhome = $(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources
143 144 145
@WANT_R_FRAMEWORK_TRUE@bindir = $(rhome)
@WANT_R_FRAMEWORK_TRUE@mandir = $(rhome)

146
Rexecbindir = $(rhome)/bin
147 148
Rexecbindir2 = $(rhome)/bin/exec$(R_ARCH)
Rexeclibdir = $(rhome)/lib$(R_ARCH)
149
## FIXME:
150 151 152
## Alternatively, we could try to set pkglibdir = $(rhome)/lib when
## switching to automake.
## </FIXME>
153
Rexecmodulesdir = $(rhome)/modules$(R_ARCH)