Makeconf.in 4.67 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
## needed for some earlier Solaris compilers
38
FLIBS_IN_SO = @FLIBS_IN_SO@
39
FPICFLAGS = @FPICFLAGS@
40 41
F77 = @F77@
GETWD = @GETWD@
42
GZIP = --best
43 44 45
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
46
INSTALL_SCRIPT = @INSTALL_SCRIPT@
47 48
INSTALL_DIR = ${INSTALL} -d
LDFLAGS = @LDFLAGS@
49
LIBINTL= @LIBINTL@
50
LIBM = @LIBM@
51 52 53
LIBR0 = @LIBR0@
LIBR1 = @LIBR1@
LIBR = @LIBR0@ @LIBR1@
54 55 56 57
## 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.
58
LIBS = @LIBS@
59
LIBnn = @LIBnn@
60
LIBTOOL = @LIBTOOL@
61
## AFAICS unused
62
LN_S = @LN_S@
63 64
MAIN_CFLAGS = @MAIN_CFLAGS@
MAIN_FFLAGS = @MAIN_FFLAGS@
65
MAIN_LD = @MAIN_LD@@BUILD_LTO_TRUE@ $(CFLAGS)
66
MAIN_LDFLAGS = @MAIN_LDFLAGS@ @WANT_R_SHLIB_FALSE@ @USE_EXPORTFILES_TRUE@ -Wl,-bE:$(top_builddir)/etc/R.exp
67
MAIN_LINK = $(MAIN_LD) $(MAIN_LDFLAGS) $(LIBR0) $(LDFLAGS)
68 69
## need this for bootstrapping
MKINSTALLDIRS = @R_SHELL@ $(top_srcdir)/src/scripts/mkinstalldirs.in
70
NOTANGLE = @NOTANGLE@
71
R_ARCH = @R_ARCH@
72
R_DYLIB_EXT = @R_DYLIB_EXT@
73 74
R_FRAMEWORK_DIR = $(prefix)/R.framework
R_GZIPCMD = @R_GZIPCMD@
75
## needed for AIX only
76
@USE_EXPORTFILES_TRUE@ R_HOME = $(top_builddir)
77
R_OPENMP_CFLAGS = @R_OPENMP_CFLAGS@
78
## if ever used, need to check that this is compatible with C OpenMP
79
R_OPENMP_FFLAGS = @R_OPENMP_FFLAGS@
80 81 82
R_OSTYPE = @R_OSTYPE@
R_PKGS = $(R_PKGS_BASE) @USE_RECOMMENDED_PACKAGES_TRUE@ $(R_PKGS_RECOMMENDED)
R_PLATFORM = @R_PLATFORM@
83
R_XTRA_CFLAGS = @R_XTRA_CFLAGS@ 
84
R_XTRA_CPPFLAGS = @R_XTRA_CPPFLAGS@ -I. -I$(top_builddir)/src/include -I$(top_srcdir)/src/include
85 86 87
R_XTRA_FFLAGS = @R_XTRA_FFLAGS@
R_XTRA_LIBS = @R_XTRA_LIBS@
RANLIB = @RANLIB@
88
READLINE_LIBS = @READLINE_LIBS@
89
SED = @SED@
90
SHELL = @R_SHELL@
91 92 93 94
SHLIB_EXT = @SHLIB_EXT@
SHLIB_CFLAGS = @SHLIB_CFLAGS@
SHLIB_FFLAGS = @SHLIB_FFLAGS@
SHLIB_LD = @SHLIB_LD@
95
SHLIB_LDFLAGS = @SHLIB_LDFLAGS@@BUILD_LTO_TRUE@ $(SHLIB_LTO)
96
SHLIB_LINK = $(SHLIB_LD) $(SHLIB_LDFLAGS) $(LIBR0) $(LDFLAGS)
97
SHLIB_LTO = $(CFLAGS) $(CPICFLAGS)
98
STRIP_LIBS = @striplib@
99
STRIP_STATIC_LIBS = @stripstaticlib@
100
TAR = @TAR@
101
USE_NLS = @USE_NLS@
102 103 104 105 106 107
X_CFLAGS = @X_CFLAGS@
X_LIBS = @X_LIBS@
X_PRE_LIBS = @X_PRE_LIBS@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
YACC = @YACC@

108
ALL_CFLAGS = $(R_XTRA_CFLAGS) $(R_OPENMP_CFLAGS) $(MAIN_CFLAGS) $(CFLAGS)
109
ALL_CPPFLAGS = $(R_XTRA_CPPFLAGS) $(CPPFLAGS) $(DEFS)
110
## R_OPENMP_FFLAGS should not really be here: see above
111 112 113
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)
114 115

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

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

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

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

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

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