-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrules
executable file
·49 lines (40 loc) · 1.33 KB
/
rules
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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
confflags += --build $(DEB_HOST_GNU_TYPE)
else
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
endif
export PROC := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
BUILDFLAGS += OPTIMIZE=-O0
else
BUILDFLAGS += OPTIMIZE=-O2
endif
#BUILDFLAGS += MAKECMDGOALS=dont-optimize
export TEST_SKIP_VALGRIND = 1
%:
dh $@
override_dh_auto_build:
# This fix should be in 3.6.2:
cp version.h include/
dh_auto_build --parallel
override_dh_auto_configure:
dh_auto_configure -- \
-DUSE_GSL=1 \
-DUSE_PCAP=1 \
-DUSE_SSL=1 \
-DUSE_SCTP=1
override_dh_auto_test:
git clone https://github.com/google/googletest/ || ( cd googletest/ && git pull --rebase )
rmdir gtest gmock 2>/dev/null || true # empty dirs in the distribution zip
test -h gtest || ln -s googletest/googletest gtest
test -h gmock || ln -s googletest/googlemock gmock
dh_auto_test --parallel
for attempt in $$(seq 3); do \
SIPP=$(shell pwd)/obj-$(DEB_BUILD_GNU_TYPE)/sipp ./regress/runtests && \
exit 0; \
done