File: rules

package info (click to toggle)
chicken 5.2.0-2
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 32,804 kB
  • sloc: ansic: 579,676; lisp: 71,716; tcl: 1,445; sh: 576; makefile: 58
file content (60 lines) | stat: -rwxr-xr-x 2,975 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
include /usr/share/dpkg/architecture.mk
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)

export PLATFORM=$(shell dpkg-architecture -q DEB_TARGET_ARCH_OS)
export PREFIX=/usr
export VARDIR=/var/lib

%:
	dh $@ --no-parallel


override_dh_auto_clean:
	dh_auto_clean
	find . -name '*.so' -delete
	rm -rf tests/a.out tests/empty-file tests/fft1  tests/fft2 tests/find-files-test-dir/dir-link-target/bar \
                tests/find-files-test-dir/dir-link-target/foo \
                tests/find-files-test-dir/file1 tests/find-files-test-dir/file2 \
                tests/rev-app-2/libchicken.so.11 tests/rev-app-2/rev-app tests/tmp/xxx \
                tests/find-files-test-dir/dir-link-name feathers \
                tests/scrutiny-2.out \
                tests/scrutiny.out tests/specialization.out test-repository/types.db \
                tests/test-repository/types.db \
                tests/dwindtst.out tests/ec.import.scm tests/m3.import.scm \
                tests/num.import.scm tests/r4rstest.log tests/reexport-m1.import.scm \
                tests/reexport-m3.import.scm tests/reexport-m4.import.scm \
                tests/reexport-m5.import.scm tests/reexport-m6.import.scm \
                tests/rev-app-2/reverser.setup-info tests/reverser/tags/1.0/reverser.import.scm \
                tests/reverser/tags/1.1/reverser.import.scm tests/square-functor.import.scm \
                tests/test-repository/reverser.setup-info tests/tmp.c tests/tmp1 tests/tmp2 \
                tests/tmp3 tests/TEST.profile tests/a.link tests/env.out tests/messages.out \
		tests/null.c tests/r4rstest.out tests/test-repository/reverser.import.scm \
		tests/test-repository/sample-module.import.scm tests/test-repository/sample-module.link \
		tests/tmp1.out tests/tmp2.out tests/tmp3.out tests/x.out tests/fft1.out tests/fft2.out \
		tests/null tests/null.o tests/test-repository/reverser.o tests/test-repository/sample-module.o \
		tests/redact-gensyms tests/scrutinizer-message-format.out tests/scrutinizer-message-format.redacted \
		tests/scrutiny-2.redacted tests/scrutiny.redacted tests/specialization.redacted \
		tests/inline-me.import.scm tests/inline-me.inline

override_dh_auto_build:
	dh_auto_build -- HOSTSYSTEM=$(DEB_HOST_GNU_TYPE) PREFIX=$(PREFIX) C_COMPILER_OPTIMIZATION_OPTIONS="$(CFLAGS) $(CPPFLAGS)" VARDIR=/var/lib/

override_dh_auto_install:
	dh_auto_install -- \
		HOSTSYSTEM=$(DEB_HOST_GNU_TYPE) \
		LINKER_LINK_SHARED_DLOADABLE_OPTIONS='-L. -shared $(LDFLAGS)' \
		LINKER_LINK_SHARED_PROGRAM_OPTIONS='$(LDFLAGS)' \
		LIBCHICKEN_SO_LINKER_OPTIONS='$(LDFLAGS) -Wl,-soname,libchicken.so.11'
	chrpath -d $(CURDIR)/debian/tmp/var/lib/chicken/11/*.so

override_dh_install:
	dh_install -Xfeathers

override_dh_makeshlibs:
	dh_makeshlibs -V