File: rules

package info (click to toggle)
openjdk-8-jre-dcevm 8u112-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 65,404 kB
  • ctags: 184,424
  • sloc: cpp: 570,249; java: 257,943; xml: 16,359; ansic: 9,543; asm: 2,774; sh: 2,403; makefile: 2,391
file content (37 lines) | stat: -rwxr-xr-x 1,108 bytes parent folder | download
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
#!/usr/bin/make -f

PACKAGE = $(shell dpkg-parsechangelog -S Source)

export DISABLE_HOTSPOT_OS_VERSION_CHECK=ok
export DEB_CFLAGS_MAINT_APPEND = -std=gnu++98 -Wno-error=deprecated-declarations -fno-lifetime-dse -fno-delete-null-pointer-checks

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

ifneq (,$(filter $(DEB_HOST_ARCH), amd64))
  ARCH_DATA_MODEL=64
  JDK_ARCH=amd64
else ifneq (,$(filter $(DEB_HOST_ARCH), i386))
  ARCH_DATA_MODEL=32
  JDK_ARCH=i586
endif

JAVA_HOME  = /usr/lib/jvm/java-8-openjdk-$(DEB_HOST_ARCH)

%:
	dh $@

override_dh_auto_build:
	cd make && make ARCH_DATA_MODEL=$(ARCH_DATA_MODEL) \
	                HOTSPOT_BUILD_JOBS=2 \
	                ALT_BOOTDIR=$(JAVA_HOME) \
	                OPENJDK=true \
	                DEBUG_BINARIES=true \
	                HOTSPOT_BUILD_VERSION=dcevm-light

override_dh_install:
	dh_install -p$(PACKAGE) \
	           build/linux/export-linux-$(JDK_ARCH)/jre/lib/$(DEB_HOST_ARCH)/server/libjvm.so \
	           $(JAVA_HOME)/jre/lib/$(DEB_HOST_ARCH)/dcevm

get-orig-source:
	uscan --download-current-version --rename --force-download