File: rules

package info (click to toggle)
libxc 4.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 58,528 kB
  • sloc: ansic: 19,046; perl: 1,154; python: 800; f90: 495; makefile: 326; sh: 107
file content (39 lines) | stat: -rwxr-xr-x 946 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
# -*- makefile -*-

#export DH_VERBOSE=1

ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
	DEBUG=-g1
else
	DEBUG=
endif

export FCCPP   = /lib/cpp -C -ansi -ffreestanding
export FCFLAGS = $(shell dpkg-buildflags --get FFLAGS) $(DEBUG) -pipe -funroll-loops -ffast-math -ffree-line-length-none
export CFLAGS = $(shell dpkg-buildflags --get CFLAGS) $(DEBUG)

%:
	dh $@ --parallel --with autoreconf --buildsystem autoconf

override_dh_auto_clean:
	dh_auto_clean
	dh_auto_clean --buildsystem cmake
	-rm -f testsuite/regression/lda_c/lda_c_pk09.*

override_dh_auto_configure:
	dh_auto_configure -- --enable-shared
	dh_auto_configure --buildsystem cmake --	\
		-DCMAKE_BUILD_TYPE=Release		\

override_dh_auto_build:
	dh_auto_build
	dh_auto_build --buildsystem cmake

override_dh_auto_test:
	-dh_auto_test -- -k
	-dh_auto_test --buildsystem cmake -- -k

override_dh_auto_install:
	dh_auto_install
	dh_auto_install --buildsystem cmake