File: rules

package info (click to toggle)
openmprtl 3.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,992 kB
  • ctags: 10,636
  • sloc: ansic: 49,165; cpp: 28,523; fortran: 4,243; perl: 3,632; asm: 2,142; f90: 350; makefile: 271; sh: 81; python: 22
file content (39 lines) | stat: -rwxr-xr-x 1,128 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
38
39
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
SONAME=5

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

ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
LIBOMP_ARCH = mips
endif

ifneq (,$(filter $(DEB_HOST_ARCH), mips64 mips64el))
LIBOMP_ARCH = mips64
endif

%:
	dh $@

override_dh_auto_build:
	cd obj-* && make compiler=gcc
	cd runtime && doxygen doc/doxygen/config
	cd runtime/doc/doxygen/generated/html/ && rm jquery.js && ln -s /usr/share/javascript/jquery/jquery.js

override_dh_clean:
	rm -rf obj-*
	dh_clean

override_dh_install-arch:
	cd debian/tmp/usr/lib && \
		ln -s libomp.so.$(SONAME) libomp.so
	dh_install
	mkdir -p debian/libomp$(SONAME)/usr/lib/$(DEB_HOST_MULTIARCH)/
	mv debian/libomp$(SONAME)/usr/lib/libomp* debian/libomp$(SONAME)/usr/lib/$(DEB_HOST_MULTIARCH)/
	mkdir -p debian/libomp-dev/usr/lib/$(DEB_HOST_MULTIARCH)/
	mv debian/libomp-dev/usr/lib/lib*omp* debian/libomp-dev/usr/lib/$(DEB_HOST_MULTIARCH)/

override_dh_strip:
	dh_strip -plibomp$(SONAME) --dbg-package=libomp$(SONAME)-dbg