-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakevars.win
More file actions
29 lines (22 loc) · 1022 Bytes
/
Copy pathMakevars.win
File metadata and controls
29 lines (22 loc) · 1022 Bytes
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
# To compile the Windows version, you need to:
# - set JAVA_HOME to the JDK root (used for includes only)
# in addition if the pre-compiled stuff is not present, then also:
# - generate libjvm.dll.a from JDK's jvm.dll
# (run `make' in `jvm-w32')
# - copy WinRegistry.dll into inst/libs
# You can modify the following line as the unlima ratio fallback.
# Shouldn't be necessary, because JAVA_HOME and autodetection
# have higher precedence.
DEFAULT_JAVA_HOME=C:\\jdk1.4.2_04
# this file is generated by configure.win and honors JAVA_HOME env.var
-include Makevars.java
ifeq ($(JAVA_HOME),)
JAVA_HOME:=$(DEFAULT_JAVA_HOME)
endif
$(warning JAVA_HOME is $(JAVA_HOME))
# normally you don't have to touch this unless you want to add
# debugging flags like -DRJ_DEBUG or -DRJ_PROFILE to PKG_CFLAGS
JAVA_INCLUDES=$(JAVA_HOME)/include $(JAVA_HOME)/include/win32
PKG_CPPFLAGS = -D_R_ -DWin32 -Ijvm-w32 -I$(RHOME)/src/include $(JAVA_INCLUDES:%=-I%)
PKG_LIBS = -Ljvm-w32 -ljvm.dll
$(warning PKG_CPPFLAGS are $(PKG_CPPFLAGS))